How to Modify an Item in an Enchantment Table (1.18.2)

Started by Fandwyn on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Modify an Item in an Enchantment Table (1.18.2)

Hello,

I am trying to make it so that any item enchanted with an enchantment table receives the Curse of Vanishing enchantment. So far I am able to detect when a player enchants an item, and I know how to add enchantments to items. Accessing the Enchantment Table GUI is what eludes me. I have included an image of what I have so far.

I am using MCreator 2022.3 since I am coding for version 1.18.2.

Any help is greatly appreciated!

 

 

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
enchantment table slot id's…
Tue, 09/19/2023 - 07:34

enchantment table slot id's are unkown or their is none and they use nbts instead. So better method is this. Get block is crafting table. And I would use player tick update. 

Image

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use item is crafted or…
Tue, 09/19/2023 - 07:42

Use item is crafted or player finishes using item. My bad. I said playertick incorrectly.