Changed grinder to use a custom damage source allowing for localization
This commit is contained in:
parent
e109305a23
commit
64e3736806
1 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@ import net.minecraftforge.common.ForgeDirection;
|
||||||
import resonant.api.IRotatable;
|
import resonant.api.IRotatable;
|
||||||
import resonant.api.recipe.MachineRecipes;
|
import resonant.api.recipe.MachineRecipes;
|
||||||
import resonant.api.recipe.RecipeResource;
|
import resonant.api.recipe.RecipeResource;
|
||||||
|
import resonant.lib.prefab.CustomDamageSource;
|
||||||
import resonant.lib.prefab.vector.Cuboid;
|
import resonant.lib.prefab.vector.Cuboid;
|
||||||
import resonantinduction.core.Reference;
|
import resonantinduction.core.Reference;
|
||||||
import resonantinduction.core.ResonantInduction;
|
import resonantinduction.core.ResonantInduction;
|
||||||
|
@ -29,7 +30,7 @@ public class TileGrindingWheel extends TileMechanical implements IRotatable
|
||||||
|
|
||||||
public EntityItem grindingItem = null;
|
public EntityItem grindingItem = null;
|
||||||
|
|
||||||
private final long requiredTorque = 1000;
|
private final long requiredTorque = 250;
|
||||||
private double counter = 0;
|
private double counter = 0;
|
||||||
|
|
||||||
public TileGrindingWheel()
|
public TileGrindingWheel()
|
||||||
|
@ -83,7 +84,7 @@ public class TileGrindingWheel extends TileMechanical implements IRotatable
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
entity.attackEntityFrom(DamageSource.cactus, 2);
|
entity.attackEntityFrom(new CustomDamageSource("grinder", this), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue