UDON_JP

Untitled

Apr 13th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. #{solo::*}の中に入ってるplayerをランダムで{map1::*}の座標にtp
  2. #{map1::*}の中に8個の座標が入ってる
  3. #{solo::*}の中にいる8人のplyaerを{map1::*}の中に入ってる座標にばらばらにTP
  4. #同じ座標に二人のプレイヤーが存在してはいけない。
  5. command /randomtp:
  6. trigger:
  7. loop {map1::*}:
  8. add loop-value to {teleport::*}
  9. loop {solo::*}:
  10. set {_position} to random integer out of {teleport::*}
  11. teleport loop-value to {_position}
  12. remove {_position} from {teleport::*}
  13. delete {teleport::*}
  14.  
  15. command /swsolojoin <player>:
  16. aliases: /swsj
  17. trigger:
  18. if {solo::*} contains arg-1:
  19. send "&c既にゲームに参加しています。"
  20. stop
  21. add arg-1 to {solo::*}
  22. remove all items from arg-1's inventory
  23. execute console command "/mv tp %arg-1% map1"
  24. execute console command "/menu grab %arg-1% wait"
  25. send "&7%arg-1% &eがゲームに参加しました! (&b%amount of {solo::*}%&e/&b8&e)!" to {solo::*}
  26. if amount of {solo::*} is 1:
  27. loop {map1::*}:
  28. add loop-value to {teleport::*}
  29. loop {solo::*}:
  30. set {_position} to random integer out of {teleport::*}
  31. teleport the loop-value to the location {_position}
  32. remove {_position} from {teleport::*}
  33. delete {teleport::*}
Advertisement
Add Comment
Please, Sign In to add comment