Posted May 13, 20205 yr Hello, I am wondering how to change vanilla code and change vanilla mob drops for my mod. Any help is appriciated!!
May 13, 20205 yr Probably Global Loot Modifiers: https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/test/java/net/minecraftforge/debug/gameplay/loot/GlobalLootModifiersTest.java
May 13, 20205 yr Author 15 minutes ago, Ugdhar said: Probably Global Loot Modifiers: https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/test/java/net/minecraftforge/debug/gameplay/loot/GlobalLootModifiersTest.java I don't see how that changes mob loot drops, I want to edit the droppings for horses, cows, etc.
May 13, 20205 yr 1 minute ago, GamingTechnologies said: I don't see how that changes mob loot drops, I want to edit the droppings for horses, cows, etc. Global loot modifiers are how you are supposed to change/add to drops, so they can be replaced/changed by datapacks from what I understand. I've only done it for blocks, not mobs yet myself, I was just giving you a place to start looking.
May 13, 20205 yr 47 minutes ago, GamingTechnologies said: I don't see how that changes mob loot drops, I want to edit the droppings for horses, cows, etc. Create a modifier that says "I want to listen for entities." Modify the generated drops when your code runs. Your code has 100% modifiable access to the drops array and 100% accurate looting context. Its like an event. But is datapack manageable. Edited May 13, 20205 yr by Draco18s 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.
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.