Minecraft Platformer(V.0.18)

Instructions: *****Minecraft Plateformer*****\n\nArrows key to move , mouse for break\n\n100 Like!!!\n100 Fav!!!

@Stage\n\nwhen flag clicked\nswitch backdrop to (overworld v)\nrepeat until <(Background) = [1]>\n    if <(sound) = [0]> then\n        set [music v] to (pick random (1) to (3))\n        set volume to (Music-2) %\n    end\nend\n\nwhen I receive [nether v]\nset [x v] to [0]\nset volume to (Music-2) %\nrepeat (5)\n    change volume by (-5)\n    wait (0.2) seconds\nend\nrepeat (5)\n    change volume by (-1)\n    wait (0.2) seconds\nend\nset [music v] to [0]\nstop all sounds\nset volume to (Music-2) %\nplay sound [Rubedo - Minecraft Nether Music v] until done\n\nclear sound effects\n\nwhen flag clicked\nset [sound v] to [0]\nforever\n    if <(Background) = [0]> then\n        if <(Music) = [1]> then\n            play sound [C418 - Wet Hands - Minecraft Volume Alpha v] until done\n            set [sound v] to [1]\n        end\n        if <(Music) = [2]> then\n            play sound [C418 - Subwoofer Lullaby - Minecraft Volume Alpha v] until done\n            set [sound v] to [1]\n        end\n        if <(Music) = [3]> then\n            play sound [C418 - Haggstrom - Minecraft Volume Alpha v] until done\n            set [sound v] to [1]\n        end\n        set [sound v] to [0]\n    else\n        stop all sounds\n    end\nend\n\nwhen flag clicked\nrepeat until <(Background) = [1]>\n    set volume to (Music-2) %\nend\n\nwhen I receive [nether v]\nrepeat until <(Background) = [3]>\n    set volume to (Music-2) %\nend\n\nwhen I receive [nether v]\nrepeat until <(Background) = [3]>\n    if <<[-392] > (X)> and <(X) > [-1572]>> then\n        show\n    else\n        hide\n    end\n    if <(X) < [-3584]> then\n        switch backdrop to (forteress v)\n        set [background v] to [2]\n    else\n        if <(X) < [-2396]> then\n            switch backdrop to (bastion v)\n        else\n            if <(X) < [-924]> then\n                switch backdrop to (soulsand valley v)\n            else\n                switch backdrop to (the nether v)\n            end\n        end\n    end\nend\n\n@Player\n\nwhen flag clicked\nset [gamerulerespawnscreen v] to [0]\nset [life v] to [4]\nforever\n    if <(Gamemode) = [0]> then\n        if <<touching (trident-2 v)?> or <touching (trident-1 v)?>> then\n            broadcast (Mort v)\n            set [x v] to [0]\n            go to x: (0) y: (50)\n            if <(Gamerulerespawnscreen) = [0]> then\n                hide\n            end\n        end\n        if <touching (particle v)?> then\n            if <[-1000] < (X)> then\n                set [x v] to [0]\n                go to x: (0) y: (50)\n            end\n            if <(X) < [-1000]> then\n                set [x v] to [-1000]\n                go to x: (0) y: (100)\n            end\n            broadcast (Mort v)\n            if <(Gamerulerespawnscreen) = [0]> then\n                hide\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [tchat v] to []\npoint in direction (90)\nwait (1) seconds\nset volume to (30) %\nset [background v] to [0]\nset [left v] to [0]\nset [right v] to [0]\nset [up v] to [0]\n\nwhen [9 v] key pressed\nask [Jump] and wait\nset [up v] to (answer)\nask [left] and wait\nset [left v] to (answer)\nask [right] and wait\nset [right v] to (answer)\nask [down] and wait\nset [down v] to (answer)\nask [Tchat] and wait\nset [tchat v] to (answer)\n\nwhen flag clicked\nshow\npoint in direction (60)\nset size to (2000) %\nswitch costume to (steve v)\ngo to x: (-135) y: (0)\ncreate clone of (_myself_ v)\nrepeat until <<(Player) = [Loupieur]> or <<(Player) = [Steve]> or <(Player) = [Alex]>>>\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            set size to (800) %\n            set [brightness v] effect to (0)\n            broadcast (Start v)\n            set [player v] to [Steve]\n            delete this clone\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I start as a clone\nshow\npoint in direction (90)\nswitch costume to (alex v)\ngo to x: (135) y: (0)\nrepeat until <<(Player) = [Loupieur]> or <<(Player) = [Steve]> or <(Player) = [Alex]>>>\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            set size to (800) %\n            set [brightness v] effect to (0)\n            broadcast (Start v)\n            set [player v] to [Alex]\n            delete this clone\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nswitch costume to (Player)\ngo to [front v] layer\ngo [backward v] (2) layers\n\nwhen I receive [start v]\nrepeat until <key (any v) pressed?>\n    if <(Respawn) = [0]> then\n        if <(Player) = [Steve]> then\n            if <<mouse down?> and <(mouse x) < [5]>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (left-steve-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim v)\n                end\n            end\n            if <<mouse down?> and <[5] < (mouse x)>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (steve-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (steve v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (steve-swim v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim v)\n                end\n            end\n        end\n        if <(Player) = [Alex]> then\n            if <<mouse down?> and <(mouse x) < [5]>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (left-alex-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim v)\n                end\n            end\n            if <<mouse down?> and <[5] < (mouse x)>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (alex-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (alex v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (alex-swim v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nswitch costume to (Player)\ngo to x: (0) y: (150)\nforever\n    if <(Respawn) = [0]> then\n        if <(Player) = [Steve]> then\n            if <<key ((left) v) pressed?> or <key (left arrow v) pressed?>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (left-steve-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-steve-swim v)\n                end\n            end\n        end\n        if <(Player) = [Alex]> then\n            if <<key ((left) v) pressed?> or <key (left arrow v) pressed?>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (left-alex-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (left-alex-swim v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nswitch costume to (Player)\ngo to x: (0) y: (150)\nforever\n    if <(Respawn) = [0]> then\n        if <(Player) = [Steve]> then\n            if <<key (right arrow v) pressed?> or <key ((Right) v) pressed?>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (steve-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (steve v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (steve-swim v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (steve-swim v)\n                end\n            end\n        end\n        if <(Player) = [Alex]> then\n            if <<key (right arrow v) pressed?> or <key ((Right) v) pressed?>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (alex-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (alex v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (alex-swim v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (alex-swim v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\npoint in direction (90)\nset size to (800) %\ngo to x: (0) y: (150)\n\nwhen I receive [start v]\ndelete this clone\n\nwhen I start as a clone\npoint in direction (115)\n\nwhen I receive [mort v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        if <(Background) = [0]> then\n            switch backdrop to (the nether v)\n            set [background v] to [1]\n            broadcast (Nether v)\n        else\n            broadcast (Ocean v)\n            set [x v] to [0]\n            play sound [minecraft-nether-portal-sound-effects2 v] until done\n        end\n    end\nend\n\nwhen I receive [start v]\nswitch costume to (Player)\ngo to x: (0) y: (150)\nforever\n    if <(Respawn) = [0]> then\n        if <(Player) = [Loupieur]> then\n            if <<key (right arrow v) pressed?> or <key ((Right) v) pressed?>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (loupieur-walk 1 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-walk 2 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-walk 3 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim2 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim4 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim3 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim v)\n                end\n            end\n            if <<key (left arrow v) pressed?> or <key ((left) v) pressed?>> then\n                if <not <touching (ocean v)?>> then\n                    wait (0.1) seconds\n                    switch costume to (loupieur-walk left 1 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-walk 4 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-walk left 3 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur left v)\n                else\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim-left v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim-left2 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim-left3 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim-left4 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim-left3 v)\n                    wait (0.1) seconds\n                    switch costume to (loupieur-swim-left v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    set y to ((possY) + (26))\nend\n\nwhen I receive [respawn v]\nshow\nset [y v] to [0]\n\nwhen I receive [nether v]\nplay sound [minecraft-nether-portal-sound-effects v] until done\n\n@Player-Hitbox\n\ndefine Jump (gravity)\nchange [y v] by (gravity)\nchange y by (Y)\nif <touching (platform v)?> then\n    repeat until <not <touching (platform v)?>>\n        change y by (1)\n    end\n    set [y v] to [0]\n    if <<<key ((up) v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <[30] < (mouse y)>>> then\n        set [y v] to [12]\n    end\nend\n\nwhen I receive [nether v]\nset [spawnpoint v] to [0]\nset [background v] to [1]\ngo to x: (0) y: (100)\n\nwhen I receive [start v]\nset [ghost v] effect to (100)\nset [y v] to [0]\nforever\n    if <(Gamemode) = [0]> then\n        if <(parameter) = [off]> then\n            if <(Respawn) = [0]> then\n                if <not <touching (ocean v)?>> then\n                    Jump [-1]\n                else\n                    change y by (-0.6)\n                    if <<<key ((up) v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <[30] < (mouse y)>>> then\n                        repeat (2)\n                            change y by (5)\n                        end\n                    end\n                    if <<<key ((Down) v) pressed?> or <key (down arrow v) pressed?>> or <<mouse down?> and <(mouse y) < [-30]>>> then\n                        repeat (2)\n                            change y by (-3)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\ngo to x: (0) y: (150)\ngo to [front v] layer\nforever\n    if <(Respawn) = [0]> then\n        if <(parameter) = [off]> then\n            if <<key (right arrow v) pressed?> or <key ((Right) v) pressed?>> then\n                change [x v] by (Speed)\n            end\n            if <<key (left arrow v) pressed?> or <key ((left) v) pressed?>> then\n                change [x v] by ((Speed) * (-1))\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\npoint in direction (90)\ngo to x: (0) y: (100)\nshow\nset [tree v] to [0]\n\nwhen I receive [start v]\nset [-speed v] to [4]\nset [speed v] to [-4]\nset [jump v] to [10]\nset [gamemode v] to [0]\nset [y v] to [0]\nforever\n    if <<key ((Tchat) v) pressed?> or <key ((join [enter] []) v) pressed?>> then\n        set [parameter v] to [on]\n        ask [tchat] and wait\n        wait (0.1) seconds\n        set [y v] to [0]\n        set [parameter v] to [off]\n        if <(answer) = [/gamerule doImediateRespawn]> then\n            set [gamerulerespawnscreen v] to [1]\n        end\n        if <(answer) = [/Loupieur]> then\n            set [player v] to [Loupieur]\n        end\n        if <(answer) = [/tp]> then\n            ask [coordonnés] and wait\n            change [x v] by (answer)\n        end\n        if <(answer) = [/ocean]> then\n            broadcast (Ocean v)\n            go to x: (0) y: (100)\n            set [x v] to [0]\n        end\n        if <(answer) = [/nether]> then\n            broadcast (Nether v)\n            go to x: (0) y: (100)\n            set [x v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nset [spawnpoint v] to [0]\nset [gamerulerespawnscreen v] to [0]\nset [life v] to [4]\nforever\n    if <(Gamemode) = [0]> then\n        if <<touching (trident-2 v)?> or <touching (trident-1 v)?>> then\n            broadcast (Mort v)\n            set [x v] to (Spawnpoint)\n            go to x: (0) y: (50)\n            if <(Gamerulerespawnscreen) = [0]> then\n                hide\n            end\n            if <(Gamerulerespawnscreen) = [1]> then\n                broadcast (Respawn v)\n            end\n        end\n        if <<touching color (#8fa1a8)?> or <touching color (#399efe)?>> then\n            broadcast (Mort v)\n            if <[-1000] < (X)> then\n                set [x v] to (Spawnpoint)\n                go to x: (0) y: (50)\n            end\n            if <(X) < [-1000]> then\n                set [x v] to (Spawnpoint)\n                go to x: (0) y: (100)\n            end\n            if <(Gamerulerespawnscreen) = [0]> then\n                hide\n            end\n            if <(Gamerulerespawnscreen) = [1]> then\n                broadcast (Respawn v)\n            end\n        end\n        if <touching (danger v)?> then\n            broadcast (Mort v)\n            if <[-1000] < (X)> then\n                set [x v] to (Spawnpoint)\n                go to x: (0) y: (50)\n            end\n            if <(X) < [-1000]> then\n                set [x v] to (Spawnpoint)\n                go to x: (0) y: (100)\n            end\n            if <(Gamerulerespawnscreen) = [0]> then\n                hide\n            end\n            if <(Gamerulerespawnscreen) = [1]> then\n                broadcast (Respawn v)\n            end\n        end\n        if <(y position) < [-170]> then\n            if <[-1000] < (X)> then\n                set [x v] to (Spawnpoint)\n                go to [front v] layer\n                go to x: (0) y: (50)\n            end\n            if <<(X) < [-1000]> and <[-3600] < (X)>> then\n                set [x v] to (Spawnpoint)\n                go to x: (0) y: (100)\n                go to [front v] layer\n            end\n            if <(X) < [-3600]> then\n                set [x v] to (Spawnpoint)\n                go to x: (0) y: (100)\n                go to [front v] layer\n            end\n            broadcast (Mort v)\n            if <(Gamerulerespawnscreen) = [0]> then\n                hide\n            end\n            if <(Gamerulerespawnscreen) = [1]> then\n                broadcast (Respawn v)\n            end\n        end\n        if <touching (particle v)?> then\n            if <[-1000] < (X)> then\n                set [x v] to (Spawnpoint)\n                go to x: (0) y: (50)\n            end\n            if <(X) < [-1000]> then\n                set [x v] to (Spawnpoint)\n                go to x: (0) y: (100)\n            end\n            broadcast (Mort v)\n            if <(Gamerulerespawnscreen) = [0]> then\n                hide\n            end\n            if <(Gamerulerespawnscreen) = [1]> then\n                broadcast (Respawn v)\n            end\n        end\n    end\nend\n\nwhen I receive [respawn v]\nshow\npoint in direction (90)\ngo to x: (0) y: (100)\n\nwhen flag clicked\nset [tchat v] to []\nset [background v] to [0]\nset [player v] to []\nset [ghost v] effect to (100)\nset [spawnpoint v] to [0]\nforever\n    set [possy v] to (y position)\n    if <touching (bubble v)?> then\n        change y by (-8)\n    end\n    if <touching (tree v)?> then\n        change [x v] by ((Speed) * (-1))\n    end\nend\n\nwhen flag clicked\nset [spawnpoint v] to [0]\nset [gamerulerespawnscreen v] to [0]\nset [life v] to [4]\nforever\n    if <(X) < [-1000]> then\n        set [spawnpoint v] to [-1000]\n    end\n    if <(X) < [-3600]> then\n        set [spawnpoint v] to [-3600]\n    end\nend\n\nwhen I receive [ocean v]\nset [spawnpoint v] to [0]\n\n@Special Skin\n\nwhen flag clicked\nset [brightness v] effect to (0)\nhide\nif <(username) = [Loupieur]> then\n    show\n    switch costume to (loupieur v)\n    repeat until <<(Player) = [Loupieur]> or <<(Player) = [Alex]> or <(Player) = [Steve]>>>\n        if <touching (mouse-pointer v)?> then\n            set [brightness v] effect to (10)\n            if <mouse down?> then\n                set [player v] to [Loupieur]\n                broadcast (Start v)\n            end\n        else\n            set [brightness v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Player) = [Loupieur]> or <<(Player) = [Alex]> or <(Player) = [Steve]>>> then\n        hide\n    end\nend\n\n@Platform\n\nwhen flag clicked\nwait (0.1) seconds\nset [x v] to [0]\nswitch costume to (plateforme v)\nplatform [0] [0] [1]\nplatform [200] [-20] [2]\nplatform [350] [-20] [3]\nplatform [500] [-15] [4]\nplatform [700] [-10] [5]\nplatform [820] [0] [6]\nplatform [1060] [-10] [7]\nplatform [1170] [0] [8]\nplatform [1350] [0] [9]\nplatform [1420] [0] [10]\nplatform [1620] [0] [11]\nplatform [1620] [0] [12]\nplatform [1700] [10] [13]\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (big v)\n    go to x: ((tag) + (X)) y: (Py)\n    switch costume to (costume)\nend\n\nwhen I receive [nether v]\nhide\nrepeat (1)\n    delete this clone\nend\nplatform [0] [-30] [14]\nplatform [150] [-30] [15]\nplatform [280] [-30] [16]\nplatform [410] [-10] [17]\nplatform [525] [-30] [18]\nplatform [860] [-5] [19]\nplatform [1450] [-120] [20]\nplatform [1600] [-50] [21]\nplatform [1745] [-50] [22]\nplatform [1895] [-50] [23]\nplatform [1950] [-70] [24]\nplatform [2200] [-50] [25]\nplatform [2800] [-70] [26]\nplatform [3000] [-60] [27]\nplatform [3135] [-70] [28]\nplatform [3300] [-70] [29]\nplatform [3800] [-50] [30]\nplatform [4800] [50] [31]\n\nwhen I start as a clone\nforever\n    if <not <(Background) = [0]>> then\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nset [background v] to (x position)\n\nwhen I receive [ocean v]\nhide\nrepeat (1)\n    delete this clone\nend\nplatform [5000] [0] [32]\n\ndefine platform (tag) (y) (costume)\nset [tag v] to (tag)\nset [py v] to (y)\nset [costume v] to (costume)\ncreate clone of (_myself_ v)\n\n@Danger\n\nwhen flag clicked\nhide\nwait (0.1) seconds\nset [x v] to [0]\nplatform [1351] [0] [1] [5] [0.1]\n\nwhen I receive [nether v]\nhide\ndelete this clone\n\nwhen I receive [ocean v]\nhide\ndelete this clone\n\ndefine platform (tag) (y) (costume) (max frame) (frame rate)\nset [tag v] to (tag)\nset [py v] to (y)\nset [costume v] to (costume)\nset [max frame v] to (max frame)\nset [frame rate v] to (frame rate)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    change [frame v] by (frame rate)\n    switch costume to (big v)\n    go to x: ((tag) + (X)) y: (Py)\n    switch costume to ((costume) + ([floor v] of ((frame) mod (max frame)) ))\nend\n\n@Portal\n\nwhen flag clicked\nwait (0.1) seconds\nset [x v] to [0]\nhide\nplatform [1708] [10] [1] [4] [0.1]\n\nwhen I receive [nether v]\nhide\nrepeat (1)\n    delete this clone\nend\nplatform [5197] [-101] [1] [4] [0.1]\n\nwhen I receive [ocean v]\nhide\ndelete this clone\n\ndefine platform (tag) (y) (costume) (max frame) (frame rate)\nset [tag v] to (tag)\nset [py v] to (y)\nset [costume v] to (costume)\nset [max frame v] to (max frame)\nset [frame rate v] to (frame rate)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    change [frame v] by (frame rate)\n    switch costume to (big v)\n    go to x: ((tag) + (X)) y: (Py)\n    switch costume to ((costume) + ([floor v] of ((frame) mod (max frame)) ))\nend\n\n@Tree\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\nset [tag v] to [1]\ncreate clone of (_myself_ v)\nset [tag v] to [2]\ncreate clone of (_myself_ v)\n\nwhen I receive [nether v]\nrepeat (1)\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    if <not <(Background) = [0]>> then\n        hide\n    end\nend\n\nnext costume\n\nwhen I start as a clone\nif <(tag) = [2]> then\n    set [costume v] to [1]\n    switch costume to (complete tree v)\n    forever\n        show\n        switch costume to (big v)\n        go to x: ((500) + (X)) y: (0)\n        switch costume to (costume)\n        if <touching (mouse-pointer v)?> then\n            set [tree v] to [1]\n            if <mouse down?> then\n                change [costume v] by (1)\n                wait (0.05) seconds\n                set [tree v] to [0]\n            end\n        end\n        if <(costume) = [5]> then\n            repeat (33)\n                change [ghost v] effect by (3)\n                go to x: ((500) + (X)) y: (0)\n            end\n            hide\n            delete this clone\n        end\n    end\nend\nif <(tag) = [1]> then\n    set [costume v] to [1]\n    switch costume to (complete tree v)\n    forever\n        show\n        switch costume to (big v)\n        go to x: ((1620) + (X)) y: (15)\n        switch costume to (costume)\n        if <touching (mouse-pointer v)?> then\n            set [tree v] to [1]\n            if <mouse down?> then\n                change [costume v] by (1)\n                wait (0.05) seconds\n                set [tree v] to [0]\n            end\n        end\n        if <(costume) = [5]> then\n            repeat (33)\n                change [ghost v] effect by (3)\n                go to x: ((1620) + (X)) y: (15)\n            end\n            hide\n            delete this clone\n        end\n    end\nend\n\n@Bed\n\nwhen flag clicked\nset [bed v] to [0]\nhide\nwait (0.1) seconds\nswitch costume to (plateforme v)\ngo to x: (0) y: (-10)\nforever\n    go to x: ((525) + (X)) y: (-30)\n    if <touching (player v)?> then\n        broadcast (Explosion v)\n        set [bed v] to [1]\n        hide\n    end\nend\n\nwhen I receive [nether v]\nrepeat until <(Background) = [3]>\n    if <(Bed) = [0]> then\n        if <<[-288] > (X)> and <(X) > [-800]>> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [ocean v]\nhide\ndelete this clone\n\n@Particle\n\nwhen I receive [explosion v]\nswitch costume to (explosion1/4 v)\nshow\nrepeat (3)\n    wait (0.00001) seconds\n    next costume\nend\nhide\n\nwhen flag clicked\nhide\n\n@UI\n\nwhen I receive [mort v]\nhide\nrepeat (1)\n    delete this clone\nend\nif <(Gamerulerespawnscreen) = [0]> then\n    set [respawn v] to [1]\n    set [y v] to [0]\n    switch costume to (death screen v)\n    create clone of (_myself_ v)\n    switch costume to (death screen2 v)\n    create clone of (_myself_ v)\n    switch costume to (death screen3 v)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nset size to (100) %\nset [respawn v] to [0]\nhide\nswitch costume to (minecraft v)\ncreate clone of (_myself_ v)\n\nwhen I receive [respawn v]\nrepeat (1)\n    delete this clone\nend\nhide\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\nend\nif <(costume [number v]) = [2]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    forever\n        if <touching (mouse-pointer v)?> then\n            set [brightness v] effect to (25)\n            set size to (105) %\n            if <mouse down?> then\n                broadcast (Respawn v)\n                set [respawn v] to [0]\n                delete this clone\n            end\n        else\n            set [brightness v] effect to (0)\n            set size to (100) %\n        end\n    end\nend\nif <(costume [number v]) = [3]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    forever\n        if <touching (mouse-pointer v)?> then\n            set [brightness v] effect to (25)\n            set size to (105) %\n            if <mouse down?> then\n                stop [all v]\n            end\n        else\n            set [brightness v] effect to (0)\n            set size to (100) %\n        end\n    end\nend\nif <(costume [number v]) = [4]> then\n    set size to (100) %\n    go to x: (0) y: (120)\n    go to [back v] layer\n    show\nend\n\nwhen I receive [start v]\nrepeat (1)\n    delete this clone\nend\n\n@ghast\n\nwhen I receive [nether v]\nforever\n    if <(X) = [-1872]> then\n        show\n        switch costume to (costume1 v)\n        go to x: (300) y: (300)\n        glide (0.5) secs to x: (150) y: (120)\n        switch costume to (costume2 v)\n        broadcast (Fire charche v)\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n        wait (2) seconds\n        glide (0.5) secs to x: (300) y: (300)\n        stop [this script v]\n    end\n    hide\nend\n\nwhen flag clicked\nhide\n\n@Fire Charge\n\nwhen I receive [fire charche v]\ngo to x: (180) y: (170)\npoint towards (player v)\nshow\nrepeat (100)\n    move (10) steps\n    if <touching (player v)?> then\n        broadcast (Explosion v)\n        hide\n    end\nend\nhide\n\nwhen flag clicked\nhide\n\n@Blaze rod\n\nwhen I receive [nether v]\nrepeat until <(Background) = [3]>\n    if <(Blaze Rod) = [0]> then\n        if <<[-4840] > (X)> and <(X) > [-6000]>> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nset [blaze rod v] to [0]\nrepeat until <(Background) = [3]>\n    go to x: ((5100) + (X)) y: (-15)\n    if <touching (player v)?> then\n        set [blaze rod v] to [1]\n        hide\n    end\nend\n\n@ocean\n\nwhen flag clicked\nhide\n\nwhen I receive [ocean v]\nswitch backdrop to (océan v)\ngo to [front v] layer\nset [background v] to [3]\nshow\n\n@???\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo [backward v] (1) layers\ngo to [front v] layer\nshow\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n@Sagovacha\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\nrepeat (50)\nwait (1) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n@Guardian\n\nwhen flag clicked\ngo to x: (-401) y: (-16)\nhide\n\nwhen I receive [ocean v]\ngo to [front v] layer\ngo to x: (-401) y: (-16)\nhide\nrepeat until <(X) < [-3600]>\n    if <<(X) < [-2800]> and <(X) > [-2850]>> then\n        show\n        repeat (10)\n            change x by (10)\n        end\n        repeat until <(X) < [-3600]>\n            wait (Respawn) seconds\n            if <<(Respawn) = [0]> and <not <<<mouse down?> and <(mouse x) > [20]>> or <<key (right arrow v) pressed?> or <key ((Right) v) pressed?>>>>> then\n                glide (0.3) secs to x: (-15) y: (possY)\n                broadcast (Mort v)\n                go to x: (-330) y: (-16)\n            end\n        end\n    end\nend\nrepeat (20)\n    change x by (-10)\nend\nhide\n\nwhen I receive [ocean v]\nforever\n    repeat (10)\n        change y by (1)\n        wait (0.1) seconds\n    end\n    repeat (10)\n        change y by (-1)\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [ocean v]\nforever\n    if <<(X) < [5000]> and <(X) > [5050]>> then\n        repeat (10)\n            change x by (1)\n        end\n    end\nend\n\n@LAVA FLOW\n\nwhen flag clicked\nhide\nforever\n    if <(Background) = [2]> then\n        go to [back v] layer\n        show\n        go to x: (83) y: (250)\n        glide (16) secs to x: (83) y: (-500)\n    else\n        hide\n    end\nend\n\nwhen backdrop switches to [forteress v]\nset [background v] to [2]\n\nwhen backdrop switches to [océan v]\nhide\n\n@Trident-1\n\nwhen flag clicked\nhide\n\nwhen I receive [ocean v]\nrepeat until <(Background) = [4]>\n    if <<(X) < [-100]> and <[-120] < (X)>> then\n        switch costume to (alerte v)\n        show\n        go to x: (200) y: (possY)\n        repeat (5)\n            show\n            wait (0.5) seconds\n            hide\n            wait (0.5) seconds\n        end\n        switch costume to (trident v)\n        show\n        repeat (30)\n            move (-20) steps\n        end\n        hide\n    end\nend\n\nwhen I receive [ocean v]\nrepeat until <(Background) = [4]>\n    if <<(X) < [-100]> and <[-120] < (X)>> then\n        switch costume to (alerte v)\n        show\n        go to x: (200) y: (possY)\n        repeat (5)\n            glide (1) secs to x: (200) y: (possY)\n        end\n    end\nend\n\n@Trident-2\n\nwhen flag clicked\nhide\n\nwhen I receive [ocean v]\nrepeat until <(Background) = [4]>\n    if <<(X) < [-150]> and <[-180] < (X)>> then\n        switch costume to (alerte v)\n        show\n        go to x: (200) y: (possY)\n        repeat (5)\n            show\n            wait (0.5) seconds\n            hide\n            wait (0.5) seconds\n        end\n        switch costume to (trident v)\n        show\n        repeat (30)\n            move (-20) steps\n        end\n        hide\n    end\nend\n\nwhen I receive [ocean v]\nrepeat until <(Background) = [4]>\n    if <<(X) < [-150]> and <[-180] < (X)>> then\n        switch costume to (alerte v)\n        show\n        go to x: (200) y: (possY)\n        repeat (5)\n            glide (1) secs to x: (200) y: (possY)\n        end\n    end\nend\n\n@Océan\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [ocean v]\nshow\ngo to [back v] layer\nrepeat until <(Background) = [4]>\n    if <<<mouse down?> and <(mouse x) > [20]>> or <<key (right arrow v) pressed?> or <key ((Right) v) pressed?>>> then\n        change x by ((Speed) + (2))\n    end\n    if <<<mouse down?> and <[20] > (mouse x)>> or <<key (left arrow v) pressed?> or <key ((left) v) pressed?>>> then\n        change x by ((-speed) - (2))\n    end\n    if <[-515] > (x position)> then\n        go to x: (510) y: (0)\n    end\n    if <(x position) > [511]> then\n        go to x: (-514) y: (0)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [mort v]\ngo to x: (0) y: (0)\n\nbroadcast (Ocean v)\n\n@Océan-2\n\nwhen flag clicked\ngo to x: (5000) y: (0)\nhide\n\nwhen I receive [ocean v]\nshow\ngo to [back v] layer\nrepeat until <(Background) = [4]>\n    if <<<mouse down?> and <(mouse x) > [20]>> or <<key ((Right) v) pressed?> or <key (right arrow v) pressed?>>> then\n        change x by ((Speed) + (2))\n    end\n    if <<<mouse down?> and <[20] > (mouse x)>> or <<key ((left) v) pressed?> or <key (left arrow v) pressed?>>> then\n        change x by ((-speed) - (2))\n    end\n    if <[-515] > (x position)> then\n        go to x: (510) y: (0)\n    end\n    if <(x position) > [511]> then\n        go to x: (-514) y: (0)\n    end\nend\n\nwhen I receive [mort v]\ngo to x: (510) y: (0)\n\n@Trident-3\n\nwhen flag clicked\nhide\n\nwhen I receive [ocean v]\nrepeat until <(Background) = [4]>\n    if <<(X) < [-270]> and <[-300] < (X)>> then\n        switch costume to (alerte v)\n        show\n        go to x: (200) y: (possY)\n        repeat (5)\n            show\n            wait (0.3) seconds\n            hide\n            wait (0.3) seconds\n        end\n        switch costume to (trident v)\n        show\n        repeat (30)\n            move (-20) steps\n        end\n        hide\n    end\nend\n\nwhen I receive [ocean v]\nrepeat until <(Background) = [4]>\n    if <<(X) < [-270]> and <[-300] < (X)>> then\n        switch costume to (alerte v)\n        show\n        go to x: (200) y: (possY)\n        repeat (5)\n            glide (0.6) secs to x: (200) y: (possY)\n        end\n    end\nend\n\n@Bubble\n\nwhen I receive [ocean v]\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat (20)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\nrepeat until <(Background) = [4]>\n    set x to ((2000) + (X))\n    change y by (pick random (-5) to (-30))\n    if <touching (_edge_ v)?> then\n        hide\n        set y to (175)\n    else\n        show\n    end\nend\n\nwhen I start as a clone\nrepeat until <(Background) = [4]>\n    set x to ((2000) + (X))\n    change y by (pick random (-5) to (-30))\n    if <touching (_edge_ v)?> then\n        hide\n        set y to (175)\n        switch costume to (pick random (1) to (6))\n    else\n        show\n    end\nend\ndelete this clone\n\n@Dolfin\n\nwhen flag clicked\nhide\n\nwhen I receive [ocean v]\nswitch costume to (daulphin1 v)\nhide\nrepeat until <(X) < [-3730]>\n    if <<(X) < [-1000]> and <(X) > [-1050]>> then\n        show\n        go to x: (-270) y: (206)\n        glide (2) secs to x: (-100) y: (150)\n        glide (0.5) secs to x: (0) y: (150)\n        set [-speed v] to [8]\n        set [speed v] to [-8]\n        repeat until <(X) < [-3730]>\n            go to x: (0) y: ((possY) + (120))\n            if <<<mouse down?> and <(mouse x) > [20]>> or <<key (right arrow v) pressed?> or <key ((Right) v) pressed?>>> then\n                switch costume to (daulphin1 v)\n            end\n            if <<<mouse down?> and <[20] > (mouse x)>> or <<key (left arrow v) pressed?> or <key ((left) v) pressed?>>> then\n                switch costume to (daulphin2 v)\n            end\n        end\n        repeat (200)\n            change y by (10)\n        end\n        hide\n    end\nend\n\n@GuardianLazer\n\nwhen flag clicked\nhide\nforever\n    switch costume to (lazer-1 v)\n    wait (0.1) seconds\n    switch costume to (lazer-2 v)\n    wait (0.1) seconds\n    switch costume to (lazer-3 v)\n    wait (0.1) seconds\nend\n\nwhen I receive [ocean v]\nset [ghost v] effect to (0)\nwait until <(X) < [-2800]>\nrepeat until <(X) < [-3400]>\n    show\n    set [ghost v] effect to (50)\n    wait (3) seconds\n    set [ghost v] effect to (0)\n    point in direction (pick random (75) to (115))\n    go to x: (0) y: (0)\n    wait (1) seconds\nend\nhide\n\nwhen I receive [ocean v]\nset [ghost v] effect to (0)\nforever\n    if <(X) < [-3400]> then\n        hide\n    end\nend\n\n@thumbnail\n\nwhen [timer v] > (i)\ngo to [front v] layer\nswitch costume to (thumbnail v)\nset size to (100) %\ngo to x: (0) y: (0)\nshow\n\nwhen flag clicked\nhide\nforever\n    set [i v] to ((timer) + (0.1))\nend\n\n