Jump to content

Recommended Posts

Posted

Hello MCF forums I would like to know if there is a way to make certain players drop certain item along with what's in there inventory when they die.(i.e. If some one named "Green_Lamb45" had a diamond sword and diamond helmet and I killed them that they would drop a diamond sword, diamond helmet, and green wool). If there is a way can you explain how to do it?

Posted

There are many ways to do this.

 

Probably the best to start with is Forge's Event Structure.

 

Look up a tutorial on it and then look at the LivingEntityDeath event.

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

Didn't know about that one.  That would be easier than what I've done in the past.

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

I am just going to say that Notch auto-drops an apple when he dies. You should find the code for Notch dropping an extra item and modify it inside your own class.

Developer of the WIP Rubies mod.

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.