do procedure with specific item in hand

Started by Marmations on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do procedure with specific item in hand

im trying to make a block do a procedure only when the player has a certain item in their main hand

my code in side the block

https://cdn.discordapp.com/attachments/543979419140620302/696136871369113600/unknown.png

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get an item in main hand…
Fri, 04/10/2020 - 23:40

Get an item in main hand block, put it in the first slot of a beige equals block and put a minecraft component with that knifey thing in it. Replace the has provided enitity got ____ in inventory with that.