Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #command prefixes
- prefix.help : &bHelp &8|&r
- prefix.chat : &bChat &8|&r
- prefix.game : &bGame &8|&r
- #sign tags
- parkoursign : "[parkour]" or "[run]" or "[templerun]" or "[course]" or "[minigame]" or "[microgame]" or "[mg]" or "[sprint]"
- parkoursigntop : [parkour]
- parkourcommand : parkour
- parkour : Parkour
- # #
- # GAMES #
- # #
- on quit:
- delete {parkour.%uuid of player%.timestart}
- delete {parkour.%uuid of player%.started}
- delete {parkour.%uuid of player%.checkpoint}
- delete {parkour.%uuid of player%.checkpoint}
- command /{@parkourcommand} <text="help">:
- usage: /{@parkourcommand} (help)
- permission: admin.parkour
- description: Shows help for the {@parkourcommand} microgame.
- trigger:
- message "{@prefix.help} This is the MicroGames setup help:"
- wait 1 second
- message "&0"
- message "{@prefix.help} First, customise your game name in the MICROGAMES.SK file."
- wait 5 seconds
- message "&0"
- message "{@prefix.help} You can change the name from 'parkour' to anything you like!"
- wait 5 seconds
- message "&0"
- message "{@prefix.help} To add a starting point, place an IRON PLATE."
- wait 3 seconds
- message "&0"
- message "{@prefix.help} Walking on this will start the course."
- wait 3 seconds
- message "&0"
- message "{@prefix.help} Use a WOODEN PLATE as a checkpoint."
- wait 3 seconds
- message "&0"
- message "{@prefix.help} Players can return to this place with /cp."
- wait 4 seconds
- message "&0"
- message "{@prefix.help} Bounce pads are STONE PLATES on SLIME BLOCK. These give a random bounce!"
- wait 6 seconds
- message "&0"
- message "{@prefix.help} Fly pads are STONE PLATES on GOLD BLOCK. These give a short controllable jet!"
- wait 6 seconds
- message "&0"
- message "{@prefix.help} Tele-pads are STONE PLATES on DIAMOND BLOCK. These teleport you on top of a close-by IRON BLOCK"
- wait 6 seconds
- message "&0"
- message "{@prefix.help} To add a finish line, use a GOLD PLATE."
- wait 4 seconds
- message "&0"
- message "{@prefix.help} Add a sign with the tag {@parkoursigntop} and right click to display top scores."
- wait 7 seconds
- message "&0"
- message "{@prefix.help} To reset/setup top scores, use &f/reset{@parkourcommand}time"
- command /reset{@parkourcommand}time:
- usage: /reset{@parkourcommand}time
- permission: admin.resetparkourtime
- description: Resets {@parkourcommand} top time score.
- trigger:
- set {time.parkour.top} to 9999
- set {time.parkour.top.player} to "No Results :("
- message "{@prefix.game} Top time reset to 9999."
- command /checkpoint:
- usage: /cp
- aliases: cp
- permission: member.checkpoint
- description: Resets player to last {@parkourcommand} checkpoint.
- trigger:
- if {parkour.%uuid of player%.checkpoint} exists:
- message "{@prefix.game} Returning to last checkpoint."
- teleport player to {parkour.%uuid of player%.checkpoint}
- else:
- message "{@prefix.game} You need to start the {@parkourcommand} game first!"
- on rightclick on sign:
- if line 1 of clicked block is {@parkoursign}:
- set line 3 of clicked block to "&5%{time.parkour.top}% &9Seconds"
- set line 4 of clicked block to "&3%{time.parkour.top.player}%"
- set line 2 of clicked block to "&5Top Score:"
- every second:
- add 1 to {time.now}
- every day:
- set {time.now} to 0
- on step on pressure plate:
- loop blocks in radius 1:
- if loop-block is iron pressure plate:
- set {parkour.%uuid of player%.timestart} to {time.now}
- set {parkour.%uuid of player%.started} to true
- message "{@prefix.game} {@parkour} started! Your time is: &a%({time.now}-{parkour.%uuid of player%.timestart})%"
- else if loop-block is gold block:
- loop 20 times:
- push the player upwards at speed 0.3
- push the player forwards at speed 0.1
- wait 0.2 seconds
- else if loop-block is slime block:
- loop 3 times:
- push the player upwards at speed 0.2
- push the player forwards at speed 0.1
- else if loop-block is diamond block:
- loop blocks in radius 12 of loop-block-1:
- loop-block-2 is iron block
- block above loop-block-2 is air
- block above block above loop-block-2 is air
- teleport player to block above loop-block-2
- else if loop-block is wooden pressure plate:
- if {parkour.%uuid of player%.started} is true:
- set {parkour.%uuid of player%.checkpoint} to location of player
- message "{@prefix.game} Checkpoint reached! Your time is: &a%({time.now}-{parkour.%uuid of player%.timestart})%"
- message "{@prefix.game} Use /cp to return if you fall off..."
- else if loop-block is gold pressure plate:
- if {parkour.%uuid of player%.started} is true:
- set {parkour.%uuid of player%.time.last} to ({time.now}-{parkour.%uuid of player%.timestart})
- if ({time.now}-{parkour.%uuid of player%.timestart}) is less than {time.parkour.top}:
- set {time.parkour.top} to ({time.now}-{parkour.%uuid of player%.timestart})
- set {time.parkour.top.player} to player
- message "{@prefix.game} You broke the time record!"
- message "{@prefix.game} Finish line reached! Your time is: &a%({time.now}-{parkour.%uuid of player%.timestart})%"
- delete {parkour.%uuid of player%.timestart}
- delete {parkour.%uuid of player%.started}
- delete {parkour.%uuid of player%.checkpoint}
- teleport player to {spawn.location}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement