Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick holding wooden sword:
- player's tool is enchanted with unbreaking 2
- loop living entities in radius 2 around the block 1 meter infront of the player:
- loop-entity is not player
- wait a tick
- push player forward at speed 2
- 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
Add Comment
Please, Sign In to add comment