So I the past days I've been trying to make a function that gets you your X coordinate to a scoreboard type dummy and called XC.
Everything is happening on the pozitive side of the x axis around the 0,4,0 coordinates.
And in a nushell the the logic behind is corect, so is the implementation.
And this is what I wrote in the function file:
summon minecraft:area_effect_cloud 0 0 0 {Duration:1,Tags:["PXC"],Particle:take}
tp @e[tag=PXC] @p
scoreboard players set @p XC 0
tp @e[tag=PXC] ~-32 ~ ~
execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 32000
execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~32 ~ ~
tp @e[tag=PXC] ~-16 ~ ~
execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 16000
execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~16 ~ ~
tp @e[tag=PXC] ~-8 ~ ~
execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 8000
execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~8 ~ ~
tp @e[tag=PXC] ~-4 ~ ~
execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 4000
execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~4 ~ ~
tp @e[tag=PXC] ~-2 ~ ~
execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 2000
execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~2 ~ ~
tp @e[tag=PXC] ~-1 ~ ~
execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 4000
execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~1 ~ ~
kill @e[tag=PXC]
It generates somekind of strange random numbers....
I think it's a bug but I really am bother by why it's not working....
If it's not a bug but you have any kind of clue why it is happening please anounce me 🙂
Your last scoreboard command should likely be
But could you please try to track down the bug (if there is one) and then only mention it, otherwise your report will likely be closed as invalid since this is no support forum, try /r/MinecraftCommands or /r/MCFunctionsF.