Jump to content

1.11 Trouble Removing Enchantability/BookEnchanting


Blaez

Recommended Posts

I'm using this code As found from "Item" Class however returning a false value inside the item class  returns a Null Point Exception.

I'm not Quite sure why could anyone tell me what I'm doing wrong please?


 
 

 @Override
public boolean isBookEnchantable(ItemStack stack, ItemStack book)
    {
        return false;
    }

 

Link to comment
Share on other sites

Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:456)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2780)
    at net.minecraft.client.Minecraft.run(Minecraft.java:426)
    at net.minecraft.client.main.Main.main(Main.java:118)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    at GradleStart.main(GradleStart.java:26)

Link to comment
Share on other sites

52 minutes ago, diesieben07 said:

Why are you using 1.11? If you must use 1.11.x, use 1.11.2. But you should really be using 1.12.1.

What you are experiencing here is a bug that was fixed in version 1.11.2-13.20.0.2210.

the issue is not corrected in 1.11.2-13.20.0.0.2210 it still exists as of  1.11.2 - 13.20.1.2386  Which leads me to assume its my fault although I'm not sure why. Also my Mod is not easily transferable to 1.12 as many things need to be done in regards to Recipe and Item registration which I'm not trying to deal with right now.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.