Evanbeer Posted August 13, 2021 Share Posted August 13, 2021 (edited) I would like it to be if u do "/lootcrate open" it will open a gui chest and you can put items in it. (u need the permission permission.lootcrate) when you right click a stick (i can change it myself) it wil give 3 random item out that gui chest. If u can make this i would be sooo happy! pls dm me on discord Evanbeer#0001 cuz i read my discord more often then the minehut forums. Edited August 14, 2021 by Evanbeer Link to comment Share on other sites More sharing options...
Evanbeer Posted August 14, 2021 Author Share Posted August 14, 2021 (edited) This is what i have: on right click: if name of player's tool is "&dLegendary Crate" remove 1 of tool from player's held item function random(p: player): set {_random} to random integer between 1 and 2 if {_random} is 1: send "&dYey! &fYou found diamond!" to {_p} give {_p} 1 diamond named "&6Gem if {_random} is 2: send "&dYey! &fYou found diamond!" to {_p} give {_p} 2 diamond named "&6Gem But it will take the crate and dont give items this are the errors: Edited August 14, 2021 by Evanbeer Link to comment Share on other sites More sharing options...
Lapzzo Posted August 14, 2021 Share Posted August 14, 2021 on right click: if name of player's tool is "&dLegendary Crate": remove 1 of tool from player's held item function random(p: player): set {_random} to random integer between 1 and 2 if {_random} is 1: send "&dYey! &fYou found diamond!" to {_p} give {_p} 1 diamond named "&6Gem if {_random} is 2: send "&dYey! &fYou found diamond!" to {_p} give {_p} 2 diamond named "&6Gem Link to comment Share on other sites More sharing options...
Lapzzo Posted August 14, 2021 Share Posted August 14, 2021 Tell me if that work's ^ Link to comment Share on other sites More sharing options...
Lapzzo Posted August 14, 2021 Share Posted August 14, 2021 Never mind try this: on right click: if name of player's tool is "&dLegendary Crate": remove 1 of player's held item function random(p: player): set {_random} to random integer between 1 and 2 if {_random} is 1: send "&dYey! &fYou found diamond!" to {_p} give {_p} 1 diamond named "&6Gem" if {_random} is 2: send "&dYey! &fYou found diamond!" to {_p} give {_p} 2 diamond named "&6Gem" Link to comment Share on other sites More sharing options...
Evanbeer Posted August 14, 2021 Author Share Posted August 14, 2021 On 8/13/2021 at 2:58 PM, Evanbeer said: I would like it to be if u do "/lootcrate open" it will open a gui chest and you can put items in it. (u need the permission permission.lootcrate) when you right click a stick (i can change it myself) it wil give 3 random item out that gui chest. If u can make this i would be sooo happy! pls dm me on discord Evanbeer#0001 cuz i read my discord more often then the minehut forums. i am gonna test it Link to comment Share on other sites More sharing options...
Evanbeer Posted August 14, 2021 Author Share Posted August 14, 2021 but now you cant place anything or wear any armor or any right click you know a fix? Link to comment Share on other sites More sharing options...
Evanbeer Posted August 14, 2021 Author Share Posted August 14, 2021 i fixed ALL the spaces but it still won't work Link to comment Share on other sites More sharing options...
Evanbeer Posted August 14, 2021 Author Share Posted August 14, 2021 (edited) one error remaining but when i fix the error it won't even do this part anymore: on right click: if name of player's tool is "&dLegendary Crate": remove 1 of tool from player's held item It won't remove the item out the players hand Edited August 14, 2021 by Evanbeer Link to comment Share on other sites More sharing options...
Lapzzo Posted August 14, 2021 Share Posted August 14, 2021 Let me re-skript this. One moment Link to comment Share on other sites More sharing options...
Lapzzo Posted August 14, 2021 Share Posted August 14, 2021 Try this: on right click: if name of player's tool is "&dLegendary Crate": remove 1 of player's held item set {_random} to random integer between 1 and 2 if {_random} is 1: send "&dYey! &fYou found diamond!" to player give player 1 diamond named "&6Gem" if {_random} is 2: send "&dYey! &fYou found diamond!" to player give player 2 diamond named "&6Gem" Link to comment Share on other sites More sharing options...
Evanbeer Posted August 15, 2021 Author Share Posted August 15, 2021 but now you cant place anything or wear any armor or any right click you know a fix? Link to comment Share on other sites More sharing options...
Evanbeer Posted August 15, 2021 Author Share Posted August 15, 2021 and still one error Link to comment Share on other sites More sharing options...
pnguin Posted August 15, 2021 Share Posted August 15, 2021 oof I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
Lapzzo Posted August 15, 2021 Share Posted August 15, 2021 With this skript, you cant wear it, and everything works! on right click: if name of player's tool is "&dLegendary Crate": cancel event remove 1 of player's held item from player's inventory set {_random} to random integer between 1 and 2 if {_random} is 1: send "&dYey! &fYou found diamond!" to player give player 1 diamond named "&6Gem" if {_random} is 2: send "&dYey! &fYou found diamond!" to player give player 2 diamond named "&6Gem" Link to comment Share on other sites More sharing options...
Lapzzo Posted August 15, 2021 Share Posted August 15, 2021 This should work better! on right click: if name of player's tool is "&dLegendary Crate": cancel event set {_random} to random integer between 1 and 2 if {_random} is 1: send "&dYey! &fYou found diamond!" to player give player 1 diamond named "&6Gem" remove 1 of player's held item from player's inventory if {_random} is 2: send "&dYey! &fYou found 2 diamonds!" to player give player 2 diamond named "&6Gem" remove 1 of player's held item from player's inventory Link to comment Share on other sites More sharing options...
Lapzzo Posted August 15, 2021 Share Posted August 15, 2021 Nevermind, ignore all the past skripts, this one is tested 100% to work. on right click: if name of player's tool is "&dLegendary Crate": set {_random} to random integer between 1 and 2 if {_random} is 1: send "&dYey! &fYou found diamond!" to player give player 1 diamond named "&6Gem" remove 1 of player's held item from player's inventory else: if {_random} is 2: send "&dYey! &fYou found 2 diamonds!" to player give player 2 diamond named "&6Gem" remove 1 of player's held item from player's inventory Link to comment Share on other sites More sharing options...
Evanbeer Posted August 15, 2021 Author Share Posted August 15, 2021 But if you use else i cant add more and you cant wear any clothes or place anything do to the on right click Link to comment Share on other sites More sharing options...
Lapzzo Posted August 15, 2021 Share Posted August 15, 2021 16 minutes ago, Evanbeer said: But if you use else i cant add more and you cant wear any clothes or place anything do to the on right click Not the case for me. You can add multiple elses Link to comment Share on other sites More sharing options...
Evanbeer Posted August 15, 2021 Author Share Posted August 15, 2021 But you still cant build anymore cuz the on right click: Link to comment Share on other sites More sharing options...
Pryzmm Posted August 15, 2021 Share Posted August 15, 2021 3 hours ago, Evanbeer said: But you still cant build anymore cuz the on right click: i dont see anything that would stop you from building? 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 More sharing options...
Lapzzo Posted August 15, 2021 Share Posted August 15, 2021 2 hours ago, AgentGamerPro said: i dont see anything that would stop you from building? Ikr? Im confused, nothing in the skripts is stopping you from building Link to comment Share on other sites More sharing options...
Lapzzo Posted August 16, 2021 Share Posted August 16, 2021 18 hours ago, Evanbeer said: But you still cant build anymore cuz the on right click: The on right click only triggers if the player is holding an item named "&dLegendary Crate" Link to comment Share on other sites More sharing options...
AbusingNub Posted August 16, 2021 Share Posted August 16, 2021 Has this been solved? --- 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...
Lapzzo Posted August 16, 2021 Share Posted August 16, 2021 10 hours ago, AbusingNub said: Has this been solved? The skript 100% works, so I guess so 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