player_enter.mcfunction 709 B

12345678910111213141516171819202122232425262728293031323334
  1. # 对单个玩家的处理(如果玩家中途加入就会执行此函数)
  2. function ltw:init/player
  3. # 状态效果
  4. # 位置与模式
  5. tp @s -10 8 -42 68 -20
  6. gamemode adventure
  7. # ——————————————————————————————————————————————
  8. # 经验、配方
  9. recipe take @s *
  10. xp set @s 0 points
  11. xp set @s 0 levels
  12. # 物品
  13. clear @s
  14. # 设置默认状态
  15. function ltw:state/0/sp/join_watch
  16. # TODO: 未完成的重构
  17. ## 开启触发器
  18. #scoreboard players enable @s buy_trigger
  19. #execute as @s run function item:shop/refresh_gold
  20. #execute as @s run function item:shop/refresh_green
  21. ## BGM
  22. #function lib:sounds/music/lobby