AgentGamerPro Posted March 27, 2021 Share Posted March 27, 2021 (edited) I can't seem to find the GUI slot while using the function. Heres my skript: on right click on villager: if display name of villager is "Blacksmith": open chest with 3 rows named "&7&lSmithing GUI" to player ... # other stuff here that dosent matter to the problem at hand format slot 14 of player with anvil named "&8&lSmithing Tool" with lore "&a", "&7Put a item in the empty slot", "&7and click the anvil.", "&a", "&7This will add a bonus to your", "&7selected item." , "&a" and "&c&lWARNING: IRREVERSIBLE" to run [SmithTest(player)] function SmithTest(p: player): set {_u} to uuid of {_p} set {_Item} to slot 12 of {_p} # This is the line im having problems with if {_item} is not air: give {_p} {_item} else: send "&cWrong slot :/" to {_p} I want to give the player an item when they add something to slot 12 OF THE GUI. Edited March 27, 2021 by AgentGamerPro Lifestealed | Minecraft Servers [VIP] 12/26/20 - 10/27/2021[PRO] 12/27/21 - Present Link to comment Share on other sites More sharing options...
AHelpingCandy Posted March 27, 2021 Share Posted March 27, 2021 (edited) Try changing format slot 14 of player to format gui slot 14 of player Edited March 27, 2021 by Chloe30k 2 IGN ➣ Pickey ( Soon ) Joined MineHut ➣ January 7th 2019 Joined Forums ➣ January 11th 2021 Admin on NotedGens Manager on NotedGens Developer on CropiedDeveloper on Gennow (Genable) ==========================================Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )Retired From: InvadedLands ( Moderator ) Retired From: MineTime ( Sr.Moderator ) Retired From: Hero Mines ( Helper ) Link to comment Share on other sites More sharing options...
AgentGamerPro Posted March 27, 2021 Author Share Posted March 27, 2021 1 hour ago, Chloe30k said: Try changing format slot 14 of player to format gui slot 14 of player I edited my skript to show you where im hacing my problem. The formating i use works fine but in the function i can't call out the correct slot. Lifestealed | Minecraft Servers [VIP] 12/26/20 - 10/27/2021[PRO] 12/27/21 - Present Link to comment Share on other sites More sharing options...
AHelpingCandy Posted March 28, 2021 Share Posted March 28, 2021 Ehrm, why are you making a function anyways? IGN ➣ Pickey ( Soon ) Joined MineHut ➣ January 7th 2019 Joined Forums ➣ January 11th 2021 Admin on NotedGens Manager on NotedGens Developer on CropiedDeveloper on Gennow (Genable) ==========================================Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )Retired From: InvadedLands ( Moderator ) Retired From: MineTime ( Sr.Moderator ) Retired From: Hero Mines ( Helper ) 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