Attunement custom enchantment (HELP)

Started by BancingDare on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Attunement custom enchantment (HELP)

I'm looking for a way to make a custom "Attunement" enchantment. Basically, I want items with this enchantment to persist on death, like keep inventory for specific items. I know how to store the item data as a variable, but I also need to use two separate procedures for this enchantment. One to trigger on entity death, and one to trigger on player respawn. How do I get the variable data from one procedure to the other?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No idea, I have been trying…
Sat, 07/23/2022 - 10:45

No idea, I have been trying to figure out the same thing myself. How do you store item data as a variable?