How to check what block a player clicked on

Started by Oxygen4Lyfe on

Topic category: Help with MCreator software

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check what block a player clicked on

I want to make it so that if a player right-clicks on a block of stone, with a certain item I made, that it replaces the block of stone with another block. Right now it will replace any block with the one I want. I want to make it so it will only replace the block if it is stone, but there is no block in the procedure maker that checks what block the block is. Please tell me if I'm missing it, or how to make this. I didn't put this under feature requests because I'm almost certain that there is already a way to do this I just can't figure out. Thanks in advance

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Raol, that picture doesn't…
Tue, 08/14/2018 - 19:03

Raol, that picture doesn't answer the question.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you use that code but…
Sat, 10/19/2019 - 23:38

If you use that code but with it checking for stone instead you can put the procedure in the "When right clicked on block" and then make it spawn or change whatever you want

 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to do this too but i…
Mon, 02/20/2023 - 19:41

I want to do this too but i cant find the + (block) block

 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i mean =
Mon, 02/20/2023 - 19:41

i mean =