I am currently making a minecraft forge mod. Do anyone know how to first remove a block on specific coordinates, and then place a new block on the same place? Like replacing the old block with a new block.
I will have it in the middle of this code:
if(player.getCurrentEquippedItem() != null)
{
if(hand.getItem() == Items.dirt)
{
}
}
the Item.dirt is just a test
So if the player hold a specific item(i use dirt at the moment) and right click on the block, something will happend. Btw i have more code over that code that makes that happend when the player right click on the block.
I've Googled for it and didn't find anything.