Updated the books, worked more on the new self-sacrifice mechanics, allowed the teleposer to telepose entities across dimensions, changed the Focus of the Ellipsoid so that it now places blocks from a chest underneath the MRS.

This commit is contained in:
WayofTime 2015-05-04 14:16:58 -04:00
parent c71edfb937
commit f74e4993cf
15 changed files with 371 additions and 61 deletions

View file

@ -42,21 +42,21 @@ public class APISpellHelper
return beaconData;
}
public static int getCurrentIncense(EntityPlayer player)
public static float getCurrentIncense(EntityPlayer player)
{
NBTTagCompound data = player.getEntityData();
if(data.hasKey("BM:CurrentIncense"))
{
return data.getInteger("BM:CurrentIncense");
return data.getFloat("BM:CurrentIncense");
}
return 0;
}
public static void setCurrentIncense(EntityPlayer player, int amount)
public static void setCurrentIncense(EntityPlayer player, float amount)
{
NBTTagCompound data = player.getEntityData();
data.setInteger("BM:CurrentIncense", amount);
data.setFloat("BM:CurrentIncense", amount);
}
public static int getPlayerLPTag(EntityPlayer player)