Few more ice effects

This commit is contained in:
WayofTime 2014-02-02 08:48:11 -05:00
parent 05c86e03bf
commit bdf9760e8a
8 changed files with 292 additions and 7 deletions

View file

@ -95,4 +95,14 @@ public class SpellHelper
return ForgeDirection.EAST;
}
public static void freezeWaterBlock(World world, int posX, int posY, int posZ)
{
int id = world.getBlockId(posX, posY, posZ);
if(id == Block.waterStill.blockID || id == Block.waterMoving.blockID)
{
world.setBlock(posX, posY, posZ, Block.ice.blockID);
}
}
}