20 lines
1.3 KiB
MCFunction
20 lines
1.3 KiB
MCFunction
scoreboard players set #arena arena_reset_lock 1
|
|
|
|
# Karena function ini dipanggil "as @a at @s if predicate protect_villagers:allowed_dimension",
|
|
# command clone di bawah ini berjalan di dimensi zombiiattack:protect_villagers tanpa perlu "execute in".
|
|
|
|
# sign
|
|
clone 62 72 300 64 94 344 62 72 -22 replace
|
|
|
|
# arena war
|
|
clone -1 62 306 60 74 338 -1 62 -16 replace
|
|
|
|
execute as @a at @s if predicate protect_villagers:allowed_dimension run title @s times 10 70 20
|
|
execute as @a at @s if predicate protect_villagers:allowed_dimension run title @s title {"text":"Resetting...","color":"aqua","bold":true}
|
|
execute as @a at @s if predicate protect_villagers:allowed_dimension run title @s subtitle [{"text":"Arena ","color":"yellow","bold":true},{"text":"Protect Villagers ","color":"green","bold":true},{"text":"telah di reset.","color":"gray"}]
|
|
|
|
# Volume dan pitch dibuat lebih jelas untuk seluruh player di dimensi Protect Villagers.
|
|
execute as @a at @s if predicate protect_villagers:allowed_dimension run playsound minecraft:block.beacon.activate player @s ~ ~ ~ 2.0 1.0
|
|
execute as @a at @s if predicate protect_villagers:allowed_dimension run playsound minecraft:block.conduit.activate player @s ~ ~ ~ 1.5 1.2
|
|
execute as @a at @s if predicate protect_villagers:allowed_dimension run playsound minecraft:block.end_portal_frame.fill player @s ~ ~ ~ 1.2 0.8
|