Hello this is superdextor aka President Potato im trying to create an Enchantment in one of my newest mods for the 1.8 Version but
its not showing up on the list of Enchanted Books and its not being applied through the Enchantment Tables
the only way i can get it applied is by using /give @p diamond_chestplate 1 0 {ench:[{id:65,lvl:3}]} an the enchantment works it just dose not show up on the list of enchanted books
BUT all of this code works in the 1.7.10 Version
This is all my code that goes in to the enchantment
@Mod.EventHandler
public void Initiate(FMLInitializationEvent Event)
{
new Enchantments();
proxy.registerEvents();
bloodless = new EnchantmentBloodless(65, new ResourceLocation("bloodless"), 5);
}
then add this to your enchantment class
public EnchantmentBloodless(int id, ResourceLocation resource, int rarity){
super(id, resource, rarity, EnumEnchantmentType.ARMOR);
this.setName("bloodless");
addToBookList(this);
}
Hello this is superdextor aka President Potato im trying to create an Enchantment in one of my newest mods for the 1.8 Version but
its not showing up on the list of Enchanted Books and its not being applied through the Enchantment Tables
the only way i can get it applied is by using /give @p diamond_chestplate 1 0 {ench:[{id:65,lvl:3}]} an the enchantment works it just dose not show up on the list of enchanted books
BUT all of this code works in the 1.7.10 Version
This is all my code that goes in to the enchantment
This is in my mainmod.class
hidden
;
and this is my EnchantmentBloodless.class
hidden
Thanks
Please any one im kinda stumped and really need to get this working right ):
have you got it initializing anywhere? is your code on github coz i can have a look
not right now, i can try to it will just take me some time
all the code involving the enchantment is listed on this topic
PS: I Love your mod i use it all the time
i can not get it on github i kinda don't what to have to buy a member ship there
but do you know how i can get my enchantment working i would really like to fix it
Thanks
In your main mod class initialize it with
@Mod.EventHandler
public void Initiate(FMLInitializationEvent Event)
{
new Enchantments();
proxy.registerEvents();
bloodless = new EnchantmentBloodless(65, new ResourceLocation("bloodless"), 5);
}
then add this to your enchantment class
Thanks its working now
- Thread Solved
- Thread Locked