Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on pick up:
- if the item's name is "AthleticStart":
- execute console command "/effect %player% clear"
- remove all ender pearls from player's inventory
- set player's health to player's max health
- set player's food level to 10
- set {%player%.BeforeGamemode} to player's gamemode
- set player's gamemode to adventure
- set {%player%.CheckPoint} to player's location
- set {%player%.challengeing} to the item's lore
- set {%player%.playing} to 1
- wait for 1 tick
- remove the item from player's inventory
- send player title "&c&l●●●" for 1 second
- wait for 1 second
- send player title "&c&l●●&a&l●" for 1 second
- wait for 1 second
- send player title "&c&l●&a&l●●" for 1 second
- wait for 1 second
- send player title "&a&l●●●" for 1 second
- set {%player%.StartTime} to now
- if the item's name is "AthleticCheckPoint":
- if {%player%.playing} is 1:
- set {%player%.between} to "%difference between now and {%player%.StartTime}%"
- replace all "seconds" and "second" with "秒" in {%player%.between}
- replace all "minutes" and "minute" with "分" in {%player%.between}
- replace all "hours" and "hour" with "時間" in {%player%.between}
- replace all "days" and "day" with "日" in {%player%.between}
- replace all "and" with "" in {%player%.between}
- replace all " " with "" in {%player%.between}
- broadcast "&6%player%が&r%the item's lore%&6を%{%player%.between}%で通過しました!"
- set {%player%.CheckPoint} to player's location
- set player's health to player's max health
- set player's food level to 10
- wait for 1 tick
- remove the item from player's inventory
- if the item's name is "AthleticGoal":
- if {%player%.playing} is 1:
- set {%player%.between} to "%difference between now and {%player%.StartTime}%"
- replace all "seconds" and "second" with "秒" in {%player%.between}
- replace all "minutes" and "minute" with "分" in {%player%.between}
- replace all "hours" and "hour" with "時間" in {%player%.between}
- replace all "days" and "day" with "日" in {%player%.between}
- replace all "and" with "" in {%player%.between}
- replace all " " with "" in {%player%.between}
- broadcast "&e%player%が&r%{%player%.challengeing}%&eを%{%player%.between}%でクリアしました!"
- send player title "&eGOAL!!" for 3 seconds
- set player's gamemode to {%player%.BeforeGamemode}
- set {%player%.playing} to 0
- set player's health to player's max health
- set player's food level to 10
- wait for 1 tick
- remove the item from player's inventory
- command /start <text>:
- trigger:
- set {name} to arg
- replace all "&" with "§" in {name}
- execute console command "/execute @p ~ ~ ~ /summon item ~ ~ ~ {Item:{id:""minecraft:heavy_weighted_pressure_plate"",Count:1b,tag:{display:{Name:""AthleticStart"",Lore:[""%{name}%""]}}}}"
- command /checkpoint <text>:
- trigger:
- set {name} to arg
- replace all "&" with "§" in {name}
- execute console command "/execute @p ~ ~ ~ /summon item ~ ~ ~ {Item:{id:""minecraft:lapis_block"",Count:1b,tag:{display:{Name:""AthleticCheckPoint"",Lore:[""%{name}%""]}}}}"
- command /goal:
- trigger:
- execute console command "/execute @p ~ ~ ~ /summon item ~ ~ ~ {Item:{id:""minecraft:light_weighted_pressure_plate"",Count:1b,tag:{display:{Name:""AthleticGoal""}}}}"
- on damage:
- if damage is caused by fall:
- if {%victim%.playing} is 1:
- teleport the victim to {%victim%.CheckPoint}
- command /cp:
- trigger:
- if {%player%.playing} is 1:
- teleport the player to {%player%.CheckPoint}
- on death:
- if {%victim%.playing} is 1:
- set player's health to player's max health
- set player's food level to 10
- teleport the player to {%player%.CheckPoint}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement