Code:
loop all players:
set {_x} to x-coord of loop-player
set {_y} to y-coord of loop-player
set {_z} to z-coord of loop-player
set {_totalUp} to 0
if block at {_x} {_y} {_z} is "jungle wood bark block":
loop 25 times:
if block at {_x} {_y} {_z} is jungle wood bark block:
add 1 to {_y}
add 1 to {_totalUp}
else:
add 1 to {_y}
add 1 to {_totalUp}
if block at {_x} {_y} {_z} isn't jungle wood bark block:
execute console command "/pex user %loop-player% add minecraft.command.tp"
make loop-player execute command "/tp ~ ~%{_totalUp}% ~"
execute console command "/pex user %loop-player% remove minecraft.command.tp"
"Can't compare 'block at {_x} {_y} {_z}' with a text" - (Line 6)
Is there any alternative to do something like this?