Skript [TUTORIAL] How to make a easy and simple short bow

  • 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!

TheDever

Member
Sep 2, 2023
31
5
8
Hello, my name is TheDever and today i will be your guide for this skript. After you realize, it's pretty simple.
Anyhow, shall we get started?

To start off, we must start by giving us the short bow item (physical state of the item)
code_language.skript:
command /giveshortbow:
    permission: give.shortbow
    trigger:
        #if player has permission "give.shortbow"
        give player unbreakable bow named "&fShortbow"

This skript will give the player a short bow on the command /giveshortbow if they have permission give.shortbow .
The bow will be unbreakable and named Shortbow in the color white. (Colors codes: Website Link) (I do not own this website)

To make the short bow actually work, lets first start by coding the functionality!
code_language.skript:
on click: #left-click and right-click
    if player's held item is unbreakable bow named "&fShortbow" #Change &fShortbow to name of your bow
        cancel event #stop all actions
        shoot arrow at speed 3 #shoot a new arrow instantly

Put this in a file and the final skript will look something like this.
code_language.skript:
on click: #left-click and right-click
    if player's held item is unbreakable bow named "&fShortbow" #Change &fShortbow to name of your bow
        cancel event #stop all actions
        shoot arrow at speed 3 #shoot a new arrow instantly
        
command /giveshortbow:
    permission: give.shortbow
    trigger:
        #if player has permission "give.shortbow"
        give player unbreakable bow named "&fShortbow"

Hope that this tutorial helped some people and see you next time!

(Pretty sure you don't need any addons. Correct me if I am wrong)
 
  • Like
Reactions: Ducky_Perks