Jump to content

[1.8] How to make a Item not consumable in the crafting table


windows300

Recommended Posts

override

hasContainerItem(ItemStack)

and return true.

 

This code works for me in 1.7.10, maybe it will work too in 1.8:

 

@Override

    public boolean doesContainerItemLeaveCraftingGrid(ItemStack itemStack)

    {

        return false;

    }

 

This only tells it should not put the container item outside the crafting grid and into the player inventory.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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