Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. variables:
  2. {borderradius} = 1
  3. {bordershrinktimer} = 6000
  4. on packet event play_server_advancements:
  5. broadcast "&c%player%&7&lが&3&l進捗を進めた&7&lことによって&e&l世界&7&lが&e&l拡大&7&lされた!!"
  6. add 1 to {borderradius}
  7. execute console command "worldborder set %{borderradius}% 3"
  8. on load:
  9. execute console command "worldborder set %{borderradius}% 3"
  10. every tick:
  11. {bordershrinktimer} >= 1
  12. if {borderradius} <= 10:
  13. send action bar from "&c&l世界の縮小は停止しています" to all players
  14. else if {borderradius} > 10:
  15. if {bordershrinktimer} > 6000:
  16. send action bar from "&c&l世界が縮小しています" to all players
  17. else if {bordershrinktimer} > 100:
  18. send action bar from "&c&l世界の縮小まであと&4&l%ceil({bordershrinktimer}/20)%秒" to all players
  19. else if {bordershrinktimer} <= 100:
  20. 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
  21. {bordershrinktimer} is 100 or 80 or 60 or 40 or 20
  22. play sound "UI_BUTTON_CLICK" to all players with volume 1 and pitch 5
  23. remove 1 from {bordershrinktimer}
  24. {bordershrinktimer} is 0
  25. send all players title "&c&l世界の縮小まであと" with subtitle "&4&l0秒" for 1 second with 0 tick fade in and 10 tick fade out
  26. play sound "BLOCK_ANVIL_PLACE" to all players with volume 1 and pitch 5
  27. set {bordershrinktimer} to 6060
  28. remove 5 from {borderradius}
  29. execute console command "worldborder set %{borderradius}% 3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement