After item used I want to remove targetblock after 5 secons. I can remove on time. How can I do that ? Also Is it possible to add cooldown time to use item ?
Here is my codes. I really dont know what should I do
public onItemUse(ItemStack item, EntityPlayer player, World world, int x, int y,int z,int side,float x2,float y2,float z2){
world.setBlock(x, y, z, Main.blocks);
player.setItemInUse(item, 100);
return true;
}
Hello guys. First Sorry about my english I'll try to explain my problem.
I want to create code that work to add block in staited cordinats after 5 sec from onItemUse. Which code shhould I use.