ByteTag bt = new ByteTag("8bitRetroNumber", (byte) 1); DoubleTag dt = new DoubleTag("64bitFloatingPointNumber", 1.234); CompoundTag ct = new CompoundTag("compound"); ct.set(bt); ct.set(dt);