Started by
Wertuo
on
Topic category: Help with Minecraft modding (Java Edition)
Hi,
I would like to create a procedure so that when I right click with an item on one block, the block becomes another block.
But I do not understand how to do a procedure, if anyone wants to help me :DD
Thanks :)
Noo don't give up xD
It's really simple:
STEP 1:
Go to your block AvaritiaInfinityBlock. Every block has an "OnBlockAdded" procedure call. Inside of that procedure put:
For this block, enable the inventory checkbox and set slots to 0 if you don't want any slots. You need this in order to use NBT tags on a block. Now we're done editing the Block we go to your item in:
STEP 2:
Your item has an "OnBlockRightClicked" procedure call. Inside of that put:
The "=" sign has to be the blue one in the Logic Operators tab in procedures.
But the infinity block comes from the Avaritia mod that was not done with MCreator so I do not know the name of the block for the NTB tag
Then it may not be possible without custom coding.
It is possible, use the template for stripping oak logs and put it on when right clicked on block, and edit the procedure to change it from the block to the other block.