CREAMPAN0408

Untitled

Feb 3rd, 2019
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. on rightclick holding iron sword:
  2. attacker's tool is "標の太刀"
  3. player is sprinting
  4. loop living entities in radius 3 around the block 4 meter infront of the player:
  5. loop-entity is not player
  6. wait a tick
  7. create fake fake lightning at loop-entity
  8. set {_target} to location of loop-entity to vector
  9. set {_player} to location of player to vector
  10. set {_vector} to vector {_target} - {_player}
  11. set velocity of player to {_vector}
  12. set {_damage} to health of loop-entity
  13. set {_damage} to {_damage} *1/4
  14. damage loop-entity by {_damage}+2
  15. stop
  16.  
  17. on damage:
  18. attacker is holding iron sword
  19. attacker's tool is "標の太刀"
  20. if {combo.%attacker%} is more than 0:
  21. set damage to damage * (1+{combo.%attacker%}/4)
  22. message "<light aqua>Combo!! +%{combo.%attacker%}% %damage%damage!" to attacker
  23. message "<pink>Combo!! +%{combo.%attacker%}%" to victim
  24. set {combo.%attacker%} to {combo.%attacker%} + 1
  25. set {_combo} to {combo.%attacker%}
  26. wait 15 ticks
  27. if {_combo} is {combo.%attacker%}:
  28. set {combo.%attacker%} to 0
Add Comment
Please, Sign In to add comment