Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: <cyan>[<gray>UHC<cyan>]
- command /trapcard <text>:
- permission: skript.op
- usage: /trapcard <on/off>
- trigger:
- if arg-1 is "on":
- set {TrapCard} to true
- broadcast "{@P} <brown>Trap Card Enabled"
- loop all players:
- give loop-player 1 end stone named "Trap Card"
- if arg-1 is "off":
- delete {TrapCard}
- broadcast "{@P} <brown>Trap Card Disabled"
- loop all players:
- remove every end stone named "Trap Card" from loop-player's inventory
- #ProjectileTrap#
- on damage of a player:
- {TrapCard} is true
- damage cause is projectile
- attacker is a player
- projectile is arrow
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- apply slowness 2 to the shooter for 15 seconds
- remove every end stone named "Trap Card" from the victim's inventory
- on damage of a player:
- {TrapCard} is true
- damage cause is projectile
- attacker is a player
- projectile is arrow
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- broadcast "{@P} <white>%attacker% is located at: <red>%location of shooter%"
- remove every end stone named "Trap Card" from the victim's inventory
- on damage of a player:
- {TrapCard} is true
- damage cause is projectile
- attacker is a player
- projectile is arrow
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- spawn 1 creeper behind the shooter
- spawn 1 creeper in front of the shooter
- spawn 1 creeper right of the shooter
- spawn 1 creeper left of the shooter
- remove every end stone named "Trap Card" from the victim's inventory
- on damage of a player:
- {TrapCard} is true
- damage cause is projectile
- attacker is a player
- projectile is arrow
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- loop blocks in radius 3 around the attacker:
- set loop-block to bedrock
- wait 10 seconds
- loop blocks in radius 3 around the attacker:
- set loop-block to air
- remove every end stone named "Trap Card" from the victim's inventory
- on damage of a player:
- {TrapCard} is true
- damage cause is projectile
- attacker is a player
- projectile is arrow
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- loop blocks in radius 5 around the attacker:
- set loop-block to air
- remove every end stone named "Trap Card" from the victim's inventory
- #KillTrap#
- on death of player:
- {TrapCard} is true
- damage cause is attacker
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- apply slowness 2 to the shooter for 15 seconds
- remove every end stone named "Trap Card" from the victim's inventory
- on death of player:
- {TrapCard} is true
- damage cause is attacker
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- broadcast "{@P} <white>%attacker% is located at: <red>%location of attacker%"
- remove every end stone named "Trap Card" from the victim's inventory
- on death of player:
- {TrapCard} is true
- damage cause is attacker
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- spawn 1 creeper behind the attacker
- spawn 1 creeper in front of the attacker
- spawn 1 creeper right of the attacker
- spawn 1 creeper left of the attacker
- remove every end stone named "Trap Card" from the victim's inventory
- on death of player:
- {TrapCard} is true
- damage cause is attacker
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- loop blocks in radius 3 around the attacker:
- set loop-block to bedrock
- wait 10 seconds
- loop blocks in radius 3 around the attacker:
- set loop-block to air
- remove every end stone named "Trap Card" from the victim's inventory
- on death of player:
- {TrapCard} is true
- damage cause is attacker
- victim has 1 end stone named "Trap Card"
- wait 1 tick
- chance of 20%
- loop blocks in radius 5 around the attacker:
- set loop-block to air
- remove every end stone named "Trap Card" from the victim's inventory
- #ExtraStuff
- on death of player:
- {TrapCard} is true
- drop 1 end stone named "Trap Card" at location of victim
- on place of end stone:
- {TrapCard} is true
- cancel the event
Advertisement
Add Comment
Please, Sign In to add comment