Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of player:
- set {_loc} to the location 1 meter above the victim
- drawDot count 5, particle "blockcrack", material redstone block, XYZ 0, 0, 0, center {_loc}, visibleRange 320, pulseDelay 0, keepFor 10 ticks
- if {combat.tag.%attacker%} is false:
- send "{@prefix}Tagged in combat for 15 seconds. Don't log out" to attacker
- set {combat.tag.%attacker%} to true
- wait 15 seconds
- set {combat.tag.%attacker%} to false
- set {combat.tag.%victim%} to false
- stop
- if {combat.tag.%victim%} is false:
- send "{@prefix}Tagged in combat for 15 seconds. Don't log out" to victim
- set {combat.tag.%victim%} to true
- wait 15 seconds
- set {combat.tag.%attacker%} to false
- set {combat.tag.%victim%} to false
- on command:
- command is equal to "spawn", "back", "tpa" or "home"
- if {combat.tag.%player%} is true:
- message "{@prefix}You can't teleport while tagged in combat"
- cancel event
- On quit:
- if {combat.tag.%player%} is true:
- kill player
- broadcast "{@prefix}%player% was killed for combat logging."
- if {consent.%player%} is true:
- set {consent.%player%} to false
- on right click holding a Sugar:
- make console execute command "/effect %player% speed 10 2"
- remove 1 sugar from the player's tool
- message "&aYou feel as if you are able to move more swiftly after eating that sugar!"
- stop
- on right click holding a Blaze_Powder:
- make console execute command "/effect %player% fire_resistance 20 1"
- remove 1 Blaze_Powder from the player's tool
- message "&cYou feel as if you are able to jump in lava and not burn to death!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment