From 64e37368069bc7f42be709d58e618039932d7621 Mon Sep 17 00:00:00 2001 From: Robert S Date: Tue, 10 Jun 2014 09:23:06 -0400 Subject: [PATCH] Changed grinder to use a custom damage source allowing for localization --- .../mechanical/process/grinder/TileGrindingWheel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/process/grinder/TileGrindingWheel.java b/mechanical/src/main/scala/resonantinduction/mechanical/process/grinder/TileGrindingWheel.java index 4c5d15a5..ce491d67 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/process/grinder/TileGrindingWheel.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/process/grinder/TileGrindingWheel.java @@ -10,6 +10,7 @@ import net.minecraftforge.common.ForgeDirection; import resonant.api.IRotatable; import resonant.api.recipe.MachineRecipes; import resonant.api.recipe.RecipeResource; +import resonant.lib.prefab.CustomDamageSource; import resonant.lib.prefab.vector.Cuboid; import resonantinduction.core.Reference; import resonantinduction.core.ResonantInduction; @@ -29,7 +30,7 @@ public class TileGrindingWheel extends TileMechanical implements IRotatable public EntityItem grindingItem = null; - private final long requiredTorque = 1000; + private final long requiredTorque = 250; private double counter = 0; public TileGrindingWheel() @@ -83,7 +84,7 @@ public class TileGrindingWheel extends TileMechanical implements IRotatable } else { - entity.attackEntityFrom(DamageSource.cactus, 2); + entity.attackEntityFrom(new CustomDamageSource("grinder", this), 2); } }