How to check for a block when right clicking?

Started by robbiealexander on

Topic category: Help with MCreator software

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?

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

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