Jump to content

Recommended Posts

Posted

Hello Guys,

 

how do I delete an Item right after crafting. I made an IRecipe with my own Item and this should right after i click on the crafting result break randomly. I have a random number, which decides if the Item will break or not, but I don't know how I should delete it. I tried it with TagCompound (here a boolean "broken") and then I used the onUpdate method, but it's not working right after I get it out the crafting table and put it back in. It really should break right after the first click on the Item in the result field. And the best case would be without the boolean. I hope you can help me.

 

yours

Deforner

 

Code:

 

  Reveal hidden contents

 

 

 

  Reveal hidden contents

 

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.