doru90

Untitled

Apr 23rd, 2021 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. command /firstspawn <text>:
  2. description: &e使用例&f /firstspawn normal &6or&f first,
  3. usage: &e使用例&f /firstspawn normal &6or&f first.
  4. aliases: /fs
  5. permission: admin
  6. trigger:
  7. if arg is "normal":
  8. set {spawn} to location of player
  9. send "&a&l通常スポーンをここに変更しました"
  10. play sound "entity.player.levelup" with volume 1 and pitch 0 at player
  11. else if arg is "first":
  12. set {firstspawn} to location of player
  13. send "&a&l初期スポーンをここに変更しました"
  14. play sound "entity.player.levelup" with volume 1 and pitch 0 at player
  15. stop
  16.  
  17. on join:
  18. if {first.%player%} is not set:
  19. teleport the player to {firstspawn}
  20. teleport the player to {spawn}
  21. on respawn:
  22. teleport the player to {spawn}
  23.  
  24. on join:
  25. if {first.%player%} is not set:
  26. set join message to "&a&l<<&eFirstJoin&a&l>>&f %player%さんが冒険を始めた!"
  27. execute console command "/execute @a ~ ~ ~ playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1 0"
  28. execute console command "/mm i give %player% 木の剣"
  29. set {first.%player%} to true
  30. else:
  31. set join message to "&a&l<<&eJoin&a&l>>&f %player%さんが冒険を再開した!"
  32. execute console command "/execute @a ~ ~ ~ playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1 0"
  33. on quit:
  34. set quit message to "&a&l<<&dQuit&a&l>>&f %player%さんが冒険を中断した"
  35.  
  36. command /resetfirst <player>:
  37. permission: admin
  38. trigger:
  39. clear {first.%arg-1%}
  40. play sound "entity.player.levelup" with volume 1 and pitch 0 at player
Add Comment
Please, Sign In to add comment