How do i check if the player has an item with a custom enchant in their inventory?

Started by visield on

Topic category: Help with modding (Java Edition)

Last seen on 19:17, 18. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i check if the player has an item with a custom enchant in their inventory?

Im making a custom enchant for the totem of undying so that the totem takes effect even if it isnt in your hand or off-hand, but im struggling to figure out how to check if the player has the enchanted totem in the first place (procedure). can anyone help?

Last seen on 00:14, 4. Sep 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
theres a procedure to check…
Thu, 07/18/2024 - 03:37

theres a procedure to check for item in inventory but I'm not sure about the rest