Hello,
I've just started developing Minecraft mods a few days ago, and I'm still trying to understand the basic rules of mod development. I'm afraid some parts of my implementation might be messy, but I would really appreciate your help!
Sorry if this is a basic problem that I just don't understand...
Current Context
I'm developing a mod using Minecraft 1.20.6 with Fabric API, and I'm trying to implement a custom item called AreaBreakerItem. This item behaves similarly to MineAll or tools that break blocks in a specific area, functioning like a pickaxe that breaks multiple blocks at once.
What I want to achieve is to make AreaBreakerItem enchantable just like a vanilla pickaxe, using both enchantment tables and commands.
Problem
Unable to Enchant via Enchantment Table or Commands:
When I attempt to enchant AreaBreakerItem using an enchantment table or the /enchant command, none of the usual vanilla enchantments (e.g., Silk Touch, Efficiency, etc.) are applied.
Strangely enough, I was able to apply a custom enchantment that I created, but vanilla enchantments still fail to work.
Question
How can I modify my AreaBreakerItem so that it can be enchanted with vanilla enchantments (like a standard pickaxe) using both enchantment tables and commands?
Thank you for taking the time to read and help me! Any guidance or suggestions would be greatly appreciated. 🙏