I know you can't convert for example double a; to int without (int).
Of course I asked you a way to get it as CompoundTag.
Thanks to your response, my code did compile ๐ฎ
But when trying to restore a block with its tile entity, items are not replaced !!
I tried with a furnace, for example.
I've put things to burn in it.
I stored the furnace into my item, and placed back after.
The new furnace was still burning (lit=true) but the items inside it disappears !!
How can I fix that ??
Thank you ! ๐