Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {borderradius} = 1
- {bordershrinktimer} = 6000
- on packet event play_server_advancements:
- broadcast "&c%player%&7&lが&3&l進捗を進めた&7&lことによって&e&l世界&7&lが&e&l拡大&7&lされた!!"
- add 1 to {borderradius}
- execute console command "worldborder set %{borderradius}% 3"
- on load:
- execute console command "worldborder set %{borderradius}% 3"
- every tick:
- {bordershrinktimer} >= 1
- if {borderradius} <= 10:
- send action bar from "&c&l世界の縮小は停止しています" to all players
- else if {borderradius} > 10:
- if {bordershrinktimer} > 6000:
- send action bar from "&c&l世界が縮小しています" to all players
- else if {bordershrinktimer} > 100:
- send action bar from "&c&l世界の縮小まであと&4&l%ceil({bordershrinktimer}/20)%秒" to all players
- else if {bordershrinktimer} <= 100:
- send all players title "&c&l世界の縮小まであと" with subtitle "&4&l%ceil({bordershrinktimer}/20)%秒" for 1 second with 0 tick fade in and 10 tick fade out
- {bordershrinktimer} is 100 or 80 or 60 or 40 or 20
- play sound "UI_BUTTON_CLICK" to all players with volume 1 and pitch 5
- remove 1 from {bordershrinktimer}
- {bordershrinktimer} is 0
- send all players title "&c&l世界の縮小まであと" with subtitle "&4&l0秒" for 1 second with 0 tick fade in and 10 tick fade out
- play sound "BLOCK_ANVIL_PLACE" to all players with volume 1 and pitch 5
- set {bordershrinktimer} to 6060
- remove 5 from {borderradius}
- execute console command "worldborder set %{borderradius}% 3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement