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)
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!
Put this in a file and the final skript will look something like this.
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)
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)