MineCraft Platformer 2  remix

Instructions: MineCraft Platformer 2 (Episode 2)\n\n➊ Use ARROW keys, WASD keys or touchscreen.\n➋ SPACEBAR or ACTION to chop, hit or craft.\n\nLevel 1 has a tutorial and keeps items to get you going.  TONS of awesome new gameplay!\n\nFirst 100 to love and comment win chance to be added  to the credit crew!\nYes, you CAN post a walk-through in the comments!  \n\n---------- IPad, tablet, and mobile friendly ---------\n\n-----------------------Search Tags-----------------------\n#games #minecraft  #platformer #platform #music #2  #animation #atomicmagicnumber  #episode #mobile\n---------------------------------------------------------------\nPro tip - to thank you for reading this stuff:\n\nHUGE BONUS CHESTS for completing levels FAST!\nMAX of 5 CHEST per level for ULTRA FAST players!\nYes, it is possible to get all the chests... but it is hard - getting even one chest a level is a huge achievement.

@Stage\n\nwhen I receive [gamemusic v]\nforever\n    stop all sounds\n    play sound [minecraft_theme_song_t2g_hardstyle_remix - reworked v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (startscreen v)\n\nwhen I receive [levelup v]\nswitch backdrop to (Level)\n\nwhen I receive [gameover v]\nswitch backdrop to (won v)\n\nwhen I receive [instructionsstickers v]\nwait (0.1) seconds\nswitch backdrop to (startscreen2 v)\n\nwhen I receive [start v]\nswitch backdrop to (1 v)\n\nwhen I receive [gameover v]\nswitch backdrop to (backdrop1 v)\n\nchange [pitch v] effect by (-50)\n\nclear sound effects\n\n@Start End screens\n\nbroadcast (gameover v)\n\nwhen I receive [start v]\nhide\n\nwhen I receive [instructionspage v]\nrepeat (30)\n    change size by (-1)\n    change y by (2.05)\nend\nbroadcast (InstructionsStickers v)\n\nwhen I receive [gameover v]\nswitch costume to (you win! v)\ngo to [back v] layer\ngo to x: (-30) y: (260)\nset size to (100) %\nshow\nglide (1) secs to x: (-30) y: (40)\n\nwhen [9 v] key pressed\nshow\nif <mouse down?> then\n    stop [other scripts in sprite v]\n    show\n    go to x: (0) y: (0)\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (thumbnail v)\n    go to x: (0) y: (0)\n    stop [all v]\nend\n\nwhen flag clicked\nset [holdingitem v] to [Nothing]\nset [level v] to [1]\nswitch costume to (title v)\nshow\ngo to [front v] layer\nclear graphic effects\nset size to (100) %\nbroadcast (gamemusic v)\ngo to x: (0) y: (0)\nwait (1) seconds\nrepeat (20)\n    change size by (-1)\n    change y by (1.5)\nend\nbroadcast (LaunchMinecraftSign v)\n\nhide\n\nset [holdingitem v] to [Nothing]\nset [level v] to [5]\nbroadcast (Start v)\nwait (0.1) seconds\nbroadcast (RestartLevel v)\nwait (0.1) seconds\nbroadcast (PositionControlCharacter v)\nset [maxyjump v] to [9]\nhide\n\nset size to (100) %\ngo to [front v] layer\nswitch costume to (thumbnail v)\nstop [all v]\n\n@crafting\n\nwhen flag clicked\nhide\nswitch costume to (l1start v)\n\nwhen I receive [start v]\nshow\nswitch costume to (empty v)\nset size to (100) %\nforever\n    if <(letter (1) of (costume [name v])) = [*]> then\n        set size to (100) %\n        repeat (10)\n            change size by (0.5)\n        end\n        repeat (10)\n            change size by (-0.5)\n        end\n    end\n    if <(Level) = [6]> then\n        hide\n    end\nend\n\nwhen I receive [nextcraftingstage v]\nnext costume\n\nwhen this sprite clicked\nbroadcast (#Crafting v)\n\nwhen [space v] key pressed\nbroadcast (#Crafting v)\n\nwhen I receive [#crafting v]\nif <(Level) = [1]> then\n    if <(costume [number v]) = [5]> then\n        next costume\n        stop [this script v]\n    end\n    if <(costume [number v]) = [6]> then\n        HoldingLadder\n    end\n    if <(costume [number v]) = [11]> then\n        set [maxyjump v] to [9]\n        broadcast (SpeedUpPotion v)\n        next costume\n        stop [this script v]\n    end\nend\nif <(Level) = [3]> then\n    if <(costume [number v]) = [16]> then\n        broadcast (MakeSlimeBlock! v)\n        next costume\n    end\n    stop [this script v]\nend\nif <(Level) = [4]> then\n    if <(costume [number v]) = [26]> then\n        broadcast (MadeSaddle v)\n        next costume\n    end\n    stop [this script v]\nend\nif <(Level) = [5]> then\n    if <(costume [number v]) = [31]> then\n        broadcast (HoldL5Weapon v)\n        next costume\n        stop [this script v]\n    end\n    if <(costume [number v]) = [36]> then\n        HoldingTNT\n    end\n    if <(costume [number v]) = [37]> then\n        Boom\n    end\n    stop [this script v]\nend\n\nwhen I receive [levelup v]\nStartLevelWithRightCostume\n\nwhen I receive [joycrafting v]\nbroadcast (#Crafting v)\n\nwhen I receive [restartlevel v]\nStartLevelWithRightCostume\n\nwhen I receive [#crafting v]\nstart sound [Chop v]\nbroadcast (#ACTION v)\n\ndefine StartLevelWithRightCostume\nif <(Level) = [1]> then\n    stop [this script v]\nend\nif <(Level) = [2]> then\n    switch costume to (l1start v)\n    stop [this script v]\nend\nif <(Level) = [3]> then\n    switch costume to (level 2-3 v)\n    stop [this script v]\nend\nif <(Level) = [4]> then\n    switch costume to (level 3/4 v)\n    stop [this script v]\nend\nif <(Level) = [5]> then\n    switch costume to (l4/5 v)\n    stop [this script v]\nend\n\nnext costume\n\ndefine Boom\nstop [other scripts in sprite v]\nif <(HoldingItem) = [TNT]> then\n    stop [other scripts in sprite v]\n    if <<<([x position v] of [controlcharacter v]) > [55]> and <([y position v] of [controlcharacter v]) < [-110]>> and <([y position v] of [controlcharacter v]) > [-120]>> then\n        switch costume to (l5finished! v)\n        set [holdingitem v] to [Nothing]\n        broadcast (HideL5Weapon v)\n        broadcast (TNT_Explosion v)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    else\n        broadcast (TNT_ExplosionPrompt v)\n        stop [this script v]\n    end\nend\nstop [other scripts in sprite v]\n\ndefine HoldingTNT\nstop [other scripts in sprite v]\nnext costume\nbroadcast (HoldingTNT v)\nset [holdingitem v] to [TNT]\nstop [other scripts in sprite v]\nstop [this script v]\n\ndefine HoldingLadder\nif <<<([x position v] of [controlcharacter v]) > [-153]> and <([x position v] of [controlcharacter v]) < [-70]>> and <([y position v] of [controlcharacter v]) > [-100]>> then\n    next costume\n    broadcast (-L2Ladder v)\nelse\n    broadcast (L2Ladderprompt v)\nend\nstop [this script v]\n\nstop [other scripts in sprite v]\n\nwhen I receive [gameover v]\nforever\n    hide\nend\n\n@PLATFORMS\n\nwhen I receive [levelup v]\nif <[1] = [1]> then\n    delete this clone\nend\nif <(Level) = [9]> then\n    broadcast (gameover v)\nelse\n    if <(Level) = [5]> then\n        switch costume to (platform lift v)\n        create clone of (_myself_ v)\n    end\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [-l1bridge v]\nswitch costume to (-l1ladder v)\nshow\n\nwhen I receive [l3 jelly background v]\nswitch costume to (3slimed v)\n\nwhen I receive [restartlevel v]\nif <[1] = [1]> then\n    delete this clone\nend\nif <(Level) = [5]> then\n    switch costume to (platform lift v)\n    create clone of (_myself_ v)\nend\nswitch costume to (Level)\n\nwhen I receive [-l4mined v]\nswitch costume to (-4-dug v)\nshow\n\nwhen I receive [releasethewater v]\nswitch costume to (2 flooded v)\n\nwhen I start as a clone\nif <not <(Level) = [5]>> then\n    hide\n    delete this clone\nend\nshow\ngo to x: (0) y: (-50)\nforever\n    wait until <([costume name v] of [lever v]) = [On]>\n    glide (3) secs to x: (0) y: (-180)\n    wait (2) seconds\n    glide (5) secs to x: (0) y: (-50)\n    wait (1) seconds\nend\n\nwhen I receive [-l5mined v]\nif <(costume [number v]) = [5]> then\n    switch costume to (-l5mined v)\nend\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (1000) y: (1000)\ndelete this clone\n\nset [☁ #bestscore v] to [0]\n\nwhen I receive [launchfirstlevel v]\nswitch costume to (1 v)\nshow\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ngo to [back v] layer\nswitch costume to (1 v)\n\n@minecraft\n\nwhen I receive [instructionspage v]\nrepeat (40)\n    change size by (-1)\n    change y by (1.5)\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset size to (80) %\ngo to x: (0) y: (-300)\ngo to [front v] layer\nswitch costume to (platformer v)\nshow\nglide (1) secs to x: (0) y: (50)\nbroadcast (Bump v)\nwait (0.1) seconds\nbroadcast (ShowEpisode v)\n\nwhen I receive [bump v]\nif <(costume [number v]) = [1]> then\n    set [bump v] to [5]\n    repeat (11)\n        change y by (Bump)\n        change [bump v] by (-1)\n    end\nend\n\nwhen I receive [bumpleft v]\n\nif <(costume [number v]) = [1]> then\n    set [bump v] to [7]\n    repeat (5)\n        change x by ((0) - (Bump))\n        change [bump v] by (-1)\n    end\nelse\n    set [bump v] to [7]\n    repeat (5)\n        change x by ((0) - (Bump))\n        change [bump v] by (-1)\n    end\nend\n\nwhen I receive [launchminecraftsign v]\nswitch costume to (minecraft v)\nwait (0.4) seconds\ngo to x: (0) y: (300)\nset size to (80) %\ngo to [front v] layer\nshow\nglide (1) secs to x: (0) y: (50)\ncreate clone of (_myself_ v)\n\nrepeat (40)\n    change size by (-1)\n    change y by (1.5)\nend\n\nwhen I receive [start v]\nhide\ndelete this clone\n\nwhen I receive [gameover v]\nhide\n\n@Episode 2\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I start as a clone\nif <(costume [number v]) = [9]> then\n    show\n    glide (0.5) secs to x: (0) y: (0)\n    glide (0.2) secs to x: (0) y: (50)\n    glide (0.2) secs to x: (0) y: (0)\n    glide (0.1) secs to x: (0) y: (25)\n    glide (0.1) secs to x: (0) y: (0)\nelse\n    show\n    glide (0.5) secs to x: (0) y: (-100)\n    glide (0.2) secs to x: (10) y: (-50)\n    glide (0.2) secs to x: (20) y: (-100)\n    glide (0.1) secs to x: (25) y: (-75)\n    glide (0.1) secs to x: (30) y: (-100)\nend\n\nwhen I receive [showepisode v]\nwait (0.6) seconds\nset size to (100) %\nhide\nclear graphic effects\ngo to x: (-100) y: (400)\nswitch costume to (episode 1 v)\ngo to [front v] layer\nrepeat (8)\n    create clone of (_myself_ v)\n    next costume\n    wait (0.2) seconds\nend\nwait (0.5) seconds\ngo to x: (0) y: (400)\ncreate clone of (_myself_ v)\nwait (1) seconds\nnext costume\ngo to x: (30) y: (0)\nclear graphic effects\nbroadcast (DropLetters v)\n\nwhen I receive [instructionspage v]\nif <(costume [number v]) = [9]> then\n    repeat (35)\n        change size by (-1)\n        change y by (1.5)\n    end\nend\n\nwhen I receive [dropletters v]\nif <(costume [number v]) = [9]> then\n    wait (0.5) seconds\n    broadcast (InstructionsPage v)\nelse\n    wait ((costume [number v]) * (0.1)) seconds\n    glide (0.2) secs to x: (30) y: (-170)\n    go to [back v] layer\n    repeat (40)\n        change y by (-1)\n    end\n    delete this clone\nend\n\nwhen I receive [fadeoutinstructions v]\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\nset size to (100) %\nshow\nset [ghost v] effect to (100)\nrepeat (20)\n    go to [front v] layer\n    change [ghost v] effect by (-5)\nend\nbroadcast (Start v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [gameover v]\nif <[1] = [1]> then\n    delete this clone\nend\nwait (3) seconds\nset size to (170) %\nshow\nclear graphic effects\ngo to x: (-300) y: (130)\nswitch costume to (centre2 v)\nglide (0.9) secs to x: (182) y: (130)\n\n@HERO\n\nwhen I receive [levelup v]\ngo to [front v] layer\nswitch costume to (normal v)\n\nwhen I receive [start v]\nbroadcast (Footsteps v)\nswitch costume to (normal v)\nshow\nforever\n    go to (controlcharacter v)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xvelocity v] by (1.5)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xvelocity v] by (-1.5)\n        point in direction (-90)\n    end\nend\n\nwhen I receive [heropointleft v]\npoint in direction (-90)\n\nwhen I receive [heropointright v]\npoint in direction (90)\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [footsteps v]\nbroadcast (WalkSounds v)\nforever\n    if <not <(OldX) = (x position)>> then\n        if <(costume [number v]) = [12]> then\n            switch costume to (normal v)\n        else\n            if <(costume [number v]) = [21]> then\n                switch costume to (horse v)\n            else\n                next costume\n            end\n        end\n    end\n    set [oldx v] to (x position)\nend\n\nwhen flag clicked\nhide\nswitch costume to (normal v)\nset [holdingitem v] to [Normal]\nwait (0.05) seconds\n\nwhen I receive [holding v]\nif <(HoldingItem) = [Horse]> then\n    switch costume to (horse v)\nend\n\nwhen I receive [walksounds v]\nforever\n    if <not <(OldXFootsteps) = (x position)>> then\n        play sound [Walk v] until done\n    end\n    set [oldxfootsteps v] to (x position)\nend\n\nwhen I receive [-l2ladder v]\ngo to [front v] layer\nwait (0.1) seconds\ngo to [front v] layer\n\nwhen I receive [instructionsstickers v]\nswitch costume to (normal v)\nshow\npoint in direction (-90)\ngo to x: (-220) y: (-10)\nrepeat until <(x position) > [235]>\n    go to [front v] layer\n    if <(costume [number v]) = [12]> then\n        switch costume to (normal v)\n    else\n        next costume\n    end\n    change x by (4)\nend\npoint in direction (90)\nbroadcast (HidePickaxe v)\nbroadcast (Sticker2 v)\ngo to x: (-220) y: (-75)\nswitch costume to (horse v)\nrepeat until <(x position) > [235]>\n    go to [front v] layer\n    if <(costume [number v]) = [21]> then\n        switch costume to (horse v)\n    else\n        next costume\n    end\n    change x by (5)\nend\nhide\n\nbroadcast (InstructionsStickers v)\n\nwhen I receive [saddlehorse v]\nswitch costume to (horse v)\n\nwhen I receive [dismount v]\nswitch costume to (normal v)\n\nwhen I receive [tnt_explosionprompt v]\nsay [Can I blow up the door?] for (4) seconds\n\n@BlueSticker1\n\nwhen I receive [instructionsstickers v]\ngo to x: (-230) y: (0)\nshow\nswitch costume to (sticker1 v)\ngo to [back v] layer\nrepeat until <(x position) > [210]>\n    go to (hero v)\nend\nhide\n\nwhen I receive [start v]\nhide\ndelete this clone\n\n@Sticker2\n\nwhen I receive [sticker2 v]\ngo to x: (-230) y: (-50)\ngo to [back v] layer\nrepeat until <(x position) > [222]>\n    go to (hero v)\nend\nhide\nbroadcast (ShowPlayButton v)\n\nwhen I receive [instructionsstickers v]\nshow\ngo to x: (-230) y: (-60)\n\ngo to [front v] layer\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-400)\n\nwhen I receive [showplaybutton v]\nshow\nset size to (50) %\ngo to [front v] layer\nshow\ngo to x: (0) y: (-450)\nglide (0.8) secs to x: (0) y: (-80)\nforever\n    repeat (10)\n        change size by (0.2)\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> or <key (space v) pressed?>> then\n            broadcast (FadeOutInstructions v)\n            hide\n            stop [this script v]\n        end\n    end\n    repeat (10)\n        change size by (-0.2)\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> or <key (space v) pressed?>> then\n            broadcast (FadeOutInstructions v)\n            hide\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [start v]\ndelete this clone\n\n@Score\n\nwhen I receive [deletemyball v]\nset size to (215) %\nset [color v] effect to (-25)\nwait (1) seconds\nset size to (190) %\nclear graphic effects\n\nwhen I receive [dollarcollected v]\n\nbroadcast (DollarCollected v)\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (10 v)\n    switch costume to (letter ((length of (Score)) - (Numeral)) of (Score))\nend\n\nwhen I receive [start v]\nhide\nswitch costume to (0 v)\nwait (0.5) seconds\nset size to (60) %\ngo to x: (-90) y: (160)\nset [numeral v] to [0]\ngo to [front v] layer\nrepeat (5)\n    wait (0) seconds\n    create clone of (_myself_ v)\n    change x by (-15)\n    change [numeral v] by (1)\nend\nswitch costume to (score v)\nshow\nset size to (60) %\nrepeat (10)\n    go to [front v] layer\n    wait (1) seconds\nend\n\nforever\nend\n\nset size to (215) %\nset [color v] effect to (-25)\nwait (1) seconds\nset size to (190) %\nclear graphic effects\n\nwhen flag clicked\nset [brightness v] effect to (100)\nset [score v] to [0]\nhide\n\nset [brightness v] effect to (100)\n\n@Score2\n\nwhen I receive [start v]\nhide\nset size to (40) %\ngo to x: (-150) y: (140)\nset [numeral v] to [0]\nwait (0.5) seconds\ngo to [front v] layer\nrepeat (5)\n    create clone of (_myself_ v)\n    change x by (-10)\n    change [numeral v] by (1)\nend\nswitch costume to (score v)\nshow\n\nwhen I start as a clone\nshow\nswitch costume to (0 v)\nforever\n    if <(☁ #BestScore) > (ReadHighScore)> then\n        set [readhighscore v] to (☁ #BestScore)\n    end\n    switch costume to (10 v)\n    switch costume to (letter ((length of (ReadHighScore)) - (Numeral)) of (ReadHighScore))\n    wait (1) seconds\n    if <(Score) > (ReadHighScore)> then\n        set [☁ #bestscore v] to (Score)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [brightness v] effect to (100)\nhide\n\nif <(username) = [atomicmagicnumber]> then\n\n@ControlOnGround?\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [ghost v] effect to (99)\nshow\nforever\n    go to (controlcharacter v)\n    if <touching (platforms v)?> then\n        set [controlonground v] to [Yes]\n    else\n        set [controlonground v] to [No]\n    end\n    if <touching (jelly v)?> then\n        repeat until <not <touching (jelly v)?>>\n            set [maxyjump v] to [15]\n            go to (controlcharacter v)\n        end\n        if <not <touching (platforms v)?>> then\n            wait (1) seconds\n        end\n        set [maxyjump v] to [9]\n    end\nend\n\n@lava\n\nwhen flag clicked\ngo to [back v] layer\nhide\ngo to x: (-198) y: (-175)\nrepeat (3)\n    next costume\n    create clone of (_myself_ v)\n    change x by (170)\nend\n\nwhen I start as a clone\nshow\nforever\n    next costume\n    repeat (3)\n        if <touching (controlcharacter v)?> then\n            if <(HoldingBoat?) = [No]> then\n                start sound [Mine v]\n                broadcast (RestartLevel v)\n            end\n        end\n    end\nend\n\nwhen I receive [gameover v]\nwait (0.2) seconds\n\ndelete this clone\n\nset size to (100) %\n\nset [ghost v] effect to (50)\n\n@Joystick\n\nwhen I receive [start v]\nwait (0.1) seconds\ngo to x: (162) y: (-102)\nbroadcast (JoyMouseSenseDown v)\nforever\n    if <<mouse down?> and <(mouse y) < [30]>> then\n        point towards (mouse-pointer v)\n        if <<(direction) > [-23]> and <(direction) < [23]>> then\n            switch costume to (n v)\n            if <(ControlOnGround) = [Yes]> then\n                set [yvelocity v] to (MaxYJump)\n            end\n        end\n        if <<(direction) > [-68]> and <(direction) < [-23]>> then\n            switch costume to (nw v)\n            change [xvelocity v] by (-1.5)\n            broadcast (HeroPointLeft v)\n            if <(ControlOnGround) = [Yes]> then\n                set [yvelocity v] to (MaxYJump)\n            end\n        end\n        if <<(direction) > [-140]> and <(direction) < [-68]>> then\n            switch costume to (w v)\n            broadcast (HeroPointLeft v)\n            change [xvelocity v] by (-1.5)\n        end\n        if <<(direction) > [23]> and <(direction) < [68]>> then\n            switch costume to (ne v)\n            change [xvelocity v] by (1.5)\n            broadcast (HeroPointRight v)\n            if <(ControlOnGround) = [Yes]> then\n                set [yvelocity v] to (MaxYJump)\n            end\n        end\n        if <<(direction) > [68]> and <(direction) < [140]>> then\n            broadcast (HeroPointRight v)\n            change [xvelocity v] by (1.5)\n            switch costume to (e v)\n        end\n        if <<(direction) < [-140]> or <(direction) > [140]>> then\n            broadcast (#ACTION v) and wait\n            broadcast (#Crafting v)\n            switch costume to (action v)\n            wait (0.3) seconds\n        end\n    end\nend\n\nhide\n\nwhen I receive [joymousesensedown v]\nclear graphic effects\nforever\n    if <<mouse down?> and <(mouse y) < [30]>> then\n        show\n        go to [front v] layer\n        set [ghost v] effect to (50)\n        set [joyshowcounter v] to [0]\n    else\n        change [joyshowcounter v] by (1)\n        if <(JoyShowCounter) > [25]> then\n            switch costume to (neutral v)\n        end\n        if <(JoyShowCounter) > [50]> then\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\n@portal\n\nwhen flag clicked\nhide\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [portalpositioning v]\ngo to x: (210) y: (-115)\nshow\nset size to (33) %\nforever\n    if <touching (hero v)?> then\n        hide\n        broadcast (#ReleaseTheFruit v)\n        set [levelwas v] to (Level)\n        start sound [minecraft-rare-achievements-sound v]\n        if <(Level) = [5]> then\n            broadcast (HideLevel5Coal v)\n        end\n    end\n    next costume\nend\n\nwhen I receive [levelup v]\ngo to [back v] layer\nset size to (33) %\nshow\nif <(Level) = [2]> then\n    go to x: (185) y: (-116)\nend\nif <(Level) = [3]> then\n    go to x: (220) y: (25)\nend\nif <(Level) = [4]> then\n    go to x: (224) y: (-116)\nend\nif <(Level) = [5]> then\n    set size to (25) %\n    go to x: (225) y: (-123)\nend\n\nwhen I receive [start v]\nbroadcast (PortalPositioning v)\n\nsay (timer) for (2) seconds\n\n@Layercake\n\nwhen flag clicked\nhide\nrepeat (100)\n    create clone of (_myself_ v)\n    go to [front v] layer\nend\n\n@L1 - HINTS\n\nwhen I receive [l2notmining! v]\nstop [other scripts in sprite v]\nshow\ngo to (controlcharacter v)\nchange y by (15)\nsay [Go to brown block first!] for (4) seconds\nhide\n\nwhen I receive [start v]\nL1Hints\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to (controlcharacter v)\n    change y by (15)\nend\n\nwhen I receive [l1bridgeprompt v]\ngo to [front v] layer\ngo to (controlcharacter v)\nchange y by (15)\nsay [Get closer to the river!] for (5) seconds\n\nwhen I receive [l2ladderprompt v]\ngo to [front v] layer\ngo to (controlcharacter v)\nchange y by (15)\nsay [Go higher first!] for (5) seconds\n\nthink []\n\nwhen I receive [levelup v]\nhide\n\nwhen I receive [restartlevel v]\nif <(Level) = [1]> then\n    L1Hints\nelse\n    stop [other scripts in sprite v]\nend\n\ndefine L1Hints\nshow\nreset timer\nwait (20) seconds\nrepeat until <([costume # v] of [crafting v]) > [4]>\n    think [Go to the tree.  Press SPACEBAR or click ACTION to chop 4 logs.]\nend\nsay []\nwait (15) seconds\nwait until <(timer) > [5]>\nrepeat until <([costume # v] of [crafting v]) > [5]>\n    think [Press SPACEBAR or click ACTION to make planks.]\nend\nsay []\nwait (15) seconds\nrepeat until <([costume # v] of [crafting v]) > [6]>\n    think [Climb the hill.  Press SPACEBAR or click ACTION to make a ladder.]\nend\nsay []\nwait (15) seconds\nrepeat until <([costume # v] of [crafting v]) > [7]>\n    think [Climb the ladder... collect the potions... ]\nend\nsay []\nwait (15) seconds\nwait until <([costume # v] of [crafting v]) = [11]>\nrepeat until <([costume # v] of [crafting v]) > [11]>\n    think [Press SPACEBAR or click ACTION for a permanent JUMP BOOST!]\nend\nsay []\nwait (15) seconds\nif <([costume # v] of [crafting v]) = [12]> then\n    think [Now jump for the portal] for (2) seconds\nend\nif <<(#XP seconds left) < [0]> and <(Level) = [1]>> then\n    say [A W E S O M E !] for (3) seconds\nend\nif <<(#XP seconds left) < [0]> and <(Level) = [1]>> then\n    say [Grab the XP!] for (5) seconds\nend\n\n@Trees2\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [levelup v]\nShowTrees\n\nwhen I receive [off v]\nhide\n\nwhen flag clicked\ngo to x: (500) y: (500)\nhide\nswitch costume to (tree v)\n\nwhen I start as a clone\nrepeat (3)\n    show\n    switch costume to (tree v)\n    wait (0.1) seconds\nend\n\nwhen I receive [#action v]\nif <(distance to [controlcharacter v]) < [50]> then\n    next costume\n    broadcast (NextCraftingStage v)\n    if <(costume [number v]) > [4]> then\n        delete this clone\n    end\nend\nshow\n\nwhen I receive [start v]\nShowTrees\n\nwhen I receive [restartlevel v]\nif <(Level) = [5]> then\n    ShowTrees\nend\n\ndefine ShowTrees\nswitch costume to (tree v)\nif <[1] = [1]> then\n    delete this clone\nend\nif <(Level) = [1]> then\n    go to x: (-33) y: (-90)\n    create clone of (_myself_ v)\n    clear graphic effects\n    go to x: (500) y: (500)\nend\nif <(Level) = [5]> then\n    go to x: (-33) y: (-92)\n    set [color v] effect to (20)\n    create clone of (_myself_ v)\n    go to x: (500) y: (500)\nend\n\n@SkipLevel\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (-500) y: (-500)\nif <[1] = [1]> then\n    delete this clone\nend\nstop [this script v]\n\nwhen this sprite clicked\nset [skiplevel v] to [Yes]\nif <(Level) = [5]> then\n    broadcast (gameover v)\n    stop [this script v]\nend\nchange [level v] by (1)\nbroadcast (LevelUp v)\n\nwhen I receive [restartlevel v]\nchange [skiplevellag v] by (1)\nif <(SkipLevelLag) > [3]> then\n    switch costume to (Level)\n    go to [back v] layer\n    show\nend\n\nwhen I receive [levelup v]\nhide\nset [skiplevellag v] to [0]\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [skiplevellag v] to [0]\nset [skiplevel v] to [No]\nhide\ngo to [back v] layer\n\nset [☁ #bestscore v] to [0]\n\n@LevelText\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (-500) y: (-500)\nif <[1] = [1]> then\n    delete this clone\nend\nstop [this script v]\n\nwhen I receive [start v]\ngo to x: (-115) y: (73)\nset size to (65) %\nwait (1) seconds\nswitch costume to (1 v)\nshow\nrepeat (3)\n    repeat (20)\n        change size by (1)\n    end\n    repeat (20)\n        change size by (-1)\n    end\nend\n\nwhen I receive [gameover v]\nhide\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [levelupsoundonly v]\nstart sound [minecraft-rare-achievements-sound v]\nwait (0.5) seconds\nrepeat (10)\n    play sound [xp-sound-minecraft v] until done\nend\n\nwhen I receive [levelup v]\ngo to [back v] layer\nif <(Level) = [2]> then\n    go to x: (-20) y: (112)\n    switch costume to (2 v)\nend\nif <(Level) = [3]> then\n    go to x: (0) y: (70)\n    switch costume to (3 v)\nend\nif <(Level) = [4]> then\n    go to x: (-50) y: (-111)\n    switch costume to (4 v)\nend\nif <(Level) = [5]> then\n    go to x: (162) y: (43)\n    switch costume to (5 v)\nend\nset size to (65) %\nshow\nrepeat (3)\n    repeat (20)\n        change size by (1)\n    end\n    repeat (20)\n        change size by (-1)\n    end\nend\n\ngo to x: (128) y: (-67)\n\ngo to x: (-20) y: (-25)\n\n@blue flame\n\nwhen I receive [#releasethefruit v]\nshow\nswitch costume to (jets v)\nrepeat until <(#XP seconds left) < [0]>\n    go to (controlcharacter v)\n    change x by (15)\n    next costume\n    change [yvelocity v] by (0.1)\nend\nhide\n\nwhen flag clicked\nhide\n\n@blue flame2\n\nwhen I receive [#releasethefruit v]\nshow\nswitch costume to (jets v)\nrepeat until <(#XP seconds left) < [0]>\n    go to (controlcharacter v)\n    change x by (-15)\n    next costume\n    change [yvelocity v] by (0.17)\nend\nhide\n\nwhen flag clicked\nhide\n\n@Powerups Collection\n\nwhen flag clicked\nhide\n\nwhen I receive [streamofcash v]\nset [distancetoscore v] to (distance to [score v])\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\n\nwhen I start as a clone\ngo to x: (StreamofCashX) y: (StreamOfCashY)\nset [color v] effect to (150)\nshow\nset size to (50) %\nrepeat (33)\n    point towards (score v)\n    move ((DistanceToScore) / (28)) steps\n    change x by (7)\nend\ndelete this clone\n\n@XP\n\nwhen I start as a clone\nshow\nrepeat until <(y position) < [-175]>\n    if <(YVelocityXP) > [-6]> then\n        change [yvelocityxp v] by (-0.2)\n    end\n    set [xvelocityxp v] to ((XVelocityXP) * (0.95))\n    next costume\n    change y by (YVelocityXP)\n    turn right (FruitTwistLocal) degrees\n    change x by (XVelocityXP)\n    if <(distance to [controlcharacter v]) < [27]> then\n        next costume\n        set [color v] effect to (150)\n        glide (0.6) secs to x: (-100) y: (168)\n        start sound [xp-sound-minecraft v]\n        change [score v] by (100)\n        delete this clone\n    end\n    if <([abs v] of (x position) ) > [237]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [#releasethefruit v]\nset [#xp seconds left v] to [15]\nswitch costume to (sandia v)\nclear graphic effects\npoint in direction (90)\ngo to x: (-237) y: (pick random (0) to (150))\nforever\n    set [fruittwistlocal v] to (pick random (-3) to (3))\n    set [xvelocityxp v] to (pick random (-12) to (-8))\n    set [yvelocityxp v] to [4]\n    switch costume to (((pick random (1) to (5)) * (3)) - (2))\n    create clone of (_myself_ v)\n    set [fruittwistlocal v] to (pick random (-3) to (3))\n    set [xvelocityxp v] to (pick random (15) to (20))\n    set [yvelocityxp v] to [4]\n    switch costume to (((pick random (1) to (5)) * (3)) - (2))\n    create clone of (_myself_ v)\n    wait (0.1) seconds\n    if <(#XP seconds left) < [0]> then\n        broadcast (#ShowLevelTransition v)\n        stop [this script v]\n    end\nend\n\nwait (0.2) seconds\ngo to x: (237) y: (pick random (60) to (150))\nset [fruittwistlocal v] to (pick random (-3) to (3))\nset [xvelocityxp v] to (pick random (-14) to (-10))\nset [yvelocityxp v] to [2]\nswitch costume to (((pick random (1) to (5)) * (3)) - (2))\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [#xp seconds left v] to [0]\nhide\n\nwhen I receive [levelup v]\nif <[1] = [1]> then\n    delete this clone\nend\nstop [other scripts in sprite v]\n\nwait (1) seconds\n\nstop [other scripts in sprite v]\n\nstop [other scripts in sprite v]\n\n@Ladders\n\nwhen I receive [-l2ladder v]\nshow\ngo to [front v] layer\ngo to x: (-106) y: (55)\n\nwhen flag clicked\nhide\n\nwhen I receive [levelup v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [restartlevel v]\nif <(Level) = [1]> then\n    stop [this script v]\nend\nhide\n\n@HOLDING\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (-500) y: (-500)\nif <[1] = [1]> then\n    delete this clone\nend\nstop [this script v]\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [holdingitem v] to [Nothing]\n\nwhen I receive [levelup v]\nPlaceItems\n\nwhen I receive [#crafting v]\n\nwhen I receive [armwithsword v]\nswitch costume to (sword v)\n\nwhen I receive [restartlevel v]\nPlaceItems\n\ndefine PlaceItems\nif <[1] = [1]> then\n    delete this clone\nend\nsay []\nhide\nset [holdingitem v] to [Nothing]\nstop [other scripts in sprite v]\nif <(Level) = [2]> then\n    switch costume to (pickaxe v)\n    go to x: (-200) y: (17)\n    show\n    wait (1) seconds\n    wait until <touching (controlcharacter v)?>\n    set [holdingitem v] to [Pickaxe]\n    forever\n        go to (controlcharacter v)\n        point in direction ([direction v] of [hero v])\n    end\nend\nif <(Level) = [3]> then\n    switch costume to (sword v)\n    go to x: (-200) y: (120)\n    show\n    wait (1) seconds\n    wait until <touching (controlcharacter v)?>\n    set [holdingitem v] to [sWORD]\n    forever\n        go to (controlcharacter v)\n        point in direction ([direction v] of [hero v])\n    end\nend\nif <(Level) = [4]> then\n    switch costume to (sword v)\n    go to x: (200) y: (65)\n    show\n    wait (1) seconds\n    wait until <touching (controlcharacter v)?>\n    set [holdingitem v] to [sWORD]\n    forever\n        go to (controlcharacter v)\n        point in direction ([direction v] of [hero v])\n    end\nend\n\nwhen I receive [start v]\nPlaceItems\n\nif <(Level) = [3]> then\n    if <(x position) < [-158]> then\n        broadcast (Level3Mining v)\n    else\n        if <([costume # v] of [crafting v]) < [17]> then\n            say [Go left to mine.] for (4) seconds\n        end\n    end\nend\nif <(Level) = [4]> then\n    if <<<(x position) > [-140]> and <(x position) < [-70]>> and <<(y position) > [-20]> and <(y position) < [-10]>>> then\n        broadcast (L4Mining v)\n    else\n        if <([costume # v] of [crafting v]) < [17]> then\n            say [Go left to mine.] for (4) seconds\n        end\n    end\nend\n\nwhen I receive [#crafting v]\nif <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> then\n    switch costume to (pickaxe2 v)\n    if <<(x position) > [72]> and <<(x position) < [124]> and <<(y position) > [40]> and <(y position) < [50]>>>> then\n        broadcast (-L2Mining v)\n    else\n        if <([costume # v] of [platforms v]) = [2]> then\n            broadcast (L2notmining! v)\n        end\n    end\n    wait (0.3) seconds\n    switch costume to (pickaxe v)\nend\n\nwhen I receive [instructionsstickers v]\npoint in direction (-90)\nshow\ngo to [front v] layer\nbroadcast (LocalPixaxe v)\nforever\n    go to (hero v)\nend\n\nwhen I receive [start v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [localpixaxe v]\nforever\n    switch costume to (pickaxe v)\n    wait (0.2) seconds\n    switch costume to (pickaxe2 v)\n    wait (0.2) seconds\nend\n\nwhen I receive [hidepickaxe v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [madesaddle v]\nset [holdingitem v] to [Saddle]\nswitch costume to (saddle v)\n\nwhen I receive [saddlehorse v]\nhide\n\nwhen I receive [holdl5weapon v]\nswitch costume to (costume1 v)\nshow\nforever\n    go to (controlcharacter v)\n    point in direction ([direction v] of [hero v])\n    if <(Level) = [6]> then\n        hide\n    end\nend\n\nwhen I receive [hidel5weapon v]\nhide\n\nwhen I receive [holdingl5pickaxe v]\nshow\nswitch costume to (pickaxe v)\n\nwhen I receive [holdingtnt v]\nshow\nswitch costume to (tnt v)\nstop [other scripts in sprite v]\ngo to [front v] layer\nforever\n    go to (controlcharacter v)\n    point in direction ([direction v] of [hero v])\nend\n\nif <(HoldingItem) = [Pickaxe]> then\n\n@Sprite6\n\nwhen I receive [#releasethefruit v]\nHowManyBonusChests?\nPositionTheChests\n\nwhen flag clicked\nhide\ngo to x: (400) y: (400)\n\nwhen I start as a clone\nshow\nrepeat until <touching (controlcharacter v)?>\n    next costume\nend\nstart sound [456966__funwithsound__success-fanfare-trumpets v]\nchange [score v] by (1000)\nset [streamofcashx v] to (x position)\nset [streamofcashy v] to (y position)\nbroadcast (StreamOfCash v)\ndelete this clone\n\nwhen I receive [levelup v]\nreset timer\ndelete this clone\n\ndefine HowManyBonusChests?\nset [numberofxpbonusclones v] to [5]\nset [timerstampforchests v] to (timer)\nif <(Level) = [15]> then\n    repeat until <(TimerStampForChests) < [15]>\n        change [numberofxpbonusclones v] by (-1)\n        change [timerstampforchests v] by (-3)\n    end\nend\nif <(Level) = [2]> then\n    repeat until <(TimerStampForChests) < [13]>\n        change [numberofxpbonusclones v] by (-1)\n        change [timerstampforchests v] by (-3)\n    end\nend\nif <(Level) = [3]> then\n    repeat until <(TimerStampForChests) < [32]>\n        change [numberofxpbonusclones v] by (-1)\n        change [timerstampforchests v] by (-3)\n    end\nend\nif <(Level) = [4]> then\n    repeat until <(TimerStampForChests) < [55]>\n        change [numberofxpbonusclones v] by (-1)\n        change [timerstampforchests v] by (-3)\n    end\nend\nif <(Level) = [5]> then\n    repeat until <(TimerStampForChests) < [55]>\n        change [numberofxpbonusclones v] by (-1)\n        change [timerstampforchests v] by (-3)\n    end\nend\n\ndefine PositionTheChests\nif <(Level) = [1]> then\n    go to x: (-165) y: (30)\n    repeat (NumberofXPbonusClones)\n        create clone of (_myself_ v)\n        change x by (40)\n    end\nend\nif <(Level) = [2]> then\n    go to x: (30) y: (25)\n    set [chestsplaced v] to [0]\n    repeat (NumberofXPbonusClones)\n        create clone of (_myself_ v)\n        change [chestsplaced v] by (1)\n        if <(ChestsPlaced) = [2]> then\n            change x by (64)\n        else\n            change x by (32)\n        end\n    end\nend\nif <(Level) = [3]> then\n    go to x: (-193) y: (-53)\n    repeat (NumberofXPbonusClones)\n        create clone of (_myself_ v)\n        change x by (40)\n    end\nend\nif <(Level) = [4]> then\n    go to x: (-193) y: (80)\n    repeat (NumberofXPbonusClones)\n        create clone of (_myself_ v)\n        change x by (40)\n    end\nend\nif <(Level) = [5]> then\n    go to x: (-222) y: (-135)\n    set [chestsplaced v] to [0]\n    repeat (NumberofXPbonusClones)\n        create clone of (_myself_ v)\n        change [chestsplaced v] by (1)\n        if <(ChestsPlaced) = [3]> then\n            change x by (95)\n        else\n            change x by (31.5)\n        end\n    end\nend\n\nwhen I receive [start v]\nreset timer\ndelete this clone\n\nwhen I receive [restartlevel v]\ndelete this clone\n\nwhen I receive [gameover v]\nhide\ndelete this clone\n\n@flame\n\nwhen I receive [#releasethefruit v]\ngo to x: (400) y: (400)\nwait (1) seconds\nrepeat until <(#XP seconds left) < [8]>\n    create clone of (_myself_ v)\n    wait (2.5) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (pick random (-150) to (150)) y: (180)\ngo to [front v] layer\nshow\nrepeat until <(y position) < [-175]>\n    next costume\n    change y by (-2)\n    if <touching (hero v)?> then\n        set [#xp seconds left v] to [-1]\n        start sound [Ow v]\n        delete this clone\n    end\nend\ndelete this clone\n\n@Timer\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (10 v)\n    switch costume to (letter ((length of (#XP seconds left)) - (Numeral)) of (#XP seconds left))\n    if <(#XP seconds left) > [0]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [#releasethefruit v]\nset [#xp seconds left v] to [20]\nif <[1] = [1]> then\n    delete this clone\nend\nhide\nswitch costume to (0 v)\nwait (0.5) seconds\nset size to (50) %\ngo to x: (-147) y: (120)\nset [numeral v] to [0]\nrepeat (2)\n    wait (0) seconds\n    create clone of (_myself_ v)\n    change x by (-13)\n    change [numeral v] by (1)\nend\nswitch costume to (score v)\nshow\nforever\n    go to [front v] layer\n    change [#xp seconds left v] by (-1)\n    if <(#XP seconds left) = [0]> then\n        broadcast (#ShowLevelTransition v)\n    else\n    end\n    if <(#XP seconds left) > [0]> then\n        show\n    else\n        hide\n    end\n    wait (1) seconds\nend\n\nset [score v] to [0]\n\nwhen flag clicked\nset [brightness v] effect to (100)\nhide\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [#showleveltransition v]\nwait (1) seconds\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\nrepeat (20)\n    change [ghost v] effect by (-3)\nend\nbroadcast (DropCongrats v)\nwait (10) seconds\nif <(Level) = [5]> then\nend\nchange [level v] by (1)\nif <(Level) = [6]> then\n    broadcast (gameover v)\nelse\n    broadcast (LevelUp v)\nend\nrepeat (20)\n    change [ghost v] effect by (3)\nend\nhide\n\nwait (3) seconds\nwait (3) seconds\n\nset [level v] to [0]\n\n@Potions\n\nwhen I start as a clone\nshow\nwait until <touching (controlcharacter v)?>\nbroadcast (NextCraftingStage v)\ndelete this clone\n\nwhen I receive [start v]\nPlacePotions\n\ndefine PlacePotions\nhide\nif <[1] = [1]> then\n    delete this clone\nend\nif <(Level) = [1]> then\n    switch costume to (leapingpotion v)\n    go to x: (-164) y: (28)\n    repeat (4)\n        create clone of (_myself_ v)\n        change x by (64)\n    end\nend\n\nwhen I receive [restartlevel v]\nif <(Level) = [1]> then\n    stop [this script v]\nend\nPlacePotions\n\nwhen I receive [levelup v]\nPlacePotions\n\n@BlagSpeedup\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [speeduppotion v]\nhide\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (jump_boost v)\nstop [other scripts in sprite v]\nrepeat (20)\n    go to (random position v)\n    create clone of (_myself_ v)\nend\nswitch costume to (jump boost v)\nshow\ngo to x: (0) y: (-240)\ngo to [front v] layer\nglide (1) secs to x: (0) y: (1)\nrepeat (3)\n    repeat (10)\n        change size by (0.3)\n    end\n    repeat (10)\n        change size by (-0.3)\n    end\nend\nglide (1) secs to x: (0) y: (204)\nhide\n\nwhen I start as a clone\nset size to (pick random (40) to (100)) %\nif <(size) > [75]> then\n    go to [front v] layer\nelse\n    go to [back v] layer\nend\npoint towards (controlcharacter v)\nshow\nmove (10) steps\nrepeat (10)\n    move (-1) steps\nend\nglide (1) secs to (controlcharacter v)\nchange [score v] by (500)\nstart sound [Coin v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [restartlevel v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\n@Water\n\nwhen flag clicked\ngo to x: (0) y: (-2)\nhide\n\nwhen I receive [levelup v]\nhide\nif <(Level) = [2]> then\n    show\n    set [ghost v] effect to (15)\n    switch costume to (1 v)\n    wait (1) seconds\n    repeat until <not <([costume # v] of [platforms v]) = [2]>>\n        go to [front v] layer\n        switch costume to (1 v)\n        wait (0.1) seconds\n        switch costume to (1 again v)\n        wait (0.1) seconds\n    end\n    repeat (17)\n        next costume\n        wait (0.1) seconds\n    end\n    forever\n        switch costume to (19 - lower v)\n        wait (0.1) seconds\n        switch costume to (19 - lower2 v)\n        wait (0.1) seconds\n    end\nend\n\nset [maxxvelocity v] to [4]\n\nwhen flag clicked\nforever\n    if <touching (controlcharacter v)?> then\n        set [maxxvelocity v] to [1]\n    else\n        set [maxxvelocity v] to [4]\n    end\nend\n\n@-L2Mining\n\nwhen flag clicked\nswitch costume to (nodamage v)\nhide\n\nwhen I receive [-l2mining v]\nif <(costume [number v]) < [5]> then\n    show\n    next costume\n    go to [front v] layer\nend\nif <(costume [number v]) > [4]> then\n    broadcast (ReleaseTheWater v)\n    hide\nend\n\n@sNEEZING PANDA\n\nwhen I receive [restartlevel v]\npLACEpANDA\n\nwhen I receive [levelup v]\npLACEpANDA\n\nwhen I receive [start v]\npLACEpANDA\n\ndefine pLACEpANDA\nhide\nif <not <(Level) = [3]>> then\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\ngo to x: (-215) y: (-50)\nshow\nforever\n    wait (0.1) seconds\n    next costume\nend\n\nwhen flag clicked\nhide\n\n@sNEEZING PANDA2\n\nwhen I receive [restartlevel v]\nbroadcast (pLACEpANDA v)\n\nwhen I receive [levelup v]\nbroadcast (pLACEpANDA v)\n\nwhen I receive [start v]\nbroadcast (pLACEpANDA v)\n\nforever\nend\n\nwhen flag clicked\nset size to (10) %\nhide\n\nwhen I receive [placepanda v]\nhide\nif <not <(Level) = [3]>> then\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\nwait (4) seconds\nSlime1\nrepeat (10)\n    change x by (3)\n    change size by (5)\n    change y by (3)\nend\nrepeat (9)\n    change x by (2)\n    change size by (5)\n    change y by (-2.5)\nend\nwait until <touching (controlcharacter v)?>\nbroadcast (NextCraftingStage v)\nhide\nSlime1\nrepeat (10)\n    change x by (3)\n    change size by (5)\n    change y by (-4)\nend\nrepeat (9)\n    change x by (2)\n    change size by (5)\n    change y by (-3.5)\nend\nwait until <touching (controlcharacter v)?>\nbroadcast (NextCraftingStage v)\nhide\nSlime1\nrepeat (10)\n    change x by (3)\n    change size by (5)\n    change y by (10.7)\nend\nrepeat (9)\n    change x by (2)\n    change size by (5)\n    change y by (-2)\nend\nwait until <touching (controlcharacter v)?>\nbroadcast (NextCraftingStage v)\nhide\nSlime1\nrepeat (10)\n    change x by (3)\n    change size by (5)\n    change y by (3)\nend\nrepeat (9)\n    change x by (2)\n    change size by (5)\n    change y by (-2.5)\nend\nwait until <touching (controlcharacter v)?>\nbroadcast (NextCraftingStage v)\nhide\n\ndefine Slime1\nwait (1) seconds\nshow\ngo to x: (-222) y: (-50)\ngo to [front v] layer\nset size to (10) %\n\n@TopZombie\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [levelup v]\nbroadcast (TopZombie v)\n\nwhen I receive [start v]\nhide\ngo to [back v] layer\n\nwhen flag clicked\nhide\nforever\n    if <touching (holding v)?> then\n        start sound [Clink v]\n        stop [other scripts in sprite v]\n        switch costume to (tinyz51 v)\n        repeat (3)\n            change x by (-3)\n            next costume\n            wait (0.1) seconds\n        end\n        hide\n        wait (3) seconds\n        broadcast (TopZombie v)\n    else\n        if <touching (hero v)?> then\n            broadcast (BombHit v)\n            broadcast (RestartLevel v)\n            start sound [mine v]\n        end\n    end\nend\n\ngo to x: (-150) y: (-142)\n\nset y to (58)\n\nset [level v] to [6]\n\nwhen I receive [restartlevel v]\nbroadcast (TopZombie v)\n\nwhen I receive [topzombie v]\nif <(Level) = [3]> then\n    show\n    go to x: (-230) y: (37)\n    forever\n        switch costume to (vtinyz12 v)\n        repeat (2)\n            repeat (9)\n                change x by (4)\n                next costume\n                wait (0.1) seconds\n            end\n            repeat (9)\n                change x by (4)\n                switch costume to ((costume [number v]) - (1))\n                wait (0.1) seconds\n            end\n        end\n        repeat (11)\n            switch costume to ((costume [number v]) - (1))\n            wait (0.1) seconds\n        end\n        repeat (2)\n            repeat (9)\n                change x by (-4)\n                next costume\n                wait (0.1) seconds\n            end\n            repeat (9)\n                change x by (-4)\n                switch costume to ((costume [number v]) - (1))\n                wait (0.1) seconds\n            end\n        end\n        repeat (12)\n            next costume\n            wait (0.1) seconds\n        end\n    end\nend\nif <(Level) = [5]> then\n    show\n    go to x: (100) y: (-40)\n    forever\n        switch costume to (vtinyz12 v)\n        repeat (2)\n            repeat (9)\n                change x by (2)\n                next costume\n                wait (0.1) seconds\n            end\n            repeat (9)\n                change x by (2)\n                switch costume to ((costume [number v]) - (1))\n                wait (0.1) seconds\n            end\n        end\n        repeat (11)\n            switch costume to ((costume [number v]) - (1))\n            wait (0.1) seconds\n        end\n        repeat (2)\n            repeat (9)\n                change x by (-2)\n                next costume\n                wait (0.1) seconds\n            end\n            repeat (9)\n                change x by (-2)\n                switch costume to ((costume [number v]) - (1))\n                wait (0.1) seconds\n            end\n        end\n        repeat (12)\n            next costume\n            wait (0.1) seconds\n        end\n    end\nend\n\nhide\nstop [this script v]\n\n@LowerZombie\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [levelup v]\nbroadcast (MiddleZombie v)\n\nwhen I receive [start v]\nhide\ngo to [back v] layer\n\nwhen flag clicked\nhide\nforever\n    if <touching (holding v)?> then\n        start sound [Clink v]\n        stop [other scripts in sprite v]\n        switch costume to (tinyz51 v)\n        repeat (3)\n            change x by (-3)\n            next costume\n            wait (0.1) seconds\n        end\n        hide\n    else\n        if <touching (hero v)?> then\n            broadcast (BombHit v)\n            broadcast (RestartLevel v)\n            start sound [mine v]\n        end\n    end\nend\n\ngo to x: (-150) y: (-142)\n\nset y to (58)\n\nset [level v] to [6]\n\nwhen I receive [restartlevel v]\nbroadcast (MiddleZombie v)\n\nwhen I receive [middlezombie v]\nswitch costume to (creeper v)\nif <not <(Level) = [3]>> then\n    hide\n    stop [this script v]\nend\ngo to x: (-120) y: (-44)\nwait (0.1) seconds\nshow\ngo to [front v] layer\npoint in direction (90)\nswitch costume to (firstz v)\nforever\n    repeat (50)\n        change x by (0.5)\n        wait (0.1) seconds\n        if <(costume [number v]) = [30]> then\n            switch costume to (firstz v)\n        else\n            next costume\n        end\n    end\n    repeat (50)\n        change x by (-0.5)\n        wait (0.1) seconds\n        if <(costume [number v]) = [30]> then\n            switch costume to (firstz v)\n        else\n            next costume\n        end\n    end\nend\n\nnext costume\n\n@jELLY\n\nwhen I receive [makeslimeblock! v]\nswitch costume to (centred v)\nhide\ngo to [front v] layer\nset [clonenumber v] to [1]\nrepeat (3)\n    go to (hero v)\n    create clone of (_myself_ v)\n    change [clonenumber v] by (1)\nend\n\nwhen I start as a clone\nshow\nif <(CloneNumber) = [1]> then\n    glide (0.5) secs to x: (57) y: (-159)\nend\nif <(CloneNumber) = [2]> then\n    glide (0.5) secs to x: (-5) y: (-78)\nend\nif <(CloneNumber) = [3]> then\n    glide (0.5) secs to x: (-69) y: (2)\n    broadcast (L3 jelly background v)\nend\n\nwhen I receive [restartlevel v]\nhide\ndelete this clone\n\nwhen I receive [levelup v]\nhide\ndelete this clone\n\ngo to x: (0) y: (-33)\n\n@ControlCharacter\n\nwhen I receive [saddlehorse v]\nswitch costume to (horse v)\nwait until <touching (piston v)?>\nbroadcast (Dismount v)\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen [up arrow v] key pressed\nJump\n\nwhen I receive [start v]\nbroadcast (Walk v)\nset [yvelocity v] to [0]\nset [xvelocity v] to [0]\nclear graphic effects\nset [ghost v] effect to (99)\nshow\ngo to x: (-200) y: (0)\nforever\n    change [yvelocity v] by (-0.5)\n    if <<touching (ladders v)?> and <<([costume name v] of [joystick v]) = [N]> or <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <([costume name v] of [joystick v]) = [Action]>>>> then\n        if <<(y position) < [45]> and <(Level) = [1]>> then\n            glide (1) secs to x: (-106) y: (50)\n            set [yvelocity v] to [0]\n        end\n    end\n    if <<touching (ladders v)?> and <<([costume name v] of [joystick v]) = [Action]> or <<key (s v) pressed?> or <key (down arrow v) pressed?>>>> then\n        if <<(y position) > [45]> and <(Level) = [1]>> then\n            glide (1) secs to x: (-118) y: (-82)\n            set [yvelocity v] to [0]\n        end\n    end\n    if <[0] > (YVelocity)> then\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [0]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-1]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-2]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-3]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-4]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-5]> then\n                change y by (-1)\n            end\n        end\n        if <(YVelocity) < [-6]> then\n            set [yvelocity v] to [-6]\n        end\n        if <touching (platforms v)?> then\n            set [yvelocity v] to [0]\n            change y by (1)\n        end\n    end\n    if <(YVelocity) > [0]> then\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [0]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <(YVelocity) < [-5]> then\n            set [yvelocity v] to [-5]\n        end\n        if <touching (platforms v)?> then\n            change y by (-1)\n            set [yvelocity v] to [0]\n        end\n    end\n    set [xvelocity v] to ((XVelocity) * (0.85))\n    if <<(XVelocity) < [1]> and <(XVelocity) > [-1]>> then\n        set [xvelocity v] to [0]\n    end\n    if <[0] > (XVelocity)> then\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [0]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-1]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-2]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-3]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-4]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-5]> then\n                change x by (-1)\n            end\n        end\n        if <touching (platforms v)?> then\n            change x by (1)\n            set [xvelocity v] to [0]\n        end\n        if <(XVelocity) < ((0) - (MaxXVelocity))> then\n            set [xvelocity v] to ((0) - (MaxXVelocity))\n        end\n    end\n    if <(XVelocity) > [0]> then\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [0]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [1]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [2]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [3]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [4]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [5]> then\n                change x by (1)\n            end\n        end\n        if <touching (platforms v)?> then\n            change x by (-1)\n            set [xvelocity v] to [0]\n        end\n        if <(MaxXVelocity) < (XVelocity)> then\n            set [xvelocity v] to (MaxXVelocity)\n        end\n    end\nend\n\nwhen [w v] key pressed\nJump\n\nwhen I receive [controlleft v]\ngo to x: (-220) y: (78)\nset [xvelocity v] to [0]\n\nwhen I receive [positioncontrolcharacter v]\ngo to x: (-210) y: (-112)\n\nwhen I receive [restartlevel v]\nbroadcast (PositionControlCharacter v)\nswitch costume to (normal v)\n\nwhen flag clicked\nhide\ngo to x: (-210) y: (50)\nset [ghost v] effect to (99)\nset [maxyjump v] to [5]\nset [maxxvelocity v] to [4]\nforever\n    point in direction ([direction v] of [hero v])\nend\n\nwhen I receive [levelup v]\nbroadcast (PositionControlCharacter v)\nswitch costume to (normal v)\n\nwhen I receive [holding v]\nif <(HoldingItem) = [Horse]> then\n    switch costume to (horse v)\nend\n\nwhen I receive [start v]\nshow\nbroadcast (PositionControlCharacter v)\nswitch costume to (normal v)\n\ndefine Jump\nchange y by (-1)\nif <touching (platforms v)?> then\n    set [yvelocity v] to (MaxYJump)\nend\nchange y by (1)\n\nwhen I receive [blockedbygates v]\nset x to (101)\nsay [Looks locked.] for (2) seconds\n\nwhen I receive [dismount v]\nswitch costume to (normal v)\n\nwhen I receive [blockedbydoor v]\nset [xvelocity v] to [0]\nset x to (150)\n\n@Piston\n\nwhen flag clicked\nhide\n\nwhen I receive [restartlevel v]\nPlacePiston\n\nwhen I receive [levelup v]\nPlacePiston\n\nwhen I receive [start v]\nPlacePiston\n\ndefine PlacePiston\nhide\nif <not <(Level) = [4]>> then\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\ngo to x: (192) y: (-40)\nshow\nrepeat until <not <(Level) = [4]>>\n    repeat until <<<touching (controlcharacter v)?> or <touching (horse v)?>> or <(costume [number v]) = [1]>>\n        switch costume to ((costume [number v]) - (1))\n        wait (0.1) seconds\n    end\n    repeat until <<<not <touching (controlcharacter v)?>> and <not <touching (horse v)?>>> or <(costume [number v]) = [14]>>\n        next costume\n        wait (0.1) seconds\n    end\nend\nhide\n\n@Horse\n\nwhen I receive [restartlevel v]\nbroadcast (PlaceHorse v)\n\nwhen I receive [levelup v]\nbroadcast (PlaceHorse v)\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [holding v]\nif <(HoldingItem) = [Horse]> then\n    hide\nend\n\nwhen I receive [placehorse v]\nif <not <(Level) = [4]>> then\n    hide\n    stop [this script v]\nend\nshow\ngo to x: (-81) y: (92)\nswitch costume to (horse v)\nforever\n    point in direction (-90)\n    repeat (60)\n        change x by (-2)\n        Costume\n        wait (0.05) seconds\n    end\n    point in direction (90)\n    repeat (60)\n        change x by (2)\n        Costume\n        wait (0.05) seconds\n    end\nend\n\ndefine Costume\nif <(costume [number v]) = [8]> then\n    switch costume to (horse v)\nelse\n    if <(costume [number v]) = [17]> then\n        switch costume to (horse2 v)\n    else\n        next costume\n    end\nend\n\nswitch costume to (horse2 v)\n\nwhen flag clicked\nhide\nforever\n    if <touching (hero v)?> then\n        if <(HoldingItem) = [Saddle]> then\n            hide\n            broadcast (SaddleHorse v)\n        else\n            if <(y position) > [0]> then\n                say [Saddle up!] for (2) seconds\n            else\n                say [I'll open it for you!] for (4) seconds\n            end\n        end\n    end\nend\n\nwhen I receive [dismount v]\nif <not <(Level) = [4]>> then\n    hide\n    stop [this script v]\nend\nstop [other scripts in sprite v]\nset [holdingitem v] to [Nothing]\nshow\ngo to x: (166) y: (-31)\nswitch costume to (horse2 v)\npoint in direction (90)\nrepeat (25)\n    change x by (1.5)\n    Costume\n    wait (0.05) seconds\nend\nforever\n    point in direction (-90)\n    repeat (50)\n        change x by (-1.5)\n        Costume\n        wait (0.05) seconds\n    end\n    point in direction (90)\n    repeat (50)\n        change x by (1.5)\n        Costume\n        wait (0.05) seconds\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [levelup v]\nCage\n\nwhen I receive [start v]\nCage\n\ndefine Cage\nif <not <(Level) = [4]>> then\n    hide\n    stop [this script v]\nend\nshow\ngo to x: (120) y: (-133)\nforever\n    switch costume to ([costume # v] of [piston v])\n    if <touching (controlcharacter v)?> then\n        broadcast (BlockedByGates v)\n    end\nend\n\n@Cows\n\nwhen flag clicked\nhide\nset [cowstokill v] to [4]\nforever\n    if <touching (holding v)?> then\n        start sound [Clink v]\n        set [itemx v] to (x position)\n        set [itemy v] to (y position)\n        create clone of (leather v)\n        stop [other scripts in sprite v]\n        hide\n        wait (1) seconds\n        change [cowstokill v] by (-1)\n        if <(CowsToKill) = [0]> then\n            stop [other scripts in sprite v]\n            stop [this script v]\n        end\n        broadcast (PlaceCow v)\n    else\n        if <touching (hero v)?> then\n            say [Moo] for (2) seconds\n        end\n    end\nend\n\nwhen I receive [restartlevel v]\nbroadcast (PlaceCow v)\n\nwhen I receive [levelup v]\nbroadcast (PlaceCow v)\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [placecow v]\nif <not <(Level) = [4]>> then\n    hide\n    stop [this script v]\nend\nshow\nif <<(CowsToKill) = [2]> or <(CowsToKill) = [4]>> then\n    go to x: (-240) y: (-38)\nelse\n    go to x: (-240) y: (-148)\nend\nswitch costume to (horse v)\npoint in direction (-90)\nrepeat (100)\n    change x by (1.5)\n    next costume\n    wait (0.1) seconds\nend\nforever\n    point in direction (90)\n    repeat (30)\n        change x by (-1.5)\n        next costume\n        wait (0.1) seconds\n    end\n    point in direction (-90)\n    repeat (30)\n        change x by (1.5)\n        next costume\n        wait (0.1) seconds\n    end\nend\n\n@Leather\n\nwhen I receive [restartlevel v]\ndelete this clone\n\nwhen I receive [levelup v]\ndelete this clone\n\nwhen I receive [start v]\ndelete this clone\n\nforever\n\nwhen flag clicked\nset size to (10) %\nhide\n\nwhen I receive [placepanda v]\nhide\n\nwhen I start as a clone\ngo to x: (ItemX) y: (ItemY)\nshow\ngo to [front v] layer\nset size to (70) %\nwait until <touching (controlcharacter v)?>\nbroadcast (NextCraftingStage v)\nhide\ndelete this clone\n\n@Cool dancer\n\nwhen I receive [gameover v]\nwait (1) seconds\ngo to [front v] layer\nswitch costume to (cool dancer v)\nhide\ngo to x: (-119) y: (-10)\nset [dancingstevenum v] to [1]\ncreate clone of (_myself_ v)\ngo to x: (119) y: (-10)\nset [dancingstevenum v] to [2]\ncreate clone of (_myself_ v)\ngo to x: (0) y: (-40)\nset [dancingstevenum v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(DancingSteveNum) = [1]> then\n    show\n    go to x: (-119) y: (300)\n    glide (1) secs to x: (-119) y: (15)\nend\nif <(DancingSteveNum) = [2]> then\n    go to x: (0) y: (300)\n    show\n    glide (1) secs to x: (0) y: (-10)\nend\nif <(DancingSteveNum) = [3]> then\n    go to x: (119) y: (300)\n    show\n    glide (1) secs to x: (119) y: (15)\nend\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen I receive [activatepiston v]\nif <(x position) = [0]> then\n    set y to ((-70) + ((DancerPistonCostumeNumber) * (5)))\nelse\n    set y to ((-40) + ((DancerPistonCostumeNumber) * (5)))\nend\n\n@Piston3\n\nwhen I receive [gameover v]\nwait (1) seconds\nhide\nswitch costume to (costume2 v)\ngo to x: (-119) y: (-70)\ncreate clone of (_myself_ v)\ngo to x: (119) y: (-70)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (-100)\nset [dancerpistoncostumenumber v] to [14]\ncreate clone of (_myself_ v)\nwait (1) seconds\nforever\n    repeat until <(DancerPistonCostumeNumber) = [1]>\n        change [dancerpistoncostumenumber v] by (-1)\n        wait (0) seconds\n        broadcast (ActivatePiston v)\n    end\n    repeat until <(DancerPistonCostumeNumber) = [20]>\n        change [dancerpistoncostumenumber v] by (1)\n        wait (0) seconds\n        broadcast (ActivatePiston v)\n    end\nend\n\nwhen I start as a clone\nshow\nswitch costume to (piston v)\n\nwhen I receive [activatepiston v]\nif <(DancerPistonCostumeNumber) > [14]> then\n\n@Final talking\n\nwhen I receive [gameover v]\nshow\nif <(length of (username)) < [3]> then\n    set [username v] to [YOU]\nelse\n    set [username v] to (username)\nend\nwait (3) seconds\nsay [Victory Dance Time!] for (4) seconds\nwait (3) seconds\nsay [You did it!] for (4) seconds\nwait (2) seconds\nsay (join (username) [ is the GREATEST!]) for (2) seconds\nforever\n    wait (2) seconds\n    say [How about a love, fav and FOLLOW?] for (5) seconds\n    wait (2) seconds\n    say (join (username) [ CRUSHED episode 2!]) for (4) seconds\n    wait (2) seconds\n    say (join [Go on ] (join (username) [ follow me!])) for (4) seconds\n    wait (2) seconds\n    say [Still there?] for (2) seconds\n    wait (2) seconds\n    say [Ok...] for (2) seconds\n    wait (2) seconds\n    say [Free jokes coming up!] for (4) seconds\n    wait (2) seconds\n    set x to (-100)\n    say [How did Steve make the skeleton laugh?] for (10) seconds\n    wait (0.5) seconds\n    set x to (90)\n    say [He tickled its funny bone!] for (5) seconds\n    wait (2) seconds\n    set x to (-100)\n    say [Where do sheep get their hair done?] for (10) seconds\n    wait (0.5) seconds\n    set x to (90)\n    say [At the Baa-Baa's shop!] for (5) seconds\n    wait (2) seconds\n    set x to (-100)\n    say [What did the chicken say to the sheep?] for (10) seconds\n    wait (0.5) seconds\n    set x to (90)\n    say [Nice to meet ewe!] for (5) seconds\n    wait (2) seconds\n    set x to (-100)\n    say [Minecraft is not just a hit, its a...] for (10) seconds\n    wait (0.5) seconds\n    set x to (90)\n    say [BLOCKBUSTER!] for (5) seconds\n    wait (2) seconds\n    set x to (-100)\n    say [What did Steve say to his girlfriend?] for (10) seconds\n    set x to (90)\n    wait (0.5) seconds\n    say [I dig you!] for (5) seconds\nend\n\nwhen flag clicked\nhide\ngo to x: (10) y: (0)\n\nwhen I receive [activatepiston v]\nshow\nset y to ((-30) + ((DancerPistonCostumeNumber) * (5)))\n\n@Lever\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (-500) y: (-500)\nif <[1] = [1]> then\n    delete this clone\nend\nstop [this script v]\n\nwhen flag clicked\nhide\n\nwhen I receive [levelup v]\nCage\n\nwhen I receive [start v]\nCage\n\ndefine Cage\nif <not <(Level) = [5]>> then\n    hide\n    stop [this script v]\nend\nshow\ngo to x: (176) y: (-52)\nswitch costume to (off v)\nforever\n    if <touching (controlcharacter v)?> then\n        next costume\n        wait until <not <touching (controlcharacter v)?>>\n        wait (4) seconds\n        next costume\n    end\n    if <(Level) = [6]> then\n        hide\n    end\nend\n\n@L5Pickaxe\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (-500) y: (-500)\nif <[1] = [1]> then\n    delete this clone\nend\nstop [this script v]\n\nwhen I receive [levelup v]\nPlaceItems\n\nwhen I receive [restartlevel v]\nPlaceItems\n\ndefine PlaceItems\nhide\nwait (0.3) seconds\nif <(Level) = [5]> then\n    show\n    wait until <touching (controlcharacter v)?>\n    set [holdingitem v] to [Pickaxe]\n    broadcast (HoldingL5Pickaxe v)\n    hide\nend\n\nwhen I receive [start v]\nPlaceItems\n\nwhen I receive [saddlehorse v]\nhide\n\ngo to x: (200) y: (50)\n\nwhen flag clicked\ngo to x: (-120) y: (136)\nhide\n\n@RedSandstone\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (-500) y: (-500)\nif <[1] = [1]> then\n    delete this clone\nend\nstop [this script v]\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [#crafting v]\nif <not <(Level) = [5]>> then\n    stop [this script v]\nend\nif <(distance to [controlcharacter v]) < [45]> then\n    if <(costume [number v]) < [5]> then\n        show\n        next costume\n    end\n    if <(costume [number v]) = [5]> then\n        broadcast (NextCraftingStage v)\n        broadcast (-L5Mined v)\n    end\nend\n\nwhen I receive [restartlevel v]\nShowCoal\n\nwhen I receive [levelup v]\nShowCoal\n\ndefine ShowCoal\nif <not <(Level) = [5]>> then\n    hide\n    stop [this script v]\nend\nrepeat (10)\n    go to x: (-128) y: (23)\n    show\n    switch costume to (coal block v)\n    wait (1) seconds\nend\n\nwhen I receive [start v]\nShowCoal\n\nwhen I receive [gameover v]\nhide\n\nwhen I receive [hidelevel5coal v]\nforever\n    hide\nend\n\nwait (1) seconds\n\n@Coal\n\nwhen I receive [restartlevel v]\nbroadcast (ShowCoal v)\n\nwhen I receive [levelup v]\nhide\nif <[1] = [1]> then\n    delete this clone\nend\nbroadcast (ShowCoal v)\n\nwhen I receive [start v]\nbroadcast (ShowCoal v)\n\nwhen flag clicked\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [showcoal v]\nhide\nif <not <(Level) = [5]>> then\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\ngo to x: (-96) y: (38)\ncreate clone of (_myself_ v)\ngo to x: (-35) y: (37)\ncreate clone of (_myself_ v)\ngo to x: (26) y: (36)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nwait until <touching (controlcharacter v)?>\nbroadcast (NextCraftingStage v)\ndelete this clone\n\nwhen I receive [gameover v]\nhide\nif <[1] = [1]> then\n    delete this clone\nend\n\nbroadcast (gameover v)\n\n@Sprite5\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (-500) y: (-500)\nif <[1] = [1]> then\n    delete this clone\nend\nstop [this script v]\n\nwhen flag clicked\nhide\nforever\n    if <touching (controlcharacter v)?> then\n        broadcast (blockedByDoor v)\n    end\nend\n\nwhen I receive [levelup v]\nCage\n\nwhen I receive [start v]\nCage\n\ndefine Cage\nif <not <(Level) = [5]>> then\n    hide\n    stop [this script v]\nend\nshow\ngo to [back v] layer\ngo to x: (33) y: (-17)\nforever\n    if <touching (controlcharacter v)?> then\n        think [Locked!] for (2) seconds\n    end\nend\n\nwhen I receive [tnt_balst v]\nwait (0.2) seconds\nhide\n\n@explosion\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <([costume # v] of [crafting v]) = [37]>\nforever\n    go to x: (214) y: (119)\n    show\n    go to [front v] layer\n    next costume\n    set size to (20) %\n    wait (0.1) seconds\nend\n\nwhen I receive [tnt_explosion v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [tnt_balst v]\nstop [other scripts in sprite v]\nstart sound [boom v]\nset size to (100) %\nswitch costume to (first v)\ngo to x: (163) y: (-137)\ngo to [front v] layer\nshow\nrepeat (9)\n    wait (0.1) seconds\n    next costume\nend\nhide\n\n@Sprite7\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\nhide\ngo to x: (-500) y: (-500)\nif <[1] = [1]> then\n    delete this clone\nend\nstop [this script v]\n\nwhen I receive [tnt_explosion v]\nshow\ngo to x: (160) y: (-132)\nstop [other scripts in sprite v]\nsay [3] for (1) seconds\nsay [2] for (1) seconds\nsay [1] for (1) seconds\nbroadcast (TNT_Balst v)\nhide\n\nwhen flag clicked\nhide\n\n@minecraft font\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nif <(SecondLine?) = [No]> then\n    show\n    go to [front v] layer\n    glide (0.5) secs to x: (x position) y: (0)\n    show\n    go to [front v] layer\n    glide (0.25) secs to x: (x position) y: (50)\n    show\n    go to [front v] layer\n    glide (0.25) secs to x: (x position) y: (0)\n    show\n    go to [front v] layer\n    glide (0.1) secs to x: (x position) y: (20)\n    show\n    go to [front v] layer\n    glide (0.1) secs to x: (x position) y: (0)\n    wait (8) seconds\nelse\n    show\n    go to [front v] layer\n    glide (0.5) secs to x: (x position) y: (-50)\n    show\n    go to [front v] layer\n    glide (0.25) secs to x: (x position) y: (0)\n    show\n    go to [front v] layer\n    glide (0.25) secs to x: (x position) y: (-50)\n    show\n    go to [front v] layer\n    glide (0.1) secs to x: (x position) y: (-30)\n    show\n    go to [front v] layer\n    glide (0.1) secs to x: (x position) y: (-50)\n    wait (3) seconds\nend\nshow\ngo to [front v] layer\nglide (0.6) secs to x: (x position) y: (-180)\nshow\ngo to [front v] layer\nglide (0.2) secs to x: (x position) y: (-200)\ndelete this clone\n\nwhen flag clicked\nset size to (120) %\nhide\n\nwhen I receive [dropcongrats v]\nhide\nset [brightness v] effect to (0100)\ngo to [front v] layer\nset [secondline? v] to [No]\nif <(length of (username)) > [2]> then\n    set [localusername v] to (username)\nelse\n    set [localusername v] to [You]\nend\ngo to x: (0) y: (300)\nif <(length of (LocalUsername)) > [22]> then\n    set [usernamelengthused v] to [22]\nelse\n    set [usernamelengthused v] to (length of (LocalUsername))\nend\nrepeat (length of (LocalUsername))\n    change x by (-11)\nend\nif <not <((length of (LocalUsername)) / (2)) = (round (length of (LocalUsername)))>> then\n    change x by (11)\nend\nset [whichlettertoswitchto? v] to [1]\nset size to (130) %\nstart sound [FunWin v]\nrepeat (length of (LocalUsername))\n    switch costume to (  v)\n    switch costume to (letter (WhichLetterToSwitchTo?) of (LocalUsername))\n    create clone of (_myself_ v)\n    change x by (22)\n    wait (0.05) seconds\n    change [whichlettertoswitchto? v] by (1)\nend\nset [secondline? v] to [Yes]\nif <(Level) = [1]> then\n    set [localusername v] to [Can superjump!]\nend\nif <(Level) = [2]> then\n    set [localusername v] to [Mined underwater!]\nend\nif <(Level) = [3]> then\n    set [localusername v] to [Did a jelly jump!]\nend\nif <(Level) = [4]> then\n    set [localusername v] to [Rode a horse!]\nend\nif <(Level) = [5]> then\n    set [localusername v] to [Blasted the door!]\nend\ngo to x: (0) y: (300)\nrepeat (length of (LocalUsername))\n    change x by (-11)\nend\nif <not <((length of (LocalUsername)) / (2)) = (round (length of (LocalUsername)))>> then\n    change x by (11)\nend\nset [whichlettertoswitchto? v] to [1]\nset size to (130) %\nrepeat (length of (LocalUsername))\n    switch costume to (_ v)\n    switch costume to (letter (WhichLetterToSwitchTo?) of (LocalUsername))\n    create clone of (_myself_ v)\n    change x by (22)\n    wait (0.1) seconds\n    change [whichlettertoswitchto? v] by (1)\nend\nwait (1.5) seconds\nbroadcast (DeleteLocalClones v)\n\nshow\ngo to [front v] layer\n\n