Blood Letter's Pack + Coat of Arms
This commit is contained in:
parent
4b7ad55016
commit
9a6d8d6d60
13 changed files with 317 additions and 21 deletions
|
@ -24,6 +24,7 @@ public class NBTHolder {
|
|||
public static final String NBT_ALTAR_ACTIVE = "isActive";
|
||||
public static final String NBT_ALTAR_LIQUID_REQ = "liquidRequired";
|
||||
public static final String NBT_ALTAR_FILLABLE = "canBeFilled";
|
||||
public static final String NBT_STORED_LP = "storedLP";
|
||||
|
||||
public static ItemStack checkNBT(ItemStack stack) {
|
||||
if (stack.getTagCompound() == null)
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package WayofTime.bloodmagic.api.altar;
|
||||
|
||||
/**
|
||||
* Any item that implements this interface will not be pulled into the Altar
|
||||
* on right click.
|
||||
*/
|
||||
public interface IAltarManipulator {
|
||||
}
|
|
@ -192,10 +192,8 @@ public class NetworkHelper {
|
|||
|
||||
public static void hurtPlayer(EntityPlayer user, float damage) {
|
||||
if (!user.capabilities.isCreativeMode) {
|
||||
user.attackEntityFrom(BloodMagicAPI.getDamageSource(), 0F);
|
||||
user.setHealth((user.getHealth() - damage));
|
||||
|
||||
if (user.getHealth() <= 0.0005f)
|
||||
user.onDeath(BloodMagicAPI.getDamageSource());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue