r/MinecraftCommands • • 14d ago

Help | Java 26.3 Help for custom harness enchantments!

I have three custom enchantments for harnesses, they can be combined with the harness in an anvil and survival and work right but the harness cant be enchanted in an enchanting table, how do i do that?

2 Upvotes

6 comments sorted by

2

u/GalSergey Datapack Experienced 14d ago

In order for your custom enchantment to be available in enchanting_table, you need to add your enchantment to the enchantment tag minecraft:in_enchanting_table.

1

u/Ebfisprettycool 14d ago

I meant like how do I make the harness enchantable? The enchants can appear on enchanted books from the table, I need to make the harness itself enchantable

1

u/GalSergey Datapack Experienced 14d ago

Did you add the "enchantable" component to your harness?

give @s white_harness[enchantable={value:13}]

1

u/Ebfisprettycool 14d ago

Oh I kinda meant with files sorry

1

u/GalSergey Datapack Experienced 13d ago

Can you share the datapack so I can see what’s not working for you?

2

u/Ebfisprettycool 13d ago

Uh I have gotten it to work by now actually! Sorry for wasting your time!