Can you make an unobtainable enchantment?

Started by fulimester on Fri, 04/30/2021 - 21:22

Topic category: Help with modding (Java Edition)

Last seen on 14:12, 10. Oct 2021
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can you make an unobtainable enchantment?
Fri, 04/30/2021 - 21:22

I wanna make a custom enchantment that will be applied to a Sword when that Sword is combined with a Gem (something in my mod) in a Smithing Table. However, I don't want that enchantment to be found as loot, in villager trades or in the enchanting table. How do I do that?

Last seen on 06:41, 25. Jan 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In theory, custom…
Sat, 05/01/2021 - 23:24

In theory, custom enchantments do not appear on the enchantment table or on the villagers.
But I have not tested it, but it should be like that.
So what would be the problem?
do you want to give a function to the enchantment?
do you want to know how to make it automatically enchant when linking the sword with a gem?

Last seen on 16:04, 8. Jul 2022
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you could make the enchant…
Sun, 05/09/2021 - 00:54

you could make the enchant really rare for the enchantment table problem, and i think there is a selection to make enchanted books not spawn in chests