Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- if victim is in world "Lobby":
- if {lobbygame::pvp::%victim%} is true:
- if {lobbygame::pvp::%attacker%} is true:
- set {last.hit.%victim%} to attacker
- # cancel event
- set health of victim to 15
- if attacker's held item is iron sword:
- if {combat::cooldown::%victim%} is true:
- stop
- else:
- add -4 to {combat::health::%victim%}
- set {combat::cooldown::%victim%} to true
- wait 10 ticks
- set {combat::cooldown::%victim%} to false
- else:
- if {combat::cooldown::%victim%} is true:
- stop
- else:
- add -1 to {combat::health::%victim%}
- set {combat::cooldown::%victim%} to true
- wait 10 ticks
- set {combat::cooldown::%victim%} to false
- set action bar of victim to "&7Deine Leben: &e%{combat::health::%victim%}%"
- # set title of victim to "&7" and subtitle to "&c%{combat::health::%victim%}% &4❤"
- send victim title "&7" with subtitle "&c%{combat::health::%victim%}% &4❤" for 0.5 seconds
- else:
- cancel event
- else:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement