Advertisement
iku55

psc:tagmanager

Jun 16th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. command /tag [<text>] [<text>] [<text>]:
  2. trigger:
  3. if arg-1 is "add":
  4. if arg-2 is not set:
  5. message "プレイヤーを設定してください"
  6. stop
  7. else:
  8. if arg-3 is not set:
  9. message "タグ名を設定してください"
  10. stop
  11. else:
  12. command "/scoreboard players tag %arg-2% add %arg-3%"
  13. message "%arg-2%に%arg-3%を追加しました"
  14. else if arg-1 is "remove":
  15. if arg-2 is not set:
  16. message "プレイヤーを設定してください"
  17. stop
  18. else:
  19. if arg-3 is not set:
  20. message "タグ名を設定してください"
  21. stop
  22. else:
  23. command "/scoreboard players tag %arg-2% remove %arg-3%"
  24. message "%arg-2%に%arg-3%を削除しました"
  25. else if arg-1 is "list":
  26. if arg-2 is not set:
  27. message "タグ名を設定してください"
  28. stop
  29. else:
  30. command "/tell %player% タグ%arg-2%がついているリスト:"
  31. command "/say @e[tag=%arg-2%]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement