diff --git a/build.gradle b/build.gradle index 6bc2574..57de59e 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,16 @@ minecraft { replaceIn "Global.java" } -dependencies {} +repositories { + maven { + url = "http://dvs1.progwml6.com/files/maven" + } +} + +dependencies { + deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api" + runtime "mezz.jei:jei_${mc_version}:${jei_version}" +} processResources { diff --git a/gradle.properties b/gradle.properties index 240089f..d96980b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,7 @@ mod_name=Viral package_group=wurmatron -mod_version=0.0.2 +mod_version=0.0.3 mc_version=1.10.2 -forge_version=latest \ No newline at end of file +forge_version=latest + +jei_version=3.9.7.260 \ No newline at end of file diff --git a/src/main/java/wurmatron/viral/common/config/ConfigHandler.java b/src/main/java/wurmatron/viral/common/config/ConfigHandler.java index 633770e..5710ffc 100644 --- a/src/main/java/wurmatron/viral/common/config/ConfigHandler.java +++ b/src/main/java/wurmatron/viral/common/config/ConfigHandler.java @@ -49,7 +49,7 @@ public static void loadConfig() { Settings.hurtPassive = hurtPassive.getBoolean(); infectPassive = config.get(Configuration.CATEGORY_GENERAL, "infectPassive", Defaults.infectPassive, "Can the virus infected passive mobs?"); Settings.infectPassive = infectPassive.getBoolean(); - passiveDamage = config.get(Configuration.CATEGORY_GENERAL, "passiveDamage", Defaults.passiveDamage, "How much damge do passive mobs take"); + passiveDamage = config.get(Configuration.CATEGORY_GENERAL, "passiveDamage", Defaults.passiveDamage, "How much damage do passive mobs take"); Settings.passiveDamage = passiveDamage.getDouble(); if (config.hasChanged()) { LogHandler.info("Config saved"); diff --git a/src/main/java/wurmatron/viral/common/intergration/jei/ViralPlugin.java b/src/main/java/wurmatron/viral/common/intergration/jei/ViralPlugin.java new file mode 100644 index 0000000..224e162 --- /dev/null +++ b/src/main/java/wurmatron/viral/common/intergration/jei/ViralPlugin.java @@ -0,0 +1,18 @@ +package wurmatron.viral.common.intergration.jei; + +import mezz.jei.api.BlankModPlugin; +import mezz.jei.api.IModRegistry; +import mezz.jei.api.JEIPlugin; +import wurmatron.viral.Viral; + +import javax.annotation.Nonnull; + +@JEIPlugin +public class ViralPlugin extends BlankModPlugin { + @Override + public void register(IModRegistry registry) { + registry.addDescription(Viral.syringeFilled, "description.filledSyringe.name"); + registry.addDescription(Viral.syringeCure, "description.cureSyringe.name"); + registry.addDescription(Viral.syringeImunity, "description.imunitySyringe.name"); + } +} diff --git a/src/main/resources/assets/viral/lang/en_US.lang b/src/main/resources/assets/viral/lang/en_US.lang index 6093e8e..061d299 100644 --- a/src/main/resources/assets/viral/lang/en_US.lang +++ b/src/main/resources/assets/viral/lang/en_US.lang @@ -6,4 +6,9 @@ item.syringeCure.name=Cure Syringe item.syringeImmunity.name=Immunity Syringe # Chat -chat.cannotCure.name=§cYou cannot create immunity while still influenced by the "Viral". \ No newline at end of file +chat.cannotCure.name=§cYou cannot create immunity while still influenced by the "Viral". + +# Description +description.filledSyringe.name=Using an Empty Syringe click on an infected mob. +description.imunitySyringe.name=Can be used to make an uninfected mob immune from the virus. +description.cureSyringe.name=Able to cure a single mob of the virus. \ No newline at end of file