How to get Slot Id of Item in Main Hand?

Started by GamesofFreak on Mon, 09/26/2022 - 13:17

Topic category: Help with modding (Java Edition)

Last seen on 20:49, 28. Nov 2022
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to get Slot Id of Item in Main Hand?
Mon, 09/26/2022 - 13:17

I want to create a Command that adds Lore to Items, but I can't find it to work because I have problems to detect the slot number/id of the Item that in Main Hand.

Can someone help with this?