How to check what block a player clicked on

Started by Oxygen4Lyfe on Wed, 05/16/2018 - 22:04

Topic category: Help with MCreator software

Last seen on 17:12, 6. Oct 2018
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to check what block a player clicked on
Wed, 05/16/2018 - 22:04

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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

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

well...

 

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

User statistics:

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

oops

 

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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