Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mob [<entity types> [<number>]]:
- permission: skript.admin
- trigger:
- set {_count} to 0
- if arg-2 is not set:
- loop all entities:
- if loop-entity = arg-1:
- add 1 to {_count}
- else if arg-1 is not set:
- add 1 to {_count}
- if arg-1 is not set:
- send "&b全てのentity&aの数は[&e%{_count}%&a]です。&d[範囲:&lワールド&d]"
- else:
- send "&b%arg-1%&aの数は[&e%{_count}%&a]です。&d[範囲:&lワールド&d]"
- stop
- else:
- loop all entities in radius arg-2 around player:
- if loop-entity = arg-1:
- add 1 to {_count}
- else if arg-1 is not set:
- add 1 to {_count}
- if arg-1 is not set:
- send "&b全てのentity&aの数は[&e%{_count}%&a]です。&d[範囲:半径&c%arg-2%&dブロック]"
- else:
- send "&b%arg-1%&aの数は[&e%{_count}%&a]です。&d[範囲:半径&c%arg-2%&dブロック]"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement