Advertisement
Guest User

Untitled

a guest
Aug 10th, 2016
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. options:
  2. P: &8[&7MobDisguise&8]&7
  3.  
  4.  
  5.  
  6.  
  7. command /mobdisguise <text>:
  8. usage: /mobdisguise <on/off>
  9. permission: skript.op
  10. trigger:
  11. if arg-1 is "on" or "enable":
  12. set {mobdisguise} to true
  13. send "{@P} Mob Disguise Enabled!"
  14. else if arg-1 is "off" or "disable":
  15. delete {mobdisguise}
  16. send "{@P} Mob Disguise Disabled!"
  17. loop {mdisguised::*}:
  18. command "/undisguiseplayer %loop-value%"
  19. delete {mdisguised::*}
  20. delete {mdisguise::*}
  21. delete {disguisetimer::*}
  22.  
  23. on death:
  24. {mobdisguise} is true
  25. victim is not a player
  26. attacker is a player
  27. set {mdisguised::%attacker%} to "%attacker%"
  28. if victim is a snow golem:
  29. set {mdisguise::%attacker%::disguise} to "snowman"
  30. else if victim is an iron golem:
  31. set {mdisguise::%attacker%::disguise} to "irongolem"
  32. else if victim is a zombie pigman:
  33. set {mdisguise::%attacker%::disguise} to "pigzombie"
  34. else if victim is a magma cube:
  35. set {mdisguise::%attacker%::disguise} to "magmacube"
  36. else if victim is a cave spider:
  37. set {mdisguise::%attacker%::disguise} to "cavespider"
  38. else if victim is a mooshroom:
  39. set {mdisguise::%attacker%::disguise} to "mushroomcow"
  40. else if victim is an ender dragon:
  41. set {mdisguise::%attacker%::disguise} to "enderdragon"
  42. else:
  43. set {mdisguise::%attacker%::disguise} to "%victim%"
  44. set {disguisetimer::%attacker%} to 90
  45. command "/disguiseplayer %attacker% %{mdisguise::%attacker%::disguise}%"
  46. send "{@P} You are now disguised as a %{mdisguise::%attacker%::disguise}%." to attacker
  47.  
  48. every 5 seconds:
  49. {mobdisguise} is true
  50. loop {mdisguised::*}:
  51. remove 5 from {disguisetimer::%loop-value%}
  52. if {disguisetimer::%loop-value%} is 0:
  53. command "/undisguiseplayer %loop-value%"
  54. delete {disguisetimer::%loop-value%}
  55. delete {mdisguise::%loop-value%}
  56. delete {mdisguised::%loop-value%}
  57. send "{@P} You are no longer disguised." to ("%loop-value%" parsed as player)
  58.  
  59. on join:
  60. {mobdisguise} is true
  61. wait 5 ticks
  62. {mdisguise::%player%::disguise} is set
  63. command "/disguiseplayer %player% %{mdisguise::%player%::disguise}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement