This is the support section for those modding with Forge. Help with modding goes in here, however, please keep in mind that this is not a Java school. You are expected to have basic knowledge of Java before posting here.
34708 topics in this forum
Oh. 1.12 Use this: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/LootUtils.java Take that whole thing, put it in your project in (use your own package) and invoke its methods during the LootTableLoadEvent. (Yes, you can use it, its a utility class, I really don't care. I did a lot of futzing around figuring out how the stuff works so you don't have to) Example usage https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/FarmingEventHandler.java#L425
Also have a look at this Forge Doc It uses (evt.getName().toString().equals("minecraft:chests/simple_dungeon")) which means the way you are doing it might be wrong (event.getName().equals(LootTableList.ENTITIES_HORSE)) or at least add a println to check if it does work
Who's Online (See full list)