WildX Posted August 12, 2021 Share Posted August 12, 2021 I need help with making it so when i click on an item it runs a command that isnt just "set weather clear" for example I want to be able to click on a spawner in the gui and it runs the command "/us givespawner _Wild_IQ cow" hope someone can help Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 How should the gui look? Place a chest in mc and make it how you want the gui to look then send the inside of the chest here Link to comment Share on other sites More sharing options...
WildX Posted August 12, 2021 Author Share Posted August 12, 2021 Link to comment Share on other sites More sharing options...
WildX Posted August 12, 2021 Author Share Posted August 12, 2021 1 hour ago, Lapzzo said: How should the gui look? Place a chest in mc and make it how you want the gui to look then send the inside of the chest here Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 what item should they rightclick? Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 Oh nevermind, this should work: command /spawner: trigger: wait 1 tick open chest with 3 rows named "&5&lShop" to player set slot 13 of player with monster spawner named "Cow" to close then run "/us givespawner _Wild_IQ cow" Link to comment Share on other sites More sharing options...
WildX Posted August 12, 2021 Author Share Posted August 12, 2021 3 minutes ago, Lapzzo said: what item should they rightclick? a moster spawner Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 Is what I posted above what u needed? Link to comment Share on other sites More sharing options...
WildX Posted August 12, 2021 Author Share Posted August 12, 2021 Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 Im not sure Link to comment Share on other sites More sharing options...
WildX Posted August 12, 2021 Author Share Posted August 12, 2021 3 minutes ago, Lapzzo said: Im not sure I did it on a different skript and this error message popped up Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 I never got that error Link to comment Share on other sites More sharing options...
WildX Posted August 12, 2021 Author Share Posted August 12, 2021 Just now, Lapzzo said: I never got that error i was copping it from the message imma type it out and see if that works Link to comment Share on other sites More sharing options...
WildX Posted August 12, 2021 Author Share Posted August 12, 2021 7 minutes ago, Lapzzo said: I never got that error is it just the skript plugin that i need or is there another one. the skript plugins i have rn are: Skript SKQuery SKRayfall TuSKe Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 I have all of those, but I also have skellette Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 Skellett* Link to comment Share on other sites More sharing options...
WildX Posted August 12, 2021 Author Share Posted August 12, 2021 33 minutes ago, Lapzzo said: Skellett* Yea it still give me the same error message Link to comment Share on other sites More sharing options...
Lapzzo Posted August 12, 2021 Share Posted August 12, 2021 Im not sure then sorry 1 Link to comment Share on other sites More sharing options...
AbusingNub Posted August 12, 2021 Share Posted August 12, 2021 (edited) command /spawner: trigger: wait 1 tick open chest inventory with 3 rows named "&5&lShop" to player set slot 13 of player's current inventory to spawner named "&9COW" on inventory click: if name of player's current inventory contains "&5&lShop": cancel event if index of event-slot is 13: execute console command "us givespawner _Wild_IQ cow" send "&7Received &9COW &7spawner!" Should work Hope this helps This script can easily be changed to better suit an economy based server, for example the spawner could cost 1500 in-game money, and on inventory click it will check the balance of the player and remove the cost of the spawner from their balance. Edited August 12, 2021 by AbusingNub 1 1 --- AbusingNub --- -- Owner of the DevilsNetwork -- ◉ DevilsPvP.minehut.gg ◉ BridgesWar.minehut.gg Here to lend a helping hand. Link to comment Share on other sites More sharing options...
WildX Posted August 13, 2021 Author Share Posted August 13, 2021 13 hours ago, AbusingNub said: command /spawner: trigger: wait 1 tick open chest inventory with 3 rows named "&5&lShop" to player set slot 13 of player's current inventory to spawner named "&9COW" on inventory click: if name of player's current inventory contains "&5&lShop": cancel event if index of event-slot is 13: execute console command "us givespawner _Wild_IQ cow" send "&7Received &9COW &7spawner!" Should work Hope this helps This script can easily be changed to better suit an economy based server, for example the spawner could cost 1500 in-game money, and on inventory click it will check the balance of the player and remove the cost of the spawner from their balance. thank you this worked perfectly! 1 1 Link to comment Share on other sites More sharing options...
Lapzzo Posted August 13, 2021 Share Posted August 13, 2021 13 hours ago, AbusingNub said: command /spawner: trigger: wait 1 tick open chest inventory with 3 rows named "&5&lShop" to player set slot 13 of player's current inventory to spawner named "&9COW" on inventory click: if name of player's current inventory contains "&5&lShop": cancel event if index of event-slot is 13: execute console command "us givespawner _Wild_IQ cow" send "&7Received &9COW &7spawner!" Should work Hope this helps This script can easily be changed to better suit an economy based server, for example the spawner could cost 1500 in-game money, and on inventory click it will check the balance of the player and remove the cost of the spawner from their balance. Thanks for the help! 1 Link to comment Share on other sites More sharing options...
AbusingNub Posted August 14, 2021 Share Posted August 14, 2021 13 hours ago, WildX said: thank you this worked perfectly! No worries! Let me know if you need anymore help --- AbusingNub --- -- Owner of the DevilsNetwork -- ◉ DevilsPvP.minehut.gg ◉ BridgesWar.minehut.gg Here to lend a helping hand. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now