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 :)
When right clicked on block procedure:
Place [StoneForExample] at x y z (can be found in block procedures)
Thank you, but for it to be only a type of block that is transformed?
If Get block at x y z = [StoneForExample] (Can be found in Logic and loops + Minecraft components + Block procedures + Logic Operations)
Place [SomeOtherBlockForExample] at x y z (can be found in block procedures)
And then is it possible to interact with a block of another mod exlusively?
Instead of checking for a block, check for the ore dictionary name.
I can not use OreDictionary
https://imgur.com/a/rpk8rNK
There's a separate procedure for getting the ore dic. The Get block at xyz is indeed only for blocks.
I do not find it, it's just "Get"? But I can not write
*Correction: The best way to do it is by testing for a specific NBT tag on a block, which the other mod also needs to have.
But I can not just tell him that if the block is: "Avaritia: infinityblock" he transforms it?
You can say if NBT tag of block at xyz "AvaritiaInfinityBlock" = true: transform it. But this means that the block has to have that NBT tag.
https://imgur.com/a/kPAXxg5
it does not work, it transforms any block
In "On Block Added" procedure call, you need to set the NBT tag of your AvaritiaInfinityBlock to true.
In the procedure where you transform the block, you need an If statement and check whether AvaritiaInfinityBlock is set to true.
I give up it's too complicated