Solved Throwing Axe & Invisible Snowball

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

t34rdrops

Member
Mar 15, 2022
1
0
1
24
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:
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}
 
Status
Not open for further replies.