Attunement custom enchantment (HELP)

Started by BancingDare on

Topic category: Help with modding (Java Edition)

Last seen on 00:01, 23. May 2022
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?

Last seen on 09:57, 7. Sep 2023
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?