Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {SB.1} = 0
- {LA.1} = 0
- {LA.2} = 0
- {LA.3} = 0
- {LA.4} = 0
- {LA.5} = 0
- {LS.begin} = 0
- {LS.pc} = 0
- {%player%.LSaj} = 0
- {LS.gd} = 0
- {LS.sec} = 0
- {LS.ab} = 0
- {LS.sp1} = 0
- {LS.sp2} = 0
- command /lvs <text>:
- trigger:
- if arg 1 is "begin":
- if {LS.begin} is not 0:
- message "&c既に始まっています!"
- if {LS.begin} is 0:
- broadcast "&a&l地対空戦闘ゲームを始めます!&b&l /lvs join &a&lで参加できます!"
- set {LS.begin} to 1
- if arg 1 is "join":
- if {LS.begin} is 1:
- if {%player%.LSaj} is 1:
- message "&c既に参加しています!"
- if {%player%.LSaj} is 0:
- message "参加しました!"
- set {%player%.LSaj} to 1
- set {LS.pc} to {LS.pc} + 1
- if {LS.pc} is 1:
- broadcast "&a%player%さんが、&6爆撃機&aとして参加しました! [1/6]"
- set {SB.1} to player
- if {LS.pc} is 2:
- broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [2/6]"
- set {LA.1} to player
- if {LS.pc} is 3:
- broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [3/6]"
- set {LA.2} to player
- if {LS.pc} is 4:
- broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [4/6]"
- set {LA.3} to player
- if {LS.pc} is 5:
- broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [5/6]"
- set {LA.4} to player
- if {LS.pc} is 6:
- broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [6/6]"
- set {LA.5} to player
- broadcast "&dまもなくゲームが始まります! テレポートまで...10sec"
- set {LS.begin} to 2
- wait 10 seconds
- broadcast "防衛側は、棒を右クリックして、拠点を配置してください!"
- execute console command "/give %{LA.1}% stick "
- execute console command "/give %{LA.2}% stick "
- execute console command "/give %{LA.3}% stick "
- execute console command "/give %{LA.4}% stick "
- execute console command "/give %{LA.5}% stick "
- teleport {LA.1} to {LS.sp1}
- execute console command "/shot give %{LA.1}% ts-443"
- teleport {LA.2} to {LS.sp1}
- execute console command "/shot give %{LA.2}% ts-443"
- teleport {LA.3} to {LS.sp1}
- execute console command "/shot give %{LA.3}% ts-443"
- teleport {LA.4} to {LS.sp1}
- execute console command "/shot give %{LA.4}% ts-443"
- teleport {LA.5} to {LS.sp1}
- execute console command "/shot give %{LA.5}% ts-443"
- On right click with stick:
- if {LS.begin} is 2:
- set {LS.ab} to {LS.ab} + 1
- execute console command "/clear %player% stick"
- execute console command "/execute %player% ~ ~ ~ summon villager_golem ~ ~1 ~ {PlayerCreated:0,Attributes:[{Name:generic.maxHealth,Base:100}],Health:100.0f,NoAI:1,Silent:1,Glowing:1b}"
- every seconds:
- set {LS.sec} to {LS.sec} + 1
- if {Ls.begin} is 2:
- if {LS.ab} is 5:
- set {Ls.begin} to 3
- broadcast "&e&l防衛側拠点配置完了しました! 続いて、攻勢側をテレポートします TPされ次第の開始となります! また、攻勢側は装備を手にしてください!"
- execute console command "/shot give %{SB.1}% ts-504"
- execute console command "/effect %{SB.1}% health_boost 10000 44"
- execute console command "/effect %{SB.1}% instant_health 10 100"
- execute console command "/effect %{SB.1}% glowing 10000 1"
- execute console command "/give %{SB.1}% elytra"
- teleport {SB.1} to {LS.sp2}
- if {Ls.begin} is 3:
- if {LS.gd} is 5:
- broadcast "&c&l攻勢側勝利!"
- broadcast "防: %{LA.1}% %{LA.2}% %{LA.3}% %{LA.4}% %{LA.5}% 攻: %{SB.1}%"
- execute console command "/clear @a iron_block"
- execute console command "/clear @a elytra"
- set {SB.1} to 0
- set {LA.1} to 0
- set {LA.2} to 0
- set {LA.3} to 0
- set {LA.4} to 0
- set {LA.5} to 0
- set {LS.begin} to 0
- set {LS.pc} to 0
- set {%{SB.1}%.LSaj} to 0
- set {%{LA.1}%.LSaj} to 0
- set {%{LA.2}%.LSaj} to 0
- set {%{LA.3}%.LSaj} to 0
- set {%{LA.4}%.LSaj} to 0
- set {%{LA.5}%.LSaj} to 0
- set {LS.gd} to 0
- set {LS.sec} to 0
- set {LS.ab} to 0
- if {LS.sec} is 360:
- broadcast "&c&l防衛側勝利!"
- broadcast "防: %{LA.1}% %{LA.2}% %{LA.3}% %{LA.4}% %{LA.5}% 攻: %{SB.1}%"
- execute console command "/clear @a iron_block"
- execute console command "/clear @a elytra"
- execute console command "/kill @e[type=villager_golem]"
- set {SB.1} to 0
- set {LA.1} to 0
- set {LA.2} to 0
- set {LA.3} to 0
- set {LA.4} to 0
- set {LA.5} to 0
- set {LS.begin} to 0
- set {LS.pc} to 0
- set {%{SB.1}%.LSaj} to 0
- set {%{LA.1}%.LSaj} to 0
- set {%{LA.2}%.LSaj} to 0
- set {%{LA.3}%.LSaj} to 0
- set {%{LA.4}%.LSaj} to 0
- set {%{LA.5}%.LSaj} to 0
- set {LS.gd} to 0
- set {LS.sec} to 0
- set {LS.ab} to 0
- On damage:
- if attacker is {LA.1} or {LA.2} or {LA.3} or {LA.4} or {LA.5}:
- if victim is {LA.1} or {LA.2} or {LA.3} or {LA.4} or {LA.5}:
- cancel event
- On death:
- if victim is iron golem:
- set {LS.gd} to {LS.gd} + 1
- command /lvssp <int>:
- permission: skript.admin
- trigger:
- if arg 1 is 1:
- set {LS.sp1} to player's location
- if arg 1 is 2:
- set {LS.sp2} to player's location
- command /resetlvs:
- trigger:
- set {SB.1} to 0
- set {LA.1} to 0
- set {LA.2} to 0
- set {LA.3} to 0
- set {LA.4} to 0
- set {LA.5} to 0
- set {LS.begin} to 0
- set {LS.pc} to 0
- set {%{SB.1}%.LSaj} to 0
- set {%{LA.1}%.LSaj} to 0
- set {%{LA.2}%.LSaj} to 0
- set {%{LA.3}%.LSaj} to 0
- set {%{LA.4}%.LSaj} to 0
- set {%{LA.5}%.LSaj} to 0
- set {LS.gd} to 0
- set {LS.sec} to 0
- set {LS.ab} to 0
- loop all players:
- set {%loop-player%.LSaj} to 0
Add Comment
Please, Sign In to add comment