Editing Tiles - goncalomb/NBTEditor GitHub Wiki
Some special tiles can be edited using the /nbttile (/nbtt) command, things like beacons, beds, chests, command blocks, spawners etc.
Similarly to editing entities and items, tiles have variables that can be changed using the /nbtt var <variable> ... command. E.g. while looking at a chest, running the command /nbtt var Name My Box will rename the chest.
To see information about a tile use the /nbtt info command.
To clear a variable use the /nbtt clearvar <variable> command.
The /nbtspawner (/nbts) command is similar to /nbttile, but is exclusively for editing spawners. This is a powerful command, it can be used to create spawners that work with any entity from a BoS. More on the commands page.
It's possible to copy data from one tile to another of the same type by simply running /nbtt copy while looking at the first tile then /nbtt paste while looking at the second.
Running /nbtt tocommand while looking at a tile will convert it to a vanilla /setblock command by creating a command block below it.