Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /health <text> <text>:
- trigger:
- if arg 1 is not set:
- message "&4You must give the health you want!"
- else if arg 1 is "0" or "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9" or "10" or "11" or "12" or "13" or "14" or "15" or "16" or "17" or "18" or "19" or "20":
- if arg 2 is "me" or "player":
- set {_h} to arg 1 parsed as integer
- set the health of the player to {_h}
- message "&aYour health is now: %arg 1%"
- else if arg 2 is "mob":
- if target is an entity:
- set {_h} to arg 1 parsed as integer
- set the health of the targeted entity to {_h}
- message "&aYou set the %targeted entity%'s health to %arg 1%"
- else:
- message "&4You can only set health of an entity!"
- else:
- message "&4Unknown type!"
- else:
- message "&4You either gave a number too big (max 20) or too small (min 0) or not a number!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement