In my mod i want to touch a iron block with an item and then a sand block spawns 25 blocks above it...i use function useItem for this
Then i want to run a code when the sand block is on top of the iron block... i used function modTick() for it...and i used getTile to check if the sand block is on the top of iron block....and i need the x y z values of the iron block so i can use the getTile command...(player can place the iron block anywhere so i need to get the x y z values of the block when the player touches the block...)
Then i want to run a code when the sand block is on top of the iron block... i used function modTick() for it...and i used getTile to check if the sand block is on the top of iron block....and i need the x y z values of the iron block so i can use the getTile command...(player can place the iron block anywhere so i need to get the x y z values of the block when the player touches the block...)
Thanks It Worked