Posted March 5, 20205 yr I added a custom item that I want to be dropped from minecraft's wither skeleton, but I can't seem to figure out how to add to loot tables, this is what I have tried: Loot Table Event Class: package com.ProfitOrange.MoShiz.event; import com.ProfitOrange.MoShiz.Reference; import net.minecraft.util.ResourceLocation; import net.minecraft.world.storage.loot.LootPool; import net.minecraft.world.storage.loot.TableLootEntry; import net.minecraftforge.event.LootTableLoadEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; public class LootTableEvents { private static ResourceLocation wither_skeleton_drops = new ResourceLocation("minecraft", "entities/wither_skeleton"); @SubscribeEvent public static void onLootLoad(LootTableLoadEvent event) { if (event.getName().equals(wither_skeleton_drops)) { event.getTable().addPool(LootPool.builder().addEntry(TableLootEntry.builder(new ResourceLocation(Reference.MOD_ID, "entities/wither_skeleton_mod"))).build()); } } } And the loot table json file: { "type": "minecraft:entity", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "functions": [ { "function": "minecraft:set_count", "count": { "min": 0.0, "max": 1.0, "type": "minecraft:uniform" } }, { "function": "minecraft:looting_enchant", "count": { "min": 0.0, "max": 1.0 } } ], "name": "ms:nether/witherbone" } ] } ] } Any help on this issue would be much appreciated.
March 5, 20205 yr 1 hour ago, ProfitOrange said: ms Not related to your issue, but use a longer mod ID. You have 64 characters of length, use them. 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.
March 5, 20205 yr Author 19 minutes ago, Draco18s said: Not related to your issue, but use a longer mod ID. You have 64 characters of length, use them. Next time I rewrite this mod, I definitely will, the only problem is that I have nearly 5,000 files that use that mod ID to reference stuff.
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.