// A link to the most recent version of this script: https://slug.vercel.app/backtick2
// (slug.vercel.app is an open source link shortener)
// (the version found at the url above may be outdated, but it might be more recent than this one.)

// for those coming here from the oss section:
// https://notawesome.cc/docs/nas/
// this has all the offical nas docs and help.
// (nas is a very easy language to understand (as in it's human-readable))

//this is the max length of one line at the default scale. (to check stuff in the script)
  msg --------------------------------------------------------------

// ################         ############## //
// ################ Builtin ############## //
// ################         ############## //

#onJoin
    cmd br normal
    boost 0 0 0 0 0 0 1
    call #joinMsg
    // delay 100
    // cmd spawn
    cmd nothing2
quit

#input
    if runArg1|=|"fb" cmd tp 191 24 30 90 0
    if runArg1|=|"fbr" call #fbrr
    if runArg1|=|"maplink" msg &fvisit: &bhttps://goldegag37.github.io/secrets/maplink
    if runArg1|=|"back" cmd tp {lastPos}
quit

// ################          ############## //
// ################ Fuctions ############## //
// ################          ############## //

#showLinks
    msg &fFor this map's OsScript:
    msg &3https://slug.vercel.app/backtick2
    msg &fFor an example OsScript:
    msg &3https://slug.vercel.app/adventure_example
quit

#setSpawn 
    setdeathspawn {runArg1} {runArg2} {runArg3} 0 0
    setspawn {runArg1} {runArg2} {runArg3}
quit

#kill
    kill {runArg1}
quit

#joinMsg
    delay 100
    msg &fWelcome!
    delay msgDelay
    msg &fGo to the corner to test stuff,
    msg &fTo Learn stuff, &rExplore! &l:3
    msg &7(All moving blocks showcased in this map need physics on.)
quit

#spawnMb
    msg &rThis map is for testing, and learning.
quit

#Zombie
    placeblock zombie {runArg1} {runArg2} {runArg3}
quit

#ff
#fixFish
    cmd br normal
    cmd z activewater
    cmd m 6 26 92 
    cmd m 2 24 84
    cmd pl bettafish 2 24 84 
    cmd pl goldfish 2 24 85
    cmd pl seasponge 2 24 86
    cmd pl salmon 2 24 87

    cmd nothing2 (just fixed the fish)
quit

#fz
#fixZombies
    cmd br normal
    cmd r zombie air
    cmd m 26 23 75
    cmd m 19 22 70
    cmd pl zombie 20 22 74
    cmd nothing2 (just fixed the zombies)
quit

#fc
#fixCreepers
    placeblock air 30 1 82
    placeblock air 30 1 83
    placeblock air 30 1 84
    placeblock air 31 1 82
    placeblock creeper 31 1 82
    placeblock air 31 1 84
    placeblock air 32 1 82
    placeblock air 32 1 83
    placeblock air 32 1 84

    cmd nothing2 (just fixed the creepers)
quit


#ft
#fixTrains
    cmd br normal
    cmd r train 0
    cmd m 0 26 20
    cmd m 17 24 37

    cmd c air
    cmd m 0 18 20
    cmd m 17 20 37
    cmd v
    cmd m 0 23 20

    cmd pl train 4 25 24
    cmd pl train 12 25 21
    cmd pl train 4 26 29
    cmd pl train 13 25 31

    cmd nothing2 (just fixed the trains)
quit

#fb
#fixBirds
    cmd br normal
    cmd r bluebird 0 
    cmd m 19 31 125 
    cmd m 39 23 112
    cmd pl bluebird 23 25 119

    cmd nothing2 (just fixed the birds)
quit

#FBreset
    cmd tp 2 1 253
    call #fbr
quit
#fbrr
    kill &c@p reset the fb.
#fbr
    cmd br normal
    cmd z 0
    cmd zonemark fb
    cmd z stone
    cmd m 196 23 1
    cmd m 254 23 59
    cmd tp 191 24 30 90 0
quit

#fbc
#FBclear
    cmd br normal
    cmd r {runArg1} 0
    cmd zonemark fb
    cmd nothing2
quit

#hidemb
    tempblock air {MBCoords} false
    cmd nothing2
quit

#runHelp
    msg &7running &a/? {runArg1}
    delay 500
    cmd ? {runArg1}
quit

// ################       ############## //
// ################ Lists ############## //
// ################       ############## //

#oss
    msg &f &f
    msg &7OsScript commands:
    msg &uOsScript, input, OsScriptAction, OsUploadScript
    msg &7Showing commands 1-4 (out of 4)
    msg &7Type &a/Help <command> &7for more help on a command.
    msg &8(I may have missed a few commands)
quit

#fish
    msg &f &f
    msg &7Fish blocks:
    msg &uGoldFish, Sea_Sponge, Shark, Salmon, Betta_Fish, Lava_Shark
    msg &7Showing blocks 1-6 (out of 6)
quit

#files
msg &7the output of &a/rendermap files
msg &7(for this map)
msg &7Heightmap:
msg &f  https://notawesome.cc/mr/backtick+2-h72EF28.png
msg &7Colormap:
msg &f  https://notawesome.cc/mr/backtick+2-c72EF28.png
msg &7Shadedmap:
msg &f  https://notawesome.cc/mr/backtick+2-s72EF28.png
quit

// ################      ############## //
// ################ Help ############## //
// ################      ############## //


#wlfaucet
    msg &xwater_faucet&fs and &xlava_faucet&fs work the same,
    msg &fthey place &xwaterfall&f/&xlavafall&f blocks beneath themselves
    msg &f(if the block under them is air), and after some time, place 
    msg &xair_flood_down&f beneath themselves.
quit

#wlother
    msg &a/search blocks water&f for water related blocks,
    msg &a/search blocks lava&f for lava related ones,
    msg &a/input fb&f to go to the &6FreeBuild&f.
quit

#ossHelp
    msg       
quit

#warningMb
    msg &e╨&f Most physics blocks will Duplicate themselves. &e╨
    msg &7(mainly &xfish&7, &xbirds&7, &xzombies&7, &xcreepers&7)
    msg &g(as a reminder: any block on a non-fixed path will dupe)
quit

#percyMsg
    msg &rPercy: &xHello!
    // msg &rPercy: &xThe building phase has begun and your secret partner has been assigned!&r
    // msg &rPercy: &xUse &b/ss status &xto see their interests and &b/ss go &xto get started.
quit

#trainHelp
    msg &fPut a &xtrain&f on Black wool and it will move along the path.
    msg &fCan ride with &a/ride&f.
    msg &a/? train&7 for help
quit

#snakeHelp
    msg &fA &xsnake&f will crawl along the ground,
    msg &fclimb walls, and kill players it touches,
    msg &fwhist moving towards the nearest player.
    msg &a/? snake&7 for help
quit

#fishHelp
    msg &xbetta_fish&f move toward the player, 
    msg &fwhile the rest of the fish run away.
    msg &fsharks &7(and lava sharks)&f kill all players they touch
    msg
    msg &a/? salmon&7 for help
quit


#doorHelp
    msg &sDoors&f can be used as 'openable' blocks if physics are
    msg &fenabled, they will automatically toggle back to closed after a 
    msg &ffew seconds. &sdoor_green&f toggles to red instead of air - 
    msg &7see also, &uodoor&7 and &utdoor&7.
    msg &a/? door&7 for help
    msg &f &f
    msg &sair_switch&f can be placed in next to of doors to act as 
    msg &fautomatic door openers when the player walks into the block.
    msg &a/? air_switch&7 for help
    msg &f &f
    msg &a/search blocks door&7 for a list of doors
quit

#mbHelp
    msg &7From &a/? mb&7:&f 
    msg &e  Use | to separate commands, e.g. /say 1 |&e/say 2&f
    msg &e  Note: "@&ep" is a placeholder for player who clicked.
    msg &a/MB show &e- Shows or hides message blocks
    msg &7 Please note that this also works with &a/bot text&7.
quit

#botHelp
    msg &fYou can set the model and skin of &rbots&f, 
    msg &a/Model bot [name] [model] &e- Sets the model of that bot.&f 
    msg &a/Skin bot [name] [skin] &e- Sets the skin of that bot.
    msg &7see &a/? skin&7 and &a/? model&7 for help
quit