Jump to content

Help with on inventory click event


Mrbizarre

Recommended Posts

So i have a skript this is the first line

on inventory click:

    #my code

but it doesnt work cause it works but you have to pick up the item then place it for it to register in ur inv.

so like the #my code wont work endless you pick the stone up in ur inv and place it in ur inv

how can i make it where its just when you hold it with you mouse like

on inventory click:

    if item is held with mouse: # idk howw to do this pls help

i want it to be kinda like this but i have no idea how

https://skripthub.net/docs/?id=519

Edited by Mrbizarre
adding more detail
Link to comment
Share on other sites

This might not be possible without an addon. Maybe try the addon recommended in the docs? (skellet)

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

On 12/4/2021 at 8:17 PM, Mrbizarre said:

So i have a skript this is the first line

on inventory click:

    #my code

but it doesnt work cause it works but you have to pick up the item then place it for it to register in ur inv.

so like the #my code wont work endless you pick the stone up in ur inv and place it in ur inv

how can i make it where its just when you hold it with you mouse like

on inventory click:

    if item is held with mouse: # idk howw to do this pls help

i want it to be kinda like this but i have no idea how

https://skripthub.net/docs/?id=519

try this

if cursor is grass block:

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

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...