Jump to content

net.minecraft.item.Item cannot be cast to java.lang.Character


CoAmA

Recommended Posts

Can anyone tell me what i am doing wrong ... every one says it is bad syntax ... but all over the internet this is the solution... i am using inteliJ as IDE, when i comment this piece of code.. every thing is ok .. the client starts ... the server starts ... but when i just try to put in this recipe for a the saddle it crushes ...  the error log said that the error "net.minecraft.item.Item cannot be cast to java.lang.Character" is on the line "GameRegistry.addRecipe(new ItemStack(Items.SADDLE, 1), new Object[]{"

 

 

@EventHandler

    public void init(FMLInitializationEvent event)

    {

        GameRegistry.addRecipe(new ItemStack(Items.SADDLE, 1), new Object[]{

                        "xxx" ,

                        "y y" ,

                        "z z" ,

                        "x" , Items.LEATHER, "y", Items.STRING, "z", Material.IRON

                }

        );

    }

 

 

 

i am lost of ideas, i am on this particular bug for 2 days now .... nonstop, please have mercy and help me :D preatty please

vers 1.10.2

programmer 2 days old minecraft modder, 2 month old minecraft player, 6 years old web developer:D

 

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.