#Am I blind or why does my loop not work

1 messages · Page 1 of 1 (latest)

oak cobaltBOT
#
function ./create_blue/loop_y:
    if score #y_size temp matches ..0:
        return 0

    scoreboard players remove #y_size temp 1

    setblock ~ ~ ~ cyan_concrete

    function ./create_blue/loop_z:
        if score #z_size temp matches ..0:
            return 0

        # if block ~ ~ ~ air:
        setblock ~ ~ ~ blue_concrete

        scoreboard players remove #z_size temp 1

        positioned ~ ~ ~1:
            function ./create_blue/loop_z

    function ./create_blue/loop_z

    positioned ~ ~1 ~:
        function ./create_blue/loop_y

function ./create_blue/loop_y
elder pythonBOT
crude verge
#

probably something to do with your returns

cold venture
#

doesn't it like run the function you're creating when doing that inside another function?

#

if it does, it will be stuck in the loop_z function

elder pythonBOT
nova lotus
#

Btw the answer was i forgot to reset the scoreboard for every loop