Jump to content

How to use keybinding?


Mike1-481-

Recommended Posts

I don't know how to add keybinding to skript, I want to create a custom item which shoots a enderpearl when you click "x" but I don't know how to use keybinding in skript. 

My code is: 

command /Endaxe:
    trigger:
        give player 1 netherite axe named "&5&lEND AXE" with lore "" and "&b&lWe are one"

on damage:
    if name of attacker's held item is "&5&lEND AXE":
        add 200 to the damage

on pressing x holding netherite axe:
    if name of player's held item is "&5&lEND AXE":
        shoot Enderpearl at speed 5
 

Can someone please help me

Link to comment
Share on other sites

I am not 100% confident in what I am going to say.. but..

I don't think it is possible to do "keybinding" in skript currently. I could be wrong, but I can't seem to find anything to point to it existing.

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

37 minutes ago, Mike1-481- said:

I don't know how to add keybinding to skript, I want to create a custom item which shoots a enderpearl when you click "x" but I don't know how to use keybinding in skript. 

My code is: 

command /Endaxe:
    trigger:
        give player 1 netherite axe named "&5&lEND AXE" with lore "" and "&b&lWe are one"

on damage:
    if name of attacker's held item is "&5&lEND AXE":
        add 200 to the damage

on pressing x holding netherite axe:
    if name of player's held item is "&5&lEND AXE":
        shoot Enderpearl at speed 5
 

Can someone please help me

Sadly, that's not possible unless you have client-side modifications.

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...