- 55
- 1
- 1

Привет всем! Есть код
Code:
@SubscribeEvent
public void onTick(TickEvent.PlayerTickEvent event)
{
if(event.player instanceof EntityPlayer)
{
EntityPlayer player = event.player;
World world = player.worldObj;
int x = (int)player.posX;
int y = (int)player.posY;
int z = (int)player.posZ;
boolean item = checkItem(player);
if(item == true)
{
Block block = world.getBlock(x, y, z);
if(block == Blocks.air)
{
world.setBlock(x, y - 2, z, Main.block_shortmod);
}
}
}
}
P.S Версия 1 7 10, просто текстура бетона.

