Started by
AppleMod
on
Topic category: Help with Minecraft modding (Java Edition)
My custom item, (it's an item not a tool), has not had a single enchantment show up on an enchantment table, even when I set the enchantability ridiculously high.
Does it have bookshelves around it? Might sound dumb but I've been in that situation before!
You don't need bookshelves for it to enchant? Or will the mod require it.
Oh there's just no enchantments whatsoever? Could you provide a screenshot of your custom item's properties?
Yes here:
https://www.linkpicture.com/q/Screenshot-2022-06-22-204842.png
Ok so, for an enchantment to be applyable inside the enchantment table, you have to use a "Tool" element. Moreover, the tool has to have > 0 use count. I assume you are trying to apply a custom enchantment, which I have taken into account - and in the end, I managed to get it to apply the custom enchantment at the enchantment table, with the downsides being that the unbreaking enchantment will also show up and be applyable, in addition to having to deal with the durability of the item in some form.
Thank you, I wasn't going for a custom enchantment, just any enchantment.
Basically what I'm trying to do is make it so you take a lava bottle, enchant it with anything, then once it's in your inventory I have a procedure set so that it clears and gives you a different custom item: Enchanted lava bottle.