#Are custom enchantments possible with KubeJS using reflection?

6 messages · Page 1 of 1 (latest)

quiet hollow
#

As stated in the title.
If yes, then can you make a custom enchantment based on the existing enchantment?
(Would like to create a Looting as a curse, to prevent disenchanting it using the Grindstone)

frank forumBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

quaint sail
#

No

#

Enchantments are based on classes, and you cannot define new classes with kubejs

#

You could copy exactly an enchantmant, as that is just making a new instance of a class (assuming its done the same as other registries, it could very well not be), but you could not modify much

quiet hollow
#

Ah, quite a pity, but understandable (did read BetterNether's enchantment code, and saw that it's a class).