Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click with sword:
- {c.%player%} is not set
- set {c.%player%} to true
- remove slowness from player
- apply slowness of tier 4 to player for 10000 seconds and ambient true hide particle effects false
- play sound "item.armor.equip_generic" with volume 1 and pitch 1 at player
- wait a second
- peanut(player)
- on damage:
- {c.%victim%} is true
- loop entities in radius 5 around the victim:
- loop-entity is attacker
- cancel event
- damage victim's tool by 3
- damage attacker by damage * 2 hearts
- push the attacker upwards at speed 0.3
- push the attacker forwards at speed -1.0
- play sound "entity.player.attack.sweep" with volume 1 and pitch 1 at victim
- wait a tick
- play sound "entity.player.attack.sweep" with volume 1 and pitch 1.5 at victim
- peanut(victim)
- loop 3 times:
- show 5 sweep attack particles at attacker offset by 0, 0.5, 0
- wait a tick
- on tool change:
- {c.%player%} is true
- peanut(player)
- function peanut(p: player):
- remove slowness from {_p}
- wait a second
- delete {c.%{_p}%}
- command /a:
- trigger:
- loop entities in radius 7 around player:
- broadcast "%loop-entity%"
Advertisement
Add Comment
Please, Sign In to add comment