I made a sonic map in 1.12 commands, and I'm now trying to transfer it to 1.13 commands instead.
I'm trying to detect how many blocks were affected by the command that was run (previously "/stats") by using the new /execute store result. As you can see, it didn't work cause the "test" scoreboard shows 84 instead of 18.
What I'm thinking is that it's adding the time to the scoreboard as well. I've tried looking up solutions on the wiki, youtube, etc.
But can't wrap my head around how it works!
there is a system that collects gold with
execute as @a [x=666704,dx=138,y=44,dy=23,z=981,dz=12] at @s run fill ~1 ~1 ~1 ~-1 ~-1 ~-1 air replace gold_block problem is, it can remove 2 gold blocks though getting only 1 gold ingot. That's why I want to get the input from the command and store the result on a scoreboard. Referring to what MegaCrafter10 said, I tested his command(
execute store result score <player> <objective> run fill <x> <y> <z> <x2> <y2> <z2> <block>
) and I found another problem, It sets back to 0 every time there is no output(it's in a repeating command block). Would it be able to store how many blocks of gold it has filled away without it being reset? Instead, rising higher by 1 for each gold?