영상: https://discord.com/channels/851306317557530646/1359117466164269077
command /duel_blade:
trigger:
give diamond sword named "&d듀얼 블레이드" to player
on arm swing:
if name of player's tool is "&d듀얼 블레이드":
if {dc.%player%} is not set:
set {dc.%player%} to true
wait 0.34 seconds
make player swing their off hand
if player's target is set:
if distance between player and player's target is less than 3:
play sound "entity.player.attack.sweep" with volume 0.15 to player
wait 0.1 seconds
delete {dc.%player%}
stop
on damage:
if name of attacker's tool is "&d듀얼 블레이드":
if {dc.%attacker%} is not set:
set {_d} to damage
wait 0.34 seconds
damage victim by {_d}
stop
애드온 필요없습니다
대충 짠 코드라 make player swing their [main/off] hand 라는 구문이 있다 정도만 보시면 될듯