Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&7MobDisguise&8]&7
- command /mobdisguise <text>:
- usage: /mobdisguise <on/off>
- permission: skript.op
- trigger:
- if arg-1 is "on" or "enable":
- set {mobdisguise} to true
- send "{@P} Mob Disguise Enabled!"
- else if arg-1 is "off" or "disable":
- delete {mobdisguise}
- send "{@P} Mob Disguise Disabled!"
- loop {mdisguised::*}:
- command "/undisguiseplayer %loop-value%"
- delete {mdisguised::*}
- delete {mdisguise::*}
- delete {disguisetimer::*}
- on death:
- {mobdisguise} is true
- victim is not a player
- attacker is a player
- set {mdisguised::%attacker%} to "%attacker%"
- if victim is a snow golem:
- set {mdisguise::%attacker%::disguise} to "snowman"
- else if victim is an iron golem:
- set {mdisguise::%attacker%::disguise} to "irongolem"
- else if victim is a zombie pigman:
- set {mdisguise::%attacker%::disguise} to "pigzombie"
- else if victim is a magma cube:
- set {mdisguise::%attacker%::disguise} to "magmacube"
- else if victim is a cave spider:
- set {mdisguise::%attacker%::disguise} to "cavespider"
- else if victim is a mooshroom:
- set {mdisguise::%attacker%::disguise} to "mushroomcow"
- else if victim is an ender dragon:
- set {mdisguise::%attacker%::disguise} to "enderdragon"
- else:
- set {mdisguise::%attacker%::disguise} to "%victim%"
- set {disguisetimer::%attacker%} to 90
- command "/disguiseplayer %attacker% %{mdisguise::%attacker%::disguise}%"
- send "{@P} You are now disguised as a %{mdisguise::%attacker%::disguise}%." to attacker
- every 5 seconds:
- {mobdisguise} is true
- loop {mdisguised::*}:
- remove 5 from {disguisetimer::%loop-value%}
- if {disguisetimer::%loop-value%} is 0:
- command "/undisguiseplayer %loop-value%"
- delete {disguisetimer::%loop-value%}
- delete {mdisguise::%loop-value%}
- delete {mdisguised::%loop-value%}
- send "{@P} You are no longer disguised." to ("%loop-value%" parsed as player)
- on join:
- {mobdisguise} is true
- wait 5 ticks
- {mdisguise::%player%::disguise} is set
- command "/disguiseplayer %player% %{mdisguise::%player%::disguise}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement