Enchantment upon Inventory

Started by blumpy on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.