Initial import
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
scoreboard players set #countdown pv_wave_countdown 180
|
||||
scoreboard players set #wave pv_wave_lock -1
|
||||
title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
title @a[tag=pv_wave_viewer] subtitle {"text":"Monster mulai spawn pukul 19:20. Bersiap!","color":"gold"}
|
||||
title @a[tag=pv_wave_viewer] title {"text":"Night Incoming","color":"red","bold":true}
|
||||
playsound minecraft:block.bell.use master @a[tag=pv_wave_viewer] -10 68 0 1 0.7
|
||||
@@ -0,0 +1,37 @@
|
||||
execute if score #countdown pv_wave_countdown matches 180 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 180 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 180 run title @a[tag=pv_wave_viewer] title {"text":"9","color":"gold","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 180 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
execute if score #countdown pv_wave_countdown matches 160 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 160 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 160 run title @a[tag=pv_wave_viewer] title {"text":"8","color":"gold","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 160 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
execute if score #countdown pv_wave_countdown matches 140 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 140 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 140 run title @a[tag=pv_wave_viewer] title {"text":"7","color":"gold","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 140 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
execute if score #countdown pv_wave_countdown matches 120 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 120 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 120 run title @a[tag=pv_wave_viewer] title {"text":"6","color":"gold","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 120 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
execute if score #countdown pv_wave_countdown matches 100 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 100 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 100 run title @a[tag=pv_wave_viewer] title {"text":"5","color":"gold","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 100 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
execute if score #countdown pv_wave_countdown matches 80 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 80 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 80 run title @a[tag=pv_wave_viewer] title {"text":"4","color":"gold","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 80 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
execute if score #countdown pv_wave_countdown matches 60 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 60 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 60 run title @a[tag=pv_wave_viewer] title {"text":"3","color":"red","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 60 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
execute if score #countdown pv_wave_countdown matches 40 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 40 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 40 run title @a[tag=pv_wave_viewer] title {"text":"2","color":"red","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 40 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
execute if score #countdown pv_wave_countdown matches 20 run title @a[tag=pv_wave_viewer] times 0 20 0
|
||||
execute if score #countdown pv_wave_countdown matches 20 run title @a[tag=pv_wave_viewer] subtitle {"text":"Siapkan villager dan guard villagers!","color":"yellow"}
|
||||
execute if score #countdown pv_wave_countdown matches 20 run title @a[tag=pv_wave_viewer] title {"text":"1","color":"red","bold":true}
|
||||
execute if score #countdown pv_wave_countdown matches 20 run playsound minecraft:block.note_block.pling master @a[tag=pv_wave_viewer] -10 68 0 1 1
|
||||
scoreboard players remove #countdown pv_wave_countdown 1
|
||||
@@ -0,0 +1,6 @@
|
||||
bossbar set protect_villagers:wave visible true
|
||||
scoreboard players operation #bar pv_wave_bar = #time daytime
|
||||
scoreboard players remove #bar pv_wave_bar 14000
|
||||
execute if score #bar pv_wave_bar matches ..0 run scoreboard players set #bar pv_wave_bar 0
|
||||
execute if score #bar pv_wave_bar matches 3500.. run scoreboard players set #bar pv_wave_bar 3500
|
||||
execute store result bossbar protect_villagers:wave value run scoreboard players get #bar pv_wave_bar
|
||||
@@ -0,0 +1,6 @@
|
||||
bossbar set protect_villagers:wave visible true
|
||||
scoreboard players operation #bar pv_wave_bar = #time daytime
|
||||
scoreboard players remove #bar pv_wave_bar 18000
|
||||
execute if score #bar pv_wave_bar matches ..0 run scoreboard players set #bar pv_wave_bar 0
|
||||
execute if score #bar pv_wave_bar matches 3667.. run scoreboard players set #bar pv_wave_bar 3667
|
||||
execute store result bossbar protect_villagers:wave value run scoreboard players get #bar pv_wave_bar
|
||||
@@ -0,0 +1,6 @@
|
||||
bossbar set protect_villagers:wave visible true
|
||||
scoreboard players operation #bar pv_wave_bar = #time daytime
|
||||
scoreboard players remove #bar pv_wave_bar 22000
|
||||
execute if score #bar pv_wave_bar matches ..0 run scoreboard players set #bar pv_wave_bar 0
|
||||
execute if score #bar pv_wave_bar matches 833.. run scoreboard players set #bar pv_wave_bar 833
|
||||
execute store result bossbar protect_villagers:wave value run scoreboard players get #bar pv_wave_bar
|
||||
@@ -0,0 +1,6 @@
|
||||
bossbar set protect_villagers:wave visible true
|
||||
scoreboard players operation #bar pv_wave_bar = #time daytime
|
||||
scoreboard players remove #bar pv_wave_bar 23000
|
||||
execute if score #bar pv_wave_bar matches ..0 run scoreboard players set #bar pv_wave_bar 0
|
||||
execute if score #bar pv_wave_bar matches 917.. run scoreboard players set #bar pv_wave_bar 917
|
||||
execute store result bossbar protect_villagers:wave value run scoreboard players get #bar pv_wave_bar
|
||||
@@ -0,0 +1,11 @@
|
||||
scoreboard players set #wave pv_wave_lock 1
|
||||
title @a[tag=pv_wave_viewer] times 10 50 10
|
||||
title @a[tag=pv_wave_viewer] subtitle {"text":"First Howl","color":"red","bold":true}
|
||||
title @a[tag=pv_wave_viewer] title {"text":"Wave 1","color":"gold","bold":true}
|
||||
playsound minecraft:entity.ender_dragon.growl master @a[tag=pv_wave_viewer] -10 68 0 0.7 1
|
||||
bossbar set protect_villagers:wave name {"text":"Wave 1 - First Howl","color":"red","bold":true}
|
||||
bossbar set protect_villagers:wave max 3500
|
||||
bossbar set protect_villagers:wave value 0
|
||||
bossbar set protect_villagers:wave color red
|
||||
bossbar set protect_villagers:wave visible true
|
||||
bossbar set protect_villagers:wave players @a[tag=pv_wave_viewer]
|
||||
@@ -0,0 +1,11 @@
|
||||
scoreboard players set #wave pv_wave_lock 2
|
||||
title @a[tag=pv_wave_viewer] times 10 50 10
|
||||
title @a[tag=pv_wave_viewer] subtitle {"text":"Midnight Siege","color":"purple","bold":true}
|
||||
title @a[tag=pv_wave_viewer] title {"text":"Wave 2","color":"gold","bold":true}
|
||||
playsound minecraft:entity.ender_dragon.growl master @a[tag=pv_wave_viewer] -10 68 0 0.7 1
|
||||
bossbar set protect_villagers:wave name {"text":"Wave 2 - Midnight Siege","color":"purple","bold":true}
|
||||
bossbar set protect_villagers:wave max 3667
|
||||
bossbar set protect_villagers:wave value 0
|
||||
bossbar set protect_villagers:wave color purple
|
||||
bossbar set protect_villagers:wave visible true
|
||||
bossbar set protect_villagers:wave players @a[tag=pv_wave_viewer]
|
||||
@@ -0,0 +1,11 @@
|
||||
scoreboard players set #wave pv_wave_lock 3
|
||||
title @a[tag=pv_wave_viewer] times 10 50 10
|
||||
title @a[tag=pv_wave_viewer] subtitle {"text":"Dead Hour","color":"blue","bold":true}
|
||||
title @a[tag=pv_wave_viewer] title {"text":"Wave 3","color":"gold","bold":true}
|
||||
playsound minecraft:entity.ender_dragon.growl master @a[tag=pv_wave_viewer] -10 68 0 0.7 1
|
||||
bossbar set protect_villagers:wave name {"text":"Wave 3 - Dead Hour","color":"blue","bold":true}
|
||||
bossbar set protect_villagers:wave max 833
|
||||
bossbar set protect_villagers:wave value 0
|
||||
bossbar set protect_villagers:wave color purple
|
||||
bossbar set protect_villagers:wave visible true
|
||||
bossbar set protect_villagers:wave players @a[tag=pv_wave_viewer]
|
||||
@@ -0,0 +1,11 @@
|
||||
scoreboard players set #wave pv_wave_lock 4
|
||||
title @a[tag=pv_wave_viewer] times 10 50 10
|
||||
title @a[tag=pv_wave_viewer] subtitle {"text":"Dawn Breaker","color":"yellow","bold":true}
|
||||
title @a[tag=pv_wave_viewer] title {"text":"Wave 4","color":"gold","bold":true}
|
||||
playsound minecraft:entity.ender_dragon.growl master @a[tag=pv_wave_viewer] -10 68 0 0.7 1
|
||||
bossbar set protect_villagers:wave name {"text":"Wave 4 - Dawn Breaker","color":"yellow","bold":true}
|
||||
bossbar set protect_villagers:wave max 917
|
||||
bossbar set protect_villagers:wave value 0
|
||||
bossbar set protect_villagers:wave color yellow
|
||||
bossbar set protect_villagers:wave visible true
|
||||
bossbar set protect_villagers:wave players @a[tag=pv_wave_viewer]
|
||||
@@ -0,0 +1,33 @@
|
||||
# Tandai player yang sedang berada di arena Protect Villagers.
|
||||
# Ini lebih aman untuk custom dimension, karena pengecekan area dilakukan dari posisi player sendiri.
|
||||
tag @a remove pv_wave_viewer
|
||||
execute as @a at @s if predicate protect_villagers:allowed_dimension if entity @s[x=-39,y=57,z=-27,dx=108,dy=42,dz=54] run tag @s add pv_wave_viewer
|
||||
|
||||
# Update target player bossbar hanya untuk player di arena.
|
||||
bossbar set protect_villagers:wave players @a[tag=pv_wave_viewer]
|
||||
|
||||
# Countdown persiapan 9 detik sebelum monster mulai spawn sekitar 19:20.
|
||||
execute if score #time daytime matches 13153..13333 if score #countdown pv_wave_countdown matches 0 if score #wave pv_wave_lock matches 0 run function protect_villagers:wave/countdown/start
|
||||
execute if score #countdown pv_wave_countdown matches 1.. run function protect_villagers:wave/countdown/tick
|
||||
|
||||
# Trigger title wave. Jika server /reload atau player masuk saat wave sudah berjalan, sistem tetap recover.
|
||||
execute if score #time daytime matches 14000..17500 unless score #wave pv_wave_lock matches 1 run function protect_villagers:wave/start/wave_1
|
||||
execute if score #time daytime matches 18000..21667 unless score #wave pv_wave_lock matches 2 run function protect_villagers:wave/start/wave_2
|
||||
execute if score #time daytime matches 22000..22833 unless score #wave pv_wave_lock matches 3 run function protect_villagers:wave/start/wave_3
|
||||
execute if score #time daytime matches 23000..23917 unless score #wave pv_wave_lock matches 4 run function protect_villagers:wave/start/wave_4
|
||||
|
||||
# Progress bossbar aktif sesuai rentang wave.
|
||||
execute if score #time daytime matches 14000..17500 run function protect_villagers:wave/progress/wave_1
|
||||
execute if score #time daytime matches 18000..21667 run function protect_villagers:wave/progress/wave_2
|
||||
execute if score #time daytime matches 22000..22833 run function protect_villagers:wave/progress/wave_3
|
||||
execute if score #time daytime matches 23000..23917 run function protect_villagers:wave/progress/wave_4
|
||||
|
||||
# Sembunyikan bossbar ketika sedang jeda antar wave.
|
||||
execute if score #time daytime matches 17501..17999 run bossbar set protect_villagers:wave visible false
|
||||
execute if score #time daytime matches 21668..21999 run bossbar set protect_villagers:wave visible false
|
||||
execute if score #time daytime matches 22834..22999 run bossbar set protect_villagers:wave visible false
|
||||
execute if score #time daytime matches 23918..23999 run bossbar set protect_villagers:wave visible false
|
||||
execute if score #time daytime matches 0..13999 run bossbar set protect_villagers:wave visible false
|
||||
|
||||
# Reset harian sebelum malam berikutnya.
|
||||
execute if score #time daytime matches 12000..13000 if score #wave pv_wave_lock matches 4 run scoreboard players set #wave pv_wave_lock 0
|
||||
Reference in New Issue
Block a user