Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- cancel event
- if {debounce::%victim%} is not set:
- set {debounce::%victim%} to "false"
- if {debounce::%victim%} is "false":
- set {debounce::%victim%} to "true"
- if {health::%victim%} is not set:
- set {health::%victim%} to 10
- remove 1 from {health::%victim%}
- play hurt at player
- message "&cYou've taken 1Hp of damage!" to victim
- wait 1 second
- set {debounce::%victim%} to "false"
- if {health::%victim%} is set:
- if {health::%victim%} is greater than 1:
- remove 1 from {health::%victim%}
- play hurt at player
- message "&cYou've taken 1Hp of damage!" to victim
- wait 1 second
- set {debounce::%victim%} to "false"
- else if {health::%victim%} is less than or equal to 1:
- remove 1 from {health::%victim%}
- play hurt at player
- if victim is in world "world":
- teleport victim to location -1684, 66, 62 in world "world"
- message "&4&lYou have died!" to victim
- set {health::%victim%} to 10
- extinguish the victim
- wait 1 second
- set {debounce::%victim%} to "false"
- if victim is in world "raid":
- teleport victim to location -1684, 66, 62 in world "raid"
- message "&4&lYou have died!" to victim
- set {health::%victim%} to 10
- extinguish the victim
- wait 1 second
- set {debounce::%victim%} to "false"
- else if {debounce::%victim%} is "true":
- stop
- else if {debounce::%victim%} is set:
- if {debounce::%victim%} is "false":
- set {debounce::%victim%} to "true"
- if {health::%victim%} is not set:
- set {health::%victim%} to 10
- remove 1 from {health::%victim%}
- play hurt at player
- message "&cYou've taken 1Hp of damage!" to victim
- wait 1 second
- set {debounce::%victim%} to "false"
- if {health::%victim%} is set:
- if {health::%victim%} is greater than 1:
- remove 1 from {health::%victim%}
- play hurt at player
- message "&cYou've taken 1Hp of damage!" to victim
- wait 1 second
- set {debounce::%victim%} to "false"
- else if {health::%victim%} is less than or equal to 1:
- remove 1 from {health::%victim%}
- play hurt at player
- if victim is in world "world":
- teleport victim to location -1684, 66, 62 in world "world"
- message "&4&lYou have died!" to victim
- set {health::%victim%} to 10
- extinguish the victim
- wait 1 second
- set {debounce::%victim%} to "false"
- if victim is in world "raid":
- teleport victim to location -1684, 66, 62 in world "raid"
- message "&4&lYou have died!" to victim
- set {health::%victim%} to 10
- extinguish the victim
- wait 1 second
- set {debounce::%victim%} to "false"
- else if {debounce::%victim%} is "true":
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement