Add ability to restore ruined spell books with the imbuement altar

For now this ignores dust elements but may change this in future
This commit is contained in:
Electroblob77
2020-09-14 15:37:05 +01:00
parent ac7e2fda94
commit ea4e07b2c9
7 changed files with 83 additions and 0 deletions
@@ -28,6 +28,8 @@ public final class WizardryLoot {
//public static final String FROM_SPAWNER_NBT_FLAG = "fromSpawner";
public static final ResourceLocation RUINED_SPELL_BOOK_LOOT_TABLE = new ResourceLocation(Wizardry.MODID, "gameplay/imbuement_altar/ruined_spell_book");
private WizardryLoot(){} // No instances!
/** Called from the preInit method in the main mod class to register the custom dungeon loot. */
@@ -69,6 +71,7 @@ public final class WizardryLoot {
LootTableList.register(new ResourceLocation(Wizardry.MODID, "entities/mob_additions"));
LootTableList.register(new ResourceLocation(Wizardry.MODID, "gameplay/fishing/junk_additions"));
LootTableList.register(new ResourceLocation(Wizardry.MODID, "gameplay/fishing/treasure_additions"));
LootTableList.register(RUINED_SPELL_BOOK_LOOT_TABLE);
}