Jump to content

[1.12.2] Add custom item to existing entity drop list?


Angercraft

Recommended Posts

  • Like 1
  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

1 hour ago, jabelar said:

Can't you also just handle the LivingDropsEvent, test if the entity is a pig and add your item to the list? I guess maybe that wouldn't be a proper realization of the loot table system, but it works pretty darn good for just adding an item regardless of the rest of the loot system.

You can, but you should use loot tables instead.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

  • 2 years later...
On 1/16/2018 at 2:24 PM, Draco18s said:

 

I know this is 2 years later but can you help me with this problem. I tried to use your LootUtils and base on your FarmingEventHandler to make an item drop from a chicken. It did not work. Can you please take a look and let me know what is missing? 

 

https://github.com/anhphan2705/ChickenMod_1.12.2/blob/master/src/main/java/com/chickenmod/util/handlers/LootEventHandler.java

https://github.com/anhphan2705/ChickenMod_1.12.2/blob/master/src/main/java/com/chickenmod/util/loot/LootUtils.java

 

 

Thank you.

Edited by SniperBoiz
Missing a link
Link to comment
Share on other sites

1.12.2 isn't supported on this forum anymore so this thread will be closed soon. Also for the future don't bump old threads make a new one instead. PM me if you don't find any answers to your problem currently I'm still working with 1.12.

  • Thanks 1

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

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.