Advertisement
okkunsyouta

Untitled

Nov 22nd, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. command /mob [<entity types> [<number>]]:
  2. permission: skript.admin
  3. trigger:
  4. set {_count} to 0
  5. if arg-2 is not set:
  6. loop all entities:
  7. if loop-entity = arg-1:
  8. add 1 to {_count}
  9. else if arg-1 is not set:
  10. add 1 to {_count}
  11. if arg-1 is not set:
  12. send "&b全てのentity&aの数は[&e%{_count}%&a]です。&d[範囲:&lワールド&d]"
  13. else:
  14. send "&b%arg-1%&aの数は[&e%{_count}%&a]です。&d[範囲:&lワールド&d]"
  15. stop
  16. else:
  17. loop all entities in radius arg-2 around player:
  18. if loop-entity = arg-1:
  19. add 1 to {_count}
  20. else if arg-1 is not set:
  21. add 1 to {_count}
  22. if arg-1 is not set:
  23. send "&b全てのentity&aの数は[&e%{_count}%&a]です。&d[範囲:半径&c%arg-2%&dブロック]"
  24. else:
  25. send "&b%arg-1%&aの数は[&e%{_count}%&a]です。&d[範囲:半径&c%arg-2%&dブロック]"
  26. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement