private LootEntryTable getInjectEntry(String name, int weight) { return new LootEntryTable(new ResourceLocation(LibMisc.MOD_ID, "inject/" + name), weight, 0, new LootCondition[0], "botania_inject_entry"); }
private static void addTable(@Nonnull LootPool pool, @Nonnull ResourceLocation resourceLocation) { pool.addEntry(new LootEntryTable(resourceLocation, 1, 1, NO_CONDITIONS, resourceLocation.toString())); }
private LootEntryTable getEntry(String unique, String name, int quality, int weight) { return new LootEntryTable(new ResourceLocation(MODID, name), weight, quality, new LootCondition[0], unique); } }
private static LootEntryTable getInjectEntry(String name) { return new LootEntryTable(new ResourceLocation(AncientWarfareCore.MOD_ID, "inject/" + name), 1, 0, new LootCondition[0], AncientWarfareCore.MOD_ID + "_inject_entry"); } }
private LootEntryTable getInjectEntry(String name, int weight) { return new LootEntryTable(new ResourceLocation(REFERENCE.MODID, "inject/" + name), weight, 0, new LootCondition[0], "vampirism_inject_entry"); }
@SubscribeEvent public void generateCrashedShipLoot(LootTableLoadEvent event) { if (event.getName().toString().equals("matteroverdrive:crashed_ship")) { LootTable crashedShipLootTable = event.getTable(); LootEntry entry = new LootEntryTable(new ResourceLocation("matteroverdrive:crashed_ship"), 100, 1, new LootCondition[]{}, Reference.CHEST_GEN_ANDROID_HOUSE); } }
@SubscribeEvent public void dungeonLootLoad(LootTableLoadEvent event) { if (event.getName().toString().equals("minecraft:chests/simple_dungeon")) { LootTableList.register(new ResourceLocation("matteroverdrive:inject/simple_dungeon")); LootEntry entry = new LootEntryTable(new ResourceLocation("matteroverdrive:inject/simple_dungeon"), 100, 1, new LootCondition[]{}, "Blue_Pill"); LootPool pool = new LootPool(new LootEntry[]{entry}, new LootCondition[]{}, new RandomValueRange(0, 10), new RandomValueRange(0, 10), "Blue_Pill"); //event.getTable().addPool(pool); } }