Tuesday at 03:59 PM3 days I created a mod in which there are four new ores better than diamond. They allows to create sword, pickaxe, axe, shovel and hoe.The tools works.When I wanted enchant the pickaxe, I succeeded with the enchantment table to put unbreaking III. Next, I enchanted a book with fortune III. When I put in a anvil my enchanted pickaxe with the fortune III book, the red cross displayed on the arrow. I have the same issue to merge two enchanted pickaxes in a anvil.How could I programme the enchantments for the new tools ?I can send you many code parts.
11 hours ago11 hr For sharing code, I would suggest putting your mod on github, it would allow someone to build/run your mod to help test, as well as peruse the code.I would at the very least share the code for your new material/tool tier, my first thought would be that it is related to the enchantability level of the material.
47 minutes ago47 min Author I thank you for your response.I am French and I programme in French, but a big code part is in English because it depends on Forge. I think that you will understand.There are a lot of comments in code because the mod is currently being developed.To execute the project, you allows to execute run-data next run-client.The main classes to watch are :objet/outil/NiveauDOutil (the ores defined here) ;objet/outil/OutilDeCreusement (the digger tools) ;objet/outil/Pioche (the class for the pickaxe) ;objet/outil/OutilInstancie (the class which owns the pickaxe instances).The repository is : github.com/AlixPignard/Minecraft_mod_rubissaphirtopaze.The ressources come from mod More Ore in One : github.com/TheKiritoPlayer20/MoreOresInONE/.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.