you can create one with spreadplayers command: spreadplayers 0 0 0 1 (so, 0 is X and 2th 0 is Z. 0 is min range, 1 is max range. 3×3 block) @e[type=armor_stand,scores={randomcrate1=1..,crate=1}]. with this command, the armor stand have score randomcrate more than 1 and score crate is 1 (randomcrate is Scoreboard Random, Random Chest Clone. crate is .. Common Crate = 1, Rare Crate = 2..) will be random tped to 3×3 blocks (total 9blocks) and then with another command scoreboard to remove Its score randomcrate by 1. If its score = 0 then clone the chest at it coordinates. (so you will use execute ... run clone ~ y_coordinate ~ ~ y_coordinate ~ crate coordinates). Its Maybe hard to understand. (if you have any question, comment down below)
oh I forgot. So when you put Crate Key inside the chest, It'll random randomcrate num num to armor stand (I recommend to use this command: execute as @e[type=armor_stand,scores={randomcrate=-1,crate=1}] at @s if blocks ~ -60 ~ ~ -60 ~ ~ -55 ~ all run command. So it'll test if block (chest at ~ -55 ~) to block (chest at ~ -60 ~) if it's true then it'll run commands. You can do another way Like the video)
i just found your channel and you've helped me so much. I am making a server for me and my friends and i wanted to have crates just like this. thank you again
I managed to do it and even found my own errors by looking back at this video awesome tutorials. Question, let's say you want to make different create keys, like a common, rare, and legendary one. How would you do it?
Love that you fixed it! In order to do different keys like a rare common etc. just make multiple sets of command areas. And in that chest where you insert what type of key to get the items, add different names ones! Hope I explained that well
If you want to add more random chest but the armorstand makes the game more laggy you can use one armorstand and scoreboard command. 1. make a dummy randomcrates 2. name one armorstand randomcrates (it can be anyting) 3. place a command block then connect any out put to a orange command block that says; /scoreboard players random @e[name=randomcrates] 1 9 4. 1 9 is the range 1-9, if you want to make 20 crates then make the range (1 20) 5. next make a repeating command alwaysactive facing up . that command says; /testfor @e[name=randomcrates,scores=1] 6. the repeating command is detecting a specific scores(1) to make a out put just like the armorstand that have a Redstone block. 7. now you can add chain command conditional facing up to the top of repeating commandblock that clone the blocks or chest. to make it easier just put chest above the chain then add the command; /clone ~~1~ ~~1~ ~~~ The last 3 Tildas is the specific location you want to be. You can make many randomcrates just change the number of the [scores=(this number)] that in the range of you random scoreboard, and that's all hahaha
so i created this system a few days ago on a server im building up and today i checked the chests and the items are inside the chest without placing the key in and i also checked the RUA commands and all of them are saying cannot place block outside of world
question Cant u Exsploit creates By nameing A diffrent Item Or The same Item Creates With the font and if so Is there a way to Make it Take Certain Thing Only with an enchant
@@gabedala ok thank you I found a way using npcs and a command block also I’ve watched u since like u had about your second ever vid and u have been verry helpful since
There’s a problem, I used this on my server until some people found a exploit: I use special data for my keys but if you are able to get one crate key and get a stack of the same item like netherite ingots if you name them the same and then make them stack with the data item they all become data items so you turn the 1 key into the 64 keys and it really sucks. So I was wondering if you could make this system with scoreboards?
Hey gabe, could you make a tutorial for making villager trade could be change like "i want it to - 1 emarald = 1 Diamond -", bc if using npc, someone could get the item that were buy, so if using villager its might be the one Who buy, its get for its self. Just like normal villager trade but we can change the trade.
@@gabedala my first one was if you knew how to set up a kit system were you can see the items your getting in a chest or shulker then have it give you a duplicate of the shulker with the items when you buy it for a kit PvP. My second one is if you knew how to set up a arena we’re all you can do is attack then once you go outside the the barrier of the arena you can place blocks(for crystals) in a kit PvP
Yes, that’s why you add an item ID to the end of the triphook wire like /give @s triphook_wire 1 5 - the 5 is the ID number that other players can’t get. This video just shows how to make the system
Is there a way to announce to the realm or world that someone is opening a crate to kinda prevent people from reusing crates using command blocks? If so people describe what to do in a reply message. Thanks!
Probably no way to fix this, That’s just how the game is. when it won’t detect a key fast enough to remove it that’s on the game. Nothing you can do to speed up that
@gabedala couldn't you just make a command block with a button below the chest to detect a player holding the key/take the key and give the reward with the same process?
PSA the keys made this way are able to be replicated, to avoid this issue, give the keys a cutsom data tag using the method from your kits video then they cant make their own ❤
@@gabedala I tried it with tripwire hooks, one stack with custom data one without, named them both the same thing in the anvil and put the one with custom data in the chest that decides the key, they ones without custom data cant unlock the loot crate but can be stacked with the ones that have custom data but after initial setup it works well because players cant create their own
It should still work, it’s not a glitch or a bug to do this. Double check your command blocks and their settings, lots of people mistype or mess up there
The only way to do custom commands is with add-ons or with items. Like if you drop a book it’ll tp you somewhere. But you can’t type /fly or anything else. What commands were you looking to make?
There must be something wrong with the way you named the keys or the armor stands. If you wanted to make different ones you’d need to name them other things
There’s a problem with your system, a player can put a key in the chest then take it out really quickly and they’ll still have a key and the loot will still go in the crate. A tick delay may need to be put on one of the command blocks.
Tick delays only make it take longer for the commands to work. If you add a delay they can do it still. Can’t really fix what the game detects. Maybe you can add a command block where it detects the player and gets rid of their key from their inventory
@@gabedala the only way to fix it is to change the system so it no longer detects wether the key is in the chest and instead use a redeem button that removes it from the inventory and then activates the system
For some reason now the chest closes so you have to re open it after you put the key in which is SO ANOYYING if there’s a way you can fix it plz tell me
W tutorials some of your turorials were able to help me make a minecraft server which reached a max of 3 players this week! Tysm!
Let’s goo!! I love to hear that!!
you can create one with spreadplayers command: spreadplayers 0 0 0 1 (so, 0 is X and 2th 0 is Z. 0 is min range, 1 is max range. 3×3 block) @e[type=armor_stand,scores={randomcrate1=1..,crate=1}]. with this command, the armor stand have score randomcrate more than 1 and score crate is 1 (randomcrate is Scoreboard Random, Random Chest Clone. crate is .. Common Crate = 1, Rare Crate = 2..) will be random tped to 3×3 blocks (total 9blocks) and then with another command scoreboard to remove Its score randomcrate by 1. If its score = 0 then clone the chest at it coordinates. (so you will use execute ... run clone ~ y_coordinate ~ ~ y_coordinate ~ crate coordinates). Its Maybe hard to understand. (if you have any question, comment down below)
oh I forgot. So when you put Crate Key inside the chest, It'll random randomcrate num num to armor stand (I recommend to use this command: execute as @e[type=armor_stand,scores={randomcrate=-1,crate=1}] at @s if blocks ~ -60 ~ ~ -60 ~ ~ -55 ~ all run command. So it'll test if block (chest at ~ -55 ~) to block (chest at ~ -60 ~) if it's true then it'll run commands. You can do another way Like the video)
i just found your channel and you've helped me so much. I am making a server for me and my friends and i wanted to have crates just like this. thank you again
No problem! Glad I could help!
I managed to do it and even found my own errors by looking back at this video awesome tutorials. Question, let's say you want to make different create keys, like a common, rare, and legendary one. How would you do it?
Love that you fixed it! In order to do different keys like a rare common etc. just make multiple sets of command areas. And in that chest where you insert what type of key to get the items, add different names ones! Hope I explained that well
@@gabedalaI have a suggestion
Btw W vid
does the new version affect ALL of the things you said in the video? If so, what do I need to change
If you want to add more random chest but the armorstand makes the game more laggy you can use one armorstand and scoreboard command.
1. make a dummy randomcrates
2. name one armorstand randomcrates (it can be anyting)
3. place a command block then connect any out put to a orange command block that says; /scoreboard players random @e[name=randomcrates] 1 9
4. 1 9 is the range 1-9, if you want to make 20 crates then make the range (1 20)
5. next make a repeating command alwaysactive facing up . that command says; /testfor @e[name=randomcrates,scores=1]
6. the repeating command is detecting a specific scores(1) to make a out put just like the armorstand that have a Redstone block.
7. now you can add chain command conditional facing up to the top of repeating commandblock that clone the blocks or chest. to make it easier just put chest above the chain then add the command; /clone ~~1~ ~~1~ ~~~
The last 3 Tildas is the specific location you want to be. You can make many randomcrates just change the number of the [scores=(this number)] that in the range of you random scoreboard, and that's all hahaha
man i love this guy i always watch bros tutorias
Thank you!!!
Thanks Gabedala love the vids
Glad you love them!
Thx gabe i realy needid this
No problem!!
Thanks
so i created this system a few days ago on a server im building up and today i checked the chests and the items are inside the chest without placing the key in and i also checked the RUA commands and all of them are saying cannot place block outside of world
Have to have a player loaded in that area for it to work
is it possible to like make a key system to where you need a key to open the chest
question Cant u Exsploit creates By nameing A diffrent Item Or The same Item Creates With the font and if so Is there a way to Make it Take Certain Thing Only with an enchant
No you can’t, make sure you spawn in the crate key with an ID
How do you make it say like “legendary crate,or something above it
@@BaylieKing you would need an add on for floating texts
@@BaylieKing unless you name the chest with a tag? I’m not too sure
@@gabedala ok thank you I found a way using npcs and a command block also I’ve watched u since like u had about your second ever vid and u have been verry helpful since
how can u active the repeater and comparator at the same time that’s the bit i can not do
Wdym? It’s Minecraft bedrock, you should be able to
what is the shader called
There’s a problem, I used this on my server until some people found a exploit: I use special data for my keys but if you are able to get one crate key and get a stack of the same item like netherite ingots if you name them the same and then make them stack with the data item they all become data items so you turn the 1 key into the 64 keys and it really sucks. So I was wondering if you could make this system with scoreboards?
@@wabungiboys yeah that’s an issue atm, not sure why Minecraft changed that. You use to never be able to stack ID items
Can u make it so that the player can view what the insides of the crate is?
Yeah I need to do an updated version
The comparritor aint goin off helpppp@@gabedala
Man Thanks you so much making this tuto for mystery box am shocked of the command i was think we need a plugin addon mod but no Tysm your smart
You're very welcome! Glad I could help!
@@gabedala sorry if i doo some errors i am not from english , i maked a ytb video version french of your tuto
No worries! Love it!
ty@@gabedala
when the redstone blocks are covering the block it makes it so that if it chooses that one by random you cant get it so i just get nothing sometimes
i have to manually break the redstone
You might’ve messed up one of the command blocks then. The redstone block should disappear
@@gabedala Thank you
@@gabedala do you by any chance know what command that is in
@@gabedala What command breaks the block
It keeps saying Failed to execute 'setblock' as [NULL]. It works sometimes but I just can't find where I messed up
thx!!! I LOVE THIS SO MUCH THX YOU BROOOO
So everything works correctly it takes the key but nothing of my loot choice appears any help?
Stuff only works if I put it into the second Chest after the Crate key
Hey! With the /execute command, the @r[type=armor_stand,name=“Crates”] dosn’t work because it’s selecting a random person player! Please help
You Need to do /execute at @r[type=armor_stand.name="crates"] run set block
I made six chests and when I put a key it only gives the fourth chests items and when I shortened it switched to the third pls help
Hey gabe, could you make a tutorial for making villager trade could be change like "i want it to - 1 emarald = 1 Diamond -", bc if using npc, someone could get the item that were buy, so if using villager its might be the one Who buy, its get for its self. Just like normal villager trade but we can change the trade.
Can you try and rephrase this better? I do have a video where you can trade items with villagers like diamonds to gold (something like that)
It says source and destination are not identical what does it mean?
@@harrysilver5496 means you messed up a command block somewhere
W video worth subbing 🔥
Thank you!!
To get a data block you need to connect a keyboard to your Xbox that how I get data blocks
I think you can do it on controller too
Thanks W tutorials
Thank you!!
This is really helpful thanks I’m gonna use this have you figured out some questions I have?
What questions do you have again?
@@gabedala my first one was if you knew how to set up a kit system were you can see the items your getting in a chest or shulker then have it give you a duplicate of the shulker with the items when you buy it for a kit PvP. My second one is if you knew how to set up a arena we’re all you can do is attack then once you go outside the the barrier of the arena you can place blocks(for crystals) in a kit PvP
@@gabedala have you figured it out? I can’t think of anything besides using tags
Is it possible to do this with Money? Like using the scoreboard?
Not sure tbh
Are the players able to duplicate the key?
Like let’s say they make an exact copy of the key.
Is that allowed to be used?
No it’s not able to. If you have spawn in a triphook write and did an ID then no one else can get that triphook
@@gabedala Very NIce to know so like I can do /give @s Tripewire_hook 1 2 and that is the code they can only use?
what shader u use? link pls
I have a video on my page showing a tutorial
@@gabedala alr
Thanks 👍
No problem !!
mine is im gonna sell my crate key BUT example: what happened if the player named the tripwire hook the same name that i put? Pls respond
I made a new updated version on making a crate key system. This one is bugged now.
@@gabedala well can the players see my crate if I opened it?
THANK YOU
No problem!!!
mine is not working, i put the key in, it takes it but it doesnt give me my loot
That’s the same issue with me!
The 1st chest seems to be alot more frequent then the other chests like the spawn rate
That’s weird, the command block is set to pick at random and not the closest or anything
@@gabedalaDo you know how to fix it? It kinda sucks having it so frequent
@@Bradley-lm2yg there’s no way to fix it, the point of the command block is to make it random. Meaning it’s random. Can’t fix probability
Fix for new update please
it does work for me when i typed the /execute one it says error
@@35-perkz probably messed up somewhere
@@gabedalait looks the exact same idk why it’s not working
@@35-perkz did you double check all of the commands and the command block settings? It’s easy to miss 1 small thing
@@gabedala it works now but when i put my key in it doesn’t give me owt
@@35-perkzi’m having that issue also
Can't the players just manually rename the tripwire hooks and get infinite items?
Yes, that’s why you add an item ID to the end of the triphook wire like /give @s triphook_wire 1 5 - the 5 is the ID number that other players can’t get. This video just shows how to make the system
@@gabedalaOk thank you!
vid idea: how to protect item frames
adventure mode?
Is there a way to announce to the realm or world that someone is opening a crate to kinda prevent people from reusing crates using command blocks? If so people describe what to do in a reply message. Thanks!
There is, just add a command block at the end with the /title command and @e for everyone or @a
you can put the key in take it out and still get a free item how do i fix this?
Probably no way to fix this,
That’s just how the game is. when it won’t detect a key fast enough to remove it that’s on the game. Nothing you can do to speed up that
@@gabedala rip
@gabedala couldn't you just make a command block with a button below the chest to detect a player holding the key/take the key and give the reward with the same process?
PSA the keys made this way are able to be replicated, to avoid this issue, give the keys a cutsom data tag using the method from your kits video then they cant make their own ❤
also true. But I also found out that even if the item is stackable and you give it a data key. they count as the same thing for some reason?
@@gabedala I tried it with tripwire hooks, one stack with custom data one without, named them both the same thing in the anvil and put the one with custom data in the chest that decides the key, they ones without custom data cant unlock the loot crate but can be stacked with the ones that have custom data but after initial setup it works well because players cant create their own
This don’t work anymore is there a update or something ?
It should still work, it’s not a glitch or a bug to do this. Double check your command blocks and their settings, lots of people mistype or mess up there
Mine just takes the echo shard I use
Pretty solid
I RLLY NEED TO LEARN DESIGNATED TELEPORTERS FOR A SERVER IM WORKING ONNNN ☹☹
I have a tutorial on my channel how to make a teleporter and in it I show how to make designated
@@gabedala yipee thxx
only with keybord or els you wont get data
For some reason mine says source and destination are not identical someone help plz
Double check your command blocks and their settings
@@gabedala double checked them 3 times all cords are matching no other errors in the other command blocks just that one saying source destination
@@ContentSchnauzer-wo5susame
Same as well
Make sure the crate chest is also the same direction
Why does my chest close out the menu when use the key
Could be the new update
@@gabedala Yup. It was a bug. Fixed in 1.21. Quite annoying though.
YES IT GOT PATCHED
Sometimes i get nothing how do i fix that?
Add stuff to your chest for different variations and make sure the chests are all facing the same direction too
@@gabedalabut what if that doesnt work?
Nice video but do you know how to make a custom commands
The only way to do custom commands is with add-ons or with items. Like if you drop a book it’ll tp you somewhere. But you can’t type /fly or anything else. What commands were you looking to make?
@@gabedala cause I'm making a skygen server and I want when I type a command like /shop it's open an GUI or chest above your head
Mine has delay something it doesn't work I'm on bedrock and I'm using my phone
Change the ticking speed?
For me it kicks me out of the crate chest
So I have 5 different Crates, when I use a key for a certain crate right? It opens that crate but also a different 1 without needing that key. 😢
There must be something wrong with the way you named the keys or the armor stands. If you wanted to make different ones you’d need to name them other things
Tysm
Oh and one more if I open a crate will the other players see it?
In the new updated version I have only you can see what crate you opened but your items will be shot out
Bro can you make on my world plz
I will if you pay
How much
I put the key in the chest and I didn’t give me my items and I have the commands in can you pls help me?
I only help people who are members to the channel
I worked a hour building it doesnt work
I have an updated one of my channel
Ok
Sorry but in lazy can you put the commands on like a copy website
It kicks me out of the chest when i place my key in
Will be making updated version soon because the new 1.21 ruined the cloning process that was once amazing
Doesn’t work for me
Double check commands
@@gabedalai got it to work but now it only works sometimes and also kicks you out of the chest when you open it
@@1ington52same here
It kinda doesn't work for me 😢 maybe the chest was a trap chest maybe thats how it worked
It’s not a trap chest
Bro I need auto, please
Auto?
@@gabedalahe is confused, a bit slow if ya know
I make map, I need you
pls use scoreboards to randomize not entities lol
What’s the difference
@@gabedala Entities cause lag even on a smaller scale
plus setting blocks
Instead of Doing Ur In Game Name Do @s It's Faster
Nah
@@gabedala Can U Try It Out Works For Me
NOT WORKING :(
It is, double check your command blocks and their settings
There’s a problem with your system, a player can put a key in the chest then take it out really quickly and they’ll still have a key and the loot will still go in the crate. A tick delay may need to be put on one of the command blocks.
Tick delays only make it take longer for the commands to work. If you add a delay they can do it still. Can’t really fix what the game detects. Maybe you can add a command block where it detects the player and gets rid of their key from their inventory
@@gabedala Only problem there is if they don’t do the glitch it will take two
@@gabedala the only way to fix it is to change the system so it no longer detects wether the key is in the chest and instead use a redeem button that removes it from the inventory and then activates the system
@@Desert_Skygen that’s also true!
It didn’t work 😢
Keep trying
@@someones_idiotbut how can I keep trying
U never helped me dude try better!
Yeah cause you stand out from 100s of other people asking for my help so I NEED to help you right?
/execute at @r[type=armor_stand,name="Crates"] run /setblock ~~-2~ redstone_block
I got an error in the first command /testforblock ~~1~ ~~1~ -10 -60 4
Double check the command block settings and make sure your chests are facing the same direction
Playsound firework.large_blast @p
For some reason now the chest closes so you have to re open it after you put the key in which is SO ANOYYING if there’s a way you can fix it plz tell me
Making an updated version
Why does the chest close every time i put in the key
Add a ticking area. 1.21 update ruined this video sorta
@@gabedala what is a ticking area
It basically makes the chunk always function (such as commands or redstone) no matter how far the player is @@Buzzlofn
/execute at @r[type=armor_stand,name="Crates"] run /setblock ~~-2~ redstone_block