kollinkoko

Bats [SK]

Jul 9th, 2016
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. command /bats [<text>]:
  2. permission: skript.op
  3. trigger:
  4. if arg 1 is equal to "on":
  5. set {bats} to true
  6. broadcast "&2Bats enabled"
  7. if arg 1 is equal to "off":
  8. set {bats} to false
  9. broadcast "&4Bats disabled"
  10.  
  11. on death of bat:
  12. {bats} is true
  13. attacker is a player
  14. drop 1 golden apple at location of victim
  15. chance of 5%:
  16. kill the attacker
  17. broadcast "&4%attacker% was consumed by the bats"
Advertisement
Add Comment
Please, Sign In to add comment