[Solved] How to target player's main hand

Started by TDO on

Topic category: Help with MCreator software

Last seen on 15:27, 29. May 2024
Joined Dec 2022

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Solved] How to target player's main hand
Wed, 03/27/2024 - 22:43 (edited)

Im adding a multi tool that changes depending on what block you're mining.
Theres 4 states : axe, pickaxe, shovel and hoe, which are actually 4 different items.

Whenever you right click a block, it transforms into the right tool to mine it.
The problem is you can't add 1 item to the main hand of the player. You have to tell the slot numer.


So if you know any way to add an item to the slot that is currently the main hand, help me, i need help


[Later edit] : I found out there was a "set item in main hand of entity to ""  " i just didn"t see it. If i could i would have deleted this topic.

Edited by TDO on Wed, 03/27/2024 - 22:43