diff --git a/src/main/java/de/ellpeck/naturesaura/NaturesAura.java b/src/main/java/de/ellpeck/naturesaura/NaturesAura.java index f1e6cfcc..f0f233a9 100644 --- a/src/main/java/de/ellpeck/naturesaura/NaturesAura.java +++ b/src/main/java/de/ellpeck/naturesaura/NaturesAura.java @@ -90,7 +90,7 @@ public final class NaturesAura { Compat.postInit(); proxy.postInit(event); - if (ModConfig.general.removeDragonBreathContainerItem) { + if (ModConfig.enabledFeatures.removeDragonBreathContainerItem) { Items.DRAGON_BREATH.setContainerItem(null); } } diff --git a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemSwordNA.java b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemSwordNA.java index b1e2ff81..c5559179 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemSwordNA.java +++ b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemSwordNA.java @@ -5,9 +5,12 @@ import de.ellpeck.naturesaura.items.ModItems; import de.ellpeck.naturesaura.reg.IModItem; import de.ellpeck.naturesaura.reg.IModelProvider; import de.ellpeck.naturesaura.reg.ModRegistry; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.init.MobEffects; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.potion.PotionEffect; import net.minecraftforge.common.capabilities.ICapabilityProvider; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; @@ -49,6 +52,13 @@ public class ItemSwordNA extends ItemSword implements IModItem, IModelProvider { } + @Override + public boolean hitEntity(ItemStack stack, EntityLivingBase target, EntityLivingBase attacker) { + if (this == ModItems.INFUSED_SWORD) + target.addPotionEffect(new PotionEffect(MobEffects.SLOWNESS, 60, 2)); + return super.hitEntity(stack, target, attacker); + } + @Nullable @Override public ICapabilityProvider initCapabilities(ItemStack stack, @Nullable NBTTagCompound nbt) { diff --git a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/items/infused_iron_tools.json b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/items/infused_iron_tools.json index e754e8ea..d645bb2e 100644 --- a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/items/infused_iron_tools.json +++ b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/items/infused_iron_tools.json @@ -33,7 +33,7 @@ "recipe": "naturesaura:infused_hoe" }, { "type": "crafting", - "text": "The $(item)Botanist's Blade$(), while not having an inherent special feature, will still prove useful in slaying enemies of any sort.", + "text": "The $(item)Botanist's Blade$() is a good way of dealing with monsters: It will cause any mob you hit to be $(thing)slowed down$() for a couple of seconds, making them an easier target.", "recipe": "naturesaura:infused_sword" } ]