on damage:
if victim is player:
if attacker is player:
set damage to damage * {pdmg.%attacker%} * {dmgl.%attacker%} * {ochr.%victim%}
chance of {kryt.%attacker%}%:
set damage to damage * {pdmg.%attacker%} * {dmgl.%attacker%} * {ochr.%victim%} * 2
play raw sound "mob.enderdragon.hit" at player with pitch 1.3 volume 10
chance of {blok.%victim%}%:
set damage to 0
if {heal.%victim%} is set:
chance of {heal.%victim%}%:
apply instant health 1 to the victim for 1 second
play raw sound "mob.blaze.death" at player with pitch 2 volume 10
else:
if attacker is not a player:
set damage to damage * {ochr.%victim%}
chance of {blok.%victim%}%:
set damage to 0
if {heal.%victim%} is set:
chance of {heal.%victim%}%:
apply instant health 1 to the victim for 1 second
play raw sound "mob.blaze.death" at player with pitch 2 volume 10
else:
if attacker is player:
set damage to damage * {pdmg.%attacker%} * {dmgp.%attacker%}
Pytanie
KrisSx 30
Co w tym jest zle?
on damage: if victim is player: if attacker is player: set damage to damage * {pdmg.%attacker%} * {dmgl.%attacker%} * {ochr.%victim%} chance of {kryt.%attacker%}%: set damage to damage * {pdmg.%attacker%} * {dmgl.%attacker%} * {ochr.%victim%} * 2 play raw sound "mob.enderdragon.hit" at player with pitch 1.3 volume 10 chance of {blok.%victim%}%: set damage to 0 if {heal.%victim%} is set: chance of {heal.%victim%}%: apply instant health 1 to the victim for 1 second play raw sound "mob.blaze.death" at player with pitch 2 volume 10 else: if attacker is not a player: set damage to damage * {ochr.%victim%} chance of {blok.%victim%}%: set damage to 0 if {heal.%victim%} is set: chance of {heal.%victim%}%: apply instant health 1 to the victim for 1 second play raw sound "mob.blaze.death" at player with pitch 2 volume 10 else: if attacker is player: set damage to damage * {pdmg.%attacker%} * {dmgp.%attacker%}
A tu bledy:
https://imgur.com/a/4tAymip
Odnośnik do komentarza
Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi