do procedure with specific item in hand

Started by Marmations on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 months ago
Joined Mar 2019
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
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

Active 4 years ago
Joined Jan 2020
Points:
840

User statistics:

  • Modifications: 5
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 184
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.