Event right click with item on block for change block

Started by Wertuo on

Topic category: Help with modding (Java Edition)

Last seen on 16:48, 15. Apr 2023
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Event right click with item on block for change block

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 :)

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When right clicked on block…
Thu, 11/07/2019 - 23:02

When right clicked on block procedure:

Place [StoneForExample] at x y z (can be found in block procedures)

Last seen on 16:48, 15. Apr 2023
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you, but for it to be…
Fri, 11/08/2019 - 02:05

Thank you, but for it to be only a type of block that is transformed?

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If Get block at x y z = …
Fri, 11/08/2019 - 02:33

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)

Last seen on 16:48, 15. Apr 2023
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And then is it possible to…
Fri, 11/08/2019 - 02:37

And then is it possible to interact with a block of another mod exlusively?

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Instead of checking for a…
Fri, 11/08/2019 - 02:48

Instead of checking for a block, check for the ore dictionary name.

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There's a separate procedure…
Fri, 11/08/2019 - 09:59

There's a separate procedure for getting the ore dic. The Get block at xyz is indeed only for blocks.

Last seen on 16:48, 15. Apr 2023
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I do not find it, it's just …
Fri, 11/08/2019 - 10:23

I do not find it, it's just "Get"? But I can not write

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
*Correction: The best way to…
Fri, 11/08/2019 - 12:42

*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.

Last seen on 16:48, 15. Apr 2023
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But I can not just tell him…
Fri, 11/08/2019 - 12:47

But I can not just tell him that if the block is: "Avaritia: infinityblock" he transforms it?

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can say if NBT tag of…
Fri, 11/08/2019 - 13:11

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.

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In "On Block Added"…
Fri, 11/08/2019 - 14:32

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.

 

Last seen on 16:48, 15. Apr 2023
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I give up it's too…
Fri, 11/08/2019 - 14:42

I give up it's too complicated