Posted February 1, 20196 yr I'm trying to add mobs drops to bats through code, but I can't find the loot pool to edit because the bat.json file is empty. Is there a certain way I should do this? Code: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/Events/lootTableLoadEvent.java
February 3, 20196 yr Author How would I go about that? I haven't been able to find any resources on how to do that, and I can't think of any mods that do this to look at.
February 3, 20196 yr Actually Additions adds bat drops, and it's visible (not open) source on github, so you could see how they do it. The mod's licence specifically permits copying small sections of its code, so you should be fine there.
February 3, 20196 yr This will be what you're looking for: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/LootUtils.java#L94 None of my implementations insert items from other json files (all hard coded), which isn't the most ideal, but it should be possible. 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.