use of powercrystals.minefactoryreloaded.entity.EntityPinkSlime in project MineFactoryReloaded by powercrystals.
the class BlockPinkSlimeFluid method updateTick.
@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);
}
}
Aggregations