How to check for a block when right clicking?

Started by robbiealexander on

Topic category: Help with MCreator software

Last seen on 15:17, 17. Mar 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check for a block when right clicking?

I have a sword and I am putting a function in 'When right clicked on block'. How would I check for a grass block and then put a flower on top of the block, only if it's grass?

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You didn't specify what…
Mon, 07/13/2020 - 01:50

You didn't specify what flower but here you go.

also you didn't specify to check for air block above block but i assumed you wanted that.

PlayerRightClicksBlockProcedure

Last seen on 15:17, 17. Mar 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh yeah, I forgot about…
Mon, 07/13/2020 - 18:54

Oh yeah, I forgot about checking for air... thanks! :)

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem. :)
Mon, 07/13/2020 - 23:39

No problem. :)