Jump to content

How do you Put a item in your inventory and right click it to do a command


las328
 Share

Recommended Posts

How do you Put a item in your inventory and right click it to do a command

Thanks for feedback.

<VIP RANK :)>

<PRO SKRIPT developer>

<MVP++ Hypixel Rank>

<JAVA Developer since 2021>

<BUKKIT JAVA Developer since 2021>

<SKRIPT Developer since 2017>

[OWNER] - BrokerArrow (Beta)

Link to comment
Share on other sites

PLEASE REPLLLLYYY 

<VIP RANK :)>

<PRO SKRIPT developer>

<MVP++ Hypixel Rank>

<JAVA Developer since 2021>

<BUKKIT JAVA Developer since 2021>

<SKRIPT Developer since 2017>

[OWNER] - BrokerArrow (Beta)

Link to comment
Share on other sites

I dont fully understand your question but this command will give you a stick and a right click event with stick will activate stuff

command /stick:
  trigger:
    give stick to the player

on right click:
  player is holding a stick:
    send "You clicked with a stick!"
    make player execute command "a command here"

change the 'a command here' to the command and you can remove the send to not send a message

  • Like 1
Link to comment
Share on other sites

I made the Skript more efficient and shorter as you can now specify the player to give the item too.

command /stick [<offline player>]:
    permission: op
    trigger:
        set arg-1 to {_p}
        give {_p} 1 of stick

on right click with stick:
    make player execute command "command"

Replace command in the quotes with whatever command you wish.
Make sure to watch Minehut Skript tutorials or some type if 
your starting off and need help quickly.

tutorials: https://www.youtube.com/playlist?list=PL34SSaSWNChTFvDSspJ56Tvm5sH4sS4mn

 

Active Minehut Player since 2016

Advanced at Skript - Know a lot about running a server 

If you need help with anything contact me @ KJPAKA#0001

 

Link to comment
Share on other sites

its on join at the first and its giving me errors

 

Edited by las328

<VIP RANK :)>

<PRO SKRIPT developer>

<MVP++ Hypixel Rank>

<JAVA Developer since 2021>

<BUKKIT JAVA Developer since 2021>

<SKRIPT Developer since 2017>

[OWNER] - BrokerArrow (Beta)

Link to comment
Share on other sites

options:
	item: stick named "&cnerd"
	command: command

on join:
	give player {@item}

on right click:
	execute console command "{@command}" if player's tool is {@item}

 

VIP since January 7th, 2020

Support since September 19th, 2020

Helper since November 3rd, 2020

Moderator since March 8th, 2021

unknown.png

5.png.e14b1bf83edf0ac2edc1bfb822177184.png

image.png.fe30b7b2c0be5a541ba4ed2187b23030.png

Link to comment
Share on other sites

  • 4 months later...

i have an issue where the right click event doesnt work. heres my code:

command /modmode:
    trigger:
        execute console command "/give %player% netherite_axe 1 name:&cBan Hammer"
        on right click:
            player is holding a netherite axe:
                execute player command "/ban %clicked player%"

it doesnt work, it says "cant understand this condition: 'on right click'

its not a condition tho pls help :c

Link to comment
Share on other sites

Topic Locked. 🔒

Please do not reply on threads that have been inactive for more than a month!

𝚄𝚗𝚝𝚛𝚎𝚊𝚝𝚎𝚍

𝔻𝕚𝕤𝕔𝕠𝕣𝕕: @𝕌𝕟𝕥𝕣𝕖𝕒𝕥𝕖𝕕#𝟘𝟘𝟘𝟙

News & Updates  Rules • Helper Application

Reports • Appeals

𝚂𝚝𝚊𝚏𝚏 𝚘𝚗 𝙼𝚒𝚗𝚎𝚑𝚞𝚝 𝚜𝚒𝚗𝚌𝚎 𝙹𝚞𝚗𝚎 𝟹𝟶𝚝𝚑, 𝟸𝟶𝟸𝟶

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...