Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick holding iron sword:
- attacker's tool is "標の太刀"
- player is sprinting
- loop living entities in radius 3 around the block 4 meter infront of the player:
- loop-entity is not player
- wait a tick
- create fake fake lightning at loop-entity
- set {_target} to location of loop-entity to vector
- set {_player} to location of player to vector
- set {_vector} to vector {_target} - {_player}
- set velocity of player to {_vector}
- set {_damage} to health of loop-entity
- set {_damage} to {_damage} *1/4
- damage loop-entity by {_damage}+2
- stop
- on damage:
- attacker is holding iron sword
- if {combo.%attacker%} is more than 0:
- set damage to damage * (1+{combo.%attacker%}/4)
- message "<light aqua>Combo!! +%{combo.%attacker%}% %damage%damage!" to attacker
- message "<pink>Combo!! +%{combo.%attacker%}%" to victim
- set {combo.%attacker%} to {combo.%attacker%} + 1
- set {_combo} to {combo.%attacker%}
- wait 15 ticks
- if {_combo} is {combo.%attacker%}:
- set {combo.%attacker%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement