Posted January 23, 20169 yr I have added in a few enchantments into my mod. They work as expected but I am unable to obtain them from the enchantment table. How do I remedy this? Edit: I tested my custom enchantments by using /enchant
January 23, 20169 yr Did you override canApply(ItemStack) ? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
March 9, 20178 yr @LogicTechCorp Can you link your source code? I'm looking for examples of creating custom enchantments
March 9, 20178 yr 4 hours ago, kitsushadow said: @LogicTechCorp Can you link your source code? I'm looking for examples of creating custom enchantments https://github.com/Draco18s/ReasonableRealism/tree/master/src/main/java/com/draco18s/ores/enchantments Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
March 9, 20178 yr In 1.10.2 it was this when extending Enchantment: @Override public boolean canApplyAtEnchantingTable(ItemStack s) { ... } The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
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.