@Override public void writeToNBT(NBTTagCompound compound) { super.writeToNBT(compound); compound.setString("SpellScript", Strings.join(script.getChant(), " ")); compound.setFloat("MagicEnergy", energy); NBTUtils.convertFacingToTag(compound, this.direction); }