state_enter.mcfunction 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # 要求系统进入状态 0(等待大厅)
  2. scoreboard players set $state mem 0
  3. # HUD
  4. scoreboard objectives setdisplay belowName
  5. scoreboard objectives setdisplay sidebar
  6. scoreboard objectives setdisplay list
  7. # 区域
  8. forceload remove all
  9. forceload add 0 0
  10. forceload add 31 -17 -31 -80
  11. # 规则
  12. function ltw:init/gamerule
  13. # 队伍
  14. team remove hub_watch
  15. team add hub_watch "旁观"
  16. team modify hub_watch collisionRule never
  17. team modify hub_watch friendlyFire false
  18. team modify hub_watch prefix {"text":" ◇ ","color":"white"}
  19. team modify hub_watch suffix " "
  20. team remove hub_play
  21. team add hub_play "准备"
  22. team modify hub_play collisionRule never
  23. team modify hub_play friendlyFire false
  24. team modify hub_play prefix {"text":" ◆ ","color":"green"}
  25. team modify hub_play suffix " "
  26. # 实体
  27. function ltw:init/entity
  28. function ltw:state/0/sp/refresh_entity
  29. # 重置开始倒计时
  30. #scoreboard players set #start_countdown mem 9999999
  31. #execute as @a[team=!debugging] run function ltw:state/0/player_enter
  32. # 启用节奏跑酷
  33. #scoreboard players set $tempo_enable mem 1
  34. #function ltw:state/0/parkour/tempo_block/marker_spawn
  35. # bossbar
  36. #scoreboard players set $bossbar_type mem 0
  37. #function lib:bossbar/show