Scoreboard to setblock coordinates
Hi everyone! I have stored in a scoreboard two values, respectively diamondoriginal and diamondnumber (sorry for the name, my creativity in that is super bad xD) I would like to set a block according to my coordinate changed by that value here is my code
execute as @s at @s run scoreboard players operation @s diamondnumber *= johnatan two execute as @s at @s run scoreboard players add @s diamondnumber 1 say yo setblock ~-diamondoriginal ~-diamondoriginal ~-diamondoriginal minecraft:structure_block{mode:"SAVE",posY:1,name:"minecraft:autoclone",sizeY:diamondnumber,sizeX:diamondnumber,sizeZ:diamondnumber,author:"<yourname>",showboundingbox:1b,ignoreEntities:1b} destroy``` of course the setblock command is wrong, since i cannot use (unfortunately) variables (scoreboard) in this way. I have got some suggestion but im really stucked, using a marker and modify the nbt position of the marker using the scoreboard but im very confused xD. Also these command will be run from a custom entity that is an item_frame. Any help is welcome xD thank!