Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #CONFIG
- #---------------------------------------------------------------------------
- #-----------------------------------Logo------------------------------------
- logo: &a[&f&lYGS&a]
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #-----------------------------------Types-----------------------------------
- playerleveling: true
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #---------------------------------PLeveling---------------------------------
- #PlayerLeveling (Reward uses vault!)
- xpforlvlup: 500
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #----------------------------------MaxLvL-----------------------------------
- maxlvl: 999999 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #----------------------------------Suffix-----------------------------------
- suffix: true
- setsuffix: &8[&7Lv%{lvl.%player%}%&8] #Do NOT touch %{lvl.%player%}%
- vipprefix: &a[VIP] &b
- #---------------------------------------------------------------------------
- #------------------------------------------------------------------------------------------------------
- variables:
- {mining.%player%} = 0
- {min.%player%} = 0
- {xp.%player%} = 0
- {lvl.%player%} = 0
- {nextlv.%player%} = 500
- on any movement:
- set tab header to "&e--------&f&lSnow Wars&e-------" and footer to "&eplayerrealms.com &a%number of all players%&7/25" for player
- if name of player is "syu_cat":
- add {lvl.%player%} to {xp.%player%}
- if {xp.%player%} is greater or equal to {nextlv.%player%}:
- if {lvl.%player%} is greater or equal to {@maxlvl}:
- stop
- else:
- remove {nextlv.%player%} from {xp.%player%}
- add 1 to {lvl.%player%}
- send "{@logo} &7レベルアップ!現在のLV: &a%{lvl.%player%}%" to player
- add 1 to {pp.%player%}
- add round({lvl.%player%}*15*({lvl.%player%}*0.02+1.03)) to {nextlv.%player%}
- loop all players:
- player is not "syu_cat"
- message "{@logo} &b&l%player%さんがレベルアップ!現在のレべル:&7%{lvl.%player%}%" to loop-player
- stop
- if {xp.%player%} is greater or equal to {@xpforlvlup}:
- if {lvl.%player%} is greater or equal to {@maxlvl}:
- stop
- else:
- remove {nextlv.%player%} from {xp.%player%}
- add 1 to {lvl.%player%}
- send "{@logo} &7レベルアップ!現在のLV: &a%{lvl.%player%}%" to player
- add 1 to {pp.%player%}
- set {nextlv} to round({nextlv} * 1.1)
- stop
- command /yukigassen [<text>]:
- aliases:ygs
- permission:sk.admin
- trigger:
- if arg-1 is "start" or "stop" or "team" or "help" or "check":
- if arg-1 is "start":
- if {ygs.game} is "false":
- set {ygs.game} to "true"
- set {time.game} to "600"
- loop all players:
- set {hplv.%loop-player%} to {health.%loop-player%}
- broadcast "&a[&f&lYGS&a] &eゲーム開始まで..."
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
- wait 1 second
- broadcast "&a[&f&lYGS&a] &610"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
- wait 5 seconds
- broadcast "&a[&f&lYGS&a] &65"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
- wait 1 second
- broadcast "&a[&f&lYGS&a] &64"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
- wait 1 second
- broadcast "&a[&f&lYGS&a] &63"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
- wait 1 second
- broadcast "&a[&f&lYGS&a] &62"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
- wait 1 second
- broadcast "&a[&f&lYGS&a] &61"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
- wait 1 second
- broadcast "&a[&f&lYGS&a] &e&lSTART!"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 2 1 "
- wait 1 second
- broadcast "&a[&f&lYGS&a] &aチームを決めました!"
- broadcast "&a[&f&lYGS&a] &c赤チームは &e%{teamred::*}%さん"
- broadcast "&a[&f&lYGS&a] &1青チームは &e%{teamblue::*}%さん"
- else:
- send "&a[&f&lYGS&a] &cゲームが既に開始されているため、開始できません。"
- execute console command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense master %player% ~ ~ ~ 2"
- if arg-1 is "team":
- set {_randint} to random integer between 0 and 1
- if {_randint} is 0:
- loop ceil(size of all players/2) times:
- addredmember()
- loop all players:
- {teamred::*} do not contain loop-player
- add loop-player to {teamblue::*}
- if {_randint} is 1:
- loop floor(size of all players)/2 times:
- addredmember()
- loop all players:
- {teamred::*} do not contain loop-player
- add loop-player to {teamblue::*}
- stop loop
- broadcast "&a[&f&lYGS&a] &aチームを決めました!"
- broadcast "&a[&f&lYGS&a] &c赤チームは &e%{teamred::*}%さん"
- broadcast "&a[&f&lYGS&a] &1青チームは &e%{teamblue::*}%さん"
- if arg-1 is "stop":
- set {ygs.game} to "false"
- delete {teamred::*}
- delete {teamblue::*}
- broadcast "&a[&f&lYGS&a] &cゲームが終了しました。"
- loop all players:
- if {lvl.%loop-player%} is "1":
- set {health.%loop-player%} to "1000"
- else:
- set {health.%loop-player%} to "%1000+{addhealth.%loop-player%}%"
- if arg-1 is "check":
- loop {teamred::*}:
- broadcast "&a[&f&lYGS&a] &c赤チームは &e%loop-value%さん"
- loop {teamblue::*}:
- broadcast "&a[&f&lYGS&a] &1青チームは &e%loop-value%さん"
- every 1 second:
- loop all players:
- wipe loop-player's sidebar
- if {ygs.game} is "true":
- set name of sidebar of loop-player to "&f&lSnow Wars"
- set score "&a残り時間: &e%{time.game}%" in sidebar of loop-player to 9
- set score "&cRed Team: %{red}%" in sidebar of loop-player to 8
- set score "&9Blue Team: %{blue}%" in sidebar of loop-player to 7
- set score "&a" in sidebar of loop-player to 6
- set score "&7Your Health: &c%{health.%loop-player%}%" in sidebar of loop-player to 5
- set score "&a" in sidebar of loop-player to 4
- function addredmember():
- set {_p} to random element out of all players
- if {teamred::*} contain {_p}:
- addredmember()
- else if {teamred::*} do not contain {_p}:
- add {_p} to {teamred::*}
- on damage:
- remove 10 from {health.%victim%}
Advertisement
Add Comment
Please, Sign In to add comment