If you are looking at a block and press F3+K you should be able to copy the blocks location and properties as a /setblock command, similar to how if you press F3+C you can copy the player's exact position as a /tp command.
For example, if you had a stone button placed on the wall facing west located at 0, 0, 0, and you are looking at the stone button and press F3+K, you should get the command: /setblock 0 0 0 stone_button[face=wall,facing=west,powered=false] copied to your clipboard. The game already knows all of this information, as it is shown in the F3 menu, so it may not be very difficult to add.
This does not need include any NBT data of a block, if for instance you were using a sign, it would only copy its properites (direction etc.), not the NBT data.
Please sign in to leave a comment.
1 Comments