Event right click with item on block for change block

Started by Wertuo on

Topic category: Help with Minecraft modding (Java Edition)

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

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)

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?

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)

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?

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.

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.

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

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.

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?

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.

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.

 

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