package powercrystals.minefactoryreloaded.block;
import powercrystals.minefactoryreloaded.entity.EntityPinkSlime;
public class BlockPinkSlimeFluid extends BlockFactoryFluid
{
public BlockPinkSlimeFluid(int id, String liquidName)
{
super(id, liquidName);
}
@Override
public void updateTick(net.minecraft.world.World world, int x, int y, int z, java.util.Random rand)
{
if(world.getBlockMetadata(x, y, z) == (quantaPerBlock - 1))
{
world.setBlockToAir(x, y, z);
EntityPinkSlime s = new EntityPinkSlime(world);
s.initCreature();
s.setSlimeSize(1);
s.setPosition(x, y + 0.5, z);
world.spawnEntityInWorld(s);
}
else
{
super.updateTick(world, x, y, z, rand);
}
}
}