Enchantment upon Inventory

Started by blumpy on

Topic category: Help with modding (Java Edition)

Last seen on 05:27, 15. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enchantment upon Inventory

I want to make a sword be enchanted whenever it gets into a player's inventory, is this even possible?

Last seen on 22:38, 14. Sep 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can try make a procudure…
Sun, 08/25/2024 - 15:41

You can try make a procudure with "on player tick update" then "for each slot of inventory" if itemstack iterator = your item do set enchantment.