How to check what block a player clicked on

Started by Oxygen4Lyfe on

Topic category: Help with MCreator software

Last seen on 17:12, 6. Oct 2018
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

Last seen on 14:32, 21. Dec 2019
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.

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well...  
Sat, 10/19/2019 - 23:37

well...

 

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oops  
Sat, 10/19/2019 - 23:37

oops

 

Last seen on 01:34, 21. May 2020
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

 

Last seen on 17:39, 24. May 2023
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

 

Last seen on 17:39, 24. May 2023
Joined Jan 2023
Points:

User statistics:

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

i mean =