#ChestShop Preview
1 messages · Page 1 of 1 (latest)
Should be you would just need to check during the on leftclick event, if the target block is a sign and if the player is sneaking (pretty sure its literally event-player is sneaking) and then use a skript gui addon to open the gui with the item wherever (assuming you have the shop item stored in a variable)
Sadly i dont know how to make a Script like it. Can you give me an example for it?
I would recommend looking at documentation, us giving you the code isnt really helpful :D Here is links I think are useful:
https://skripthub.net/docs/?id=7929
https://skripthub.net/docs/?id=1094
https://skripthub.net/docs/?id=1163
Sections that will run when a user opens or closes the GUI. This section is optional.
Called when a user clicks on a block, an entity or air with or without an item in their hand.
Please note that rightclick events with an empty hand while not looking at a block are not sent to the server, so there's no way to detect them.
Also note that a leftclick on an entity is an attack and thus not covered by the 'click' event, but the 'dam...