Skript Version: Skript 2.2-dev36
Skript Author: Bensku
Minecraft Version: 1.8.8
---
I want to throw an axe and deal damage to player. As of now, I'm writing it to throw both with the snowball doing its damage. So I want to hide the snowball so that it can only see the axe or if anyone has a better method like throwing an axe alone can do damage please tell me.
Fork: Skellett
Full Code:
Skript Author: Bensku
Minecraft Version: 1.8.8
---
I want to throw an axe and deal damage to player. As of now, I'm writing it to throw both with the snowball doing its damage. So I want to hide the snowball so that it can only see the axe or if anyone has a better method like throwing an axe alone can do damage please tell me.
Fork: Skellett
Full Code:
Code:
on left click:
event-item is stone axe named "&cThrowing Axe":
set {_loc} to location above player
drop player's tool at {_loc} without velocity
remove axe from player's tool
set {_axe} to last dropped item
push {_axe} in direction of player at speed 1.2
make player shoot snowball at speed 1
play sound "WITHER_SHOOT" to player with volume 1 and pitch 5
on damage:
projectile is snowball:
play sound "SUCCESSFUL_HIT" to attacker with volume 1 and pitch 5
set {_dmg} to random number between 1 and 3.5
damage victim by {_dmg}