diff --git a/src/main/java/fox/spiteful/forbidden/Forbidden.java b/src/main/java/fox/spiteful/forbidden/Forbidden.java index 1a5179d..0f1e482 100644 --- a/src/main/java/fox/spiteful/forbidden/Forbidden.java +++ b/src/main/java/fox/spiteful/forbidden/Forbidden.java @@ -1,5 +1,8 @@ package fox.spiteful.forbidden; +import net.minecraft.client.Minecraft; +import net.minecraft.client.resources.IReloadableResourceManager; +import net.minecraft.client.resources.IResourceManager; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.item.Item; @@ -88,5 +91,12 @@ public class Forbidden { wandLord = new WandOverlord(); WandTriggerRegistry.registerWandBlockTrigger(wandLord, 1, Blocks.obsidian, 0); WandTriggerRegistry.registerWandBlockTrigger(wandLord, 1, Blocks.netherrack, 0); + + if (Minecraft.getMinecraft().getResourceManager() instanceof IReloadableResourceManager manager) { + manager.registerReloadListener( + (IResourceManager manager2) -> { + ForbiddenResearch.addResearch(); + }); + } } } diff --git a/src/main/java/fox/spiteful/forbidden/ForbiddenResearch.java b/src/main/java/fox/spiteful/forbidden/ForbiddenResearch.java index 0e1c967..db27349 100644 --- a/src/main/java/fox/spiteful/forbidden/ForbiddenResearch.java +++ b/src/main/java/fox/spiteful/forbidden/ForbiddenResearch.java @@ -10,6 +10,7 @@ import net.minecraft.util.ResourceLocation; import fox.spiteful.forbidden.blocks.ForbiddenBlocks; import fox.spiteful.forbidden.compat.Compat; import fox.spiteful.forbidden.items.ForbiddenItems; +import net.minecraft.util.StatCollector; import thaumcraft.api.ThaumcraftApi; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; @@ -478,7 +479,7 @@ public class ForbiddenResearch { 3, new ItemStack(ForbiddenItems.wandCore, 1, 0))) .setPages( - new ResearchPage[] { new ResearchPage("forbidden.research_page.ROD_tainted.1"), + new ResearchPage[] { new ResearchPage(StatCollector.translateToLocalFormatted("forbidden.research_page.ROD_tainted.1", Config.taintedCoreCap)), new ResearchPage((InfusionRecipe) recipes.get("WandRodTainted")) }) .setParents(new String[] { "ROD_silverwood", "TAINTSHOVEL", "INFUSION" }).setConcealed() .registerResearchItem(); diff --git a/src/main/resources/assets/forbidden/lang/en_US.lang b/src/main/resources/assets/forbidden/lang/en_US.lang index 7cb8ee6..2d9d972 100644 --- a/src/main/resources/assets/forbidden/lang/en_US.lang +++ b/src/main/resources/assets/forbidden/lang/en_US.lang @@ -199,7 +199,7 @@ forbidden.research_page.TAINTPICK.1=By infusing a thaumium pickaxe with taint, y # forbidden.research_name.ROD_tainted=Tainted Wand Core forbidden.research_text.ROD_tainted=Squiggly vis storage -forbidden.research_page.ROD_tainted.1=Tainted Lands are places of great and terrible power for those Thaumaturges who know how to tap into them.

The Tainted Wand Core can store up to 150 vis of each type and slowly replenishes itself up to 10% in every aspect as long as it is being held inside of a Tainted Land. While the wand is held in your hand, it can also feed off of taint coursing through your veins, randomly restoring vis every time you take damage from flux taint. +forbidden.research_page.ROD_tainted.1=Tainted Lands are places of great and terrible power for those Thaumaturges who know how to tap into them.

The Tainted Wand Core can store up to %d vis of each type and slowly replenishes itself up to 10% in every aspect as long as it is being held inside of a Tainted Land. While the wand is held in your hand, it can also feed off of taint coursing through your veins, randomly restoring vis every time you take damage from flux taint. # forbidden.research_name.TAINTTREE=Tainted Tree forbidden.research_text.TAINTTREE=The root of flux bears gross fruit