@Override public void writeToNBT(NBTTagCompound tag) { super.writeToNBT(tag); tag.setInteger("output", lastOutput); }