• 0

    posted a message on Dungeon loot 1.14

    Heyy, i have trouble to add a custom dungeon to the vanilla loottable and i can't find the problem...

     

    my Events.class


    public class Events {

    @SubscribeEvent
    public static void onLootLoad(LootTableLoadEvent event) {
    if (event.getName().equals(new ResourceLocation("minecraft" ,"abandoned_mineshaft"))) {
    event.getTable().addPool(LootPool.builder().addEntry(TableLootEntry.builder(new ResourceLocation(References.MODID, "dungeon_loot"))).build());
    }
    }
    }

     

    my test loottable:   dungeon_loot.json   (cdl/loot_tables/chests)

    {
    "type": "minecraft:chest",
    "pools": [
    {
    "name": "extragems",
    "rolls": 1,
    "entries": [
    {
    "type": "minecraft:item",
    "name": "minecraft:snowball",
    "weight": 60
    }
    ]
    }
    ]
    }

     

     

    Does anyone know where the problem lies?

     

    Posted in: Mod Development
  • To post a comment, please or register a new account.