how would you make it so that when you open that specific chest with the key that the key gets consumed? because this would be perfect for an adventure map
@theliteralcow
Жыл бұрын
i know this is a late reply but i think this should work 1. /data merge block XYZ {Lock:"LOCK NAME HERE"} - makes a lock 2. /scoreboard objectives add chest_opened minecraft.custom:minecraft.open_chest - makes a scoreboard to use to detect when a chest is opened 3. /scoreboard players add (PLAYER NAME) chest_opened 0 4. /execute as @s run execute if entity @a[scores={chest_opened=1..}] run clear @s (ITEM NAME YOU ARE USING){display:{Name:{"text":"KEY NAME HERE"}}} (put on repeating command block) 5. /scoreboard players reset (PLAYER NAME HERE) chest_opened (put on chain command block, always active, conditional, put it on the little dot where you placed repeating command block) I think this works, ill test it out it didnt work, i think you can make it work if you tweak some things but i dont have time for that rn sorry
@jetray3104
2 жыл бұрын
you can also do it with entities, not blocks, if you want a boss fight like that, you can sometimes make the boss immune to damage, then make it no longer be immune again, so you can damage him. Its quite nice. one is "/data merge entity {}" Don't type the Replace the NBT to one of this {Invulnerable:1} And More Go into MC Stacker for generating mobs, and more
@undermycap
2 жыл бұрын
You can lock entities? As in any entity with a chest storage? That is so cool I will have to try it out!
@jetray3104
2 жыл бұрын
@@undermycap ya, any entity, like zombies, passive mobs and more
@Nova_BG
9 ай бұрын
You helped me to build my horror map😊👍
@Taksha14
Жыл бұрын
it wont work for me it says the target block is not a block entity
@steepercreve
Жыл бұрын
If you break the locked chest, will it drop the contained items?
@Malkontent1003
Жыл бұрын
It's said in the video, my guy. XD
@steepercreve
Жыл бұрын
@@Malkontent1003 it wasn't clear and I was just asking tk make sure so maybe don't next time. :)
@Malkontent1003
Жыл бұрын
@@steepercreve Bruh, it's literally IN THE VIDEO.
@dehydrationmonster66
Жыл бұрын
Yes
@steepercreve
Жыл бұрын
It would've been simpler to just day yes when I asked.
@briannajimenez5348
2 ай бұрын
Thank you this is so helpful and awesome
@user-nu4es7dx2y
Жыл бұрын
god only existed in java and not bedrock ssaadd:(
@azimli52_kurnaz_ironi_anti-ilk
2 жыл бұрын
yay! good content!!
@undermycap
2 жыл бұрын
Thank you 😀!
@fadhilmlas853
2 жыл бұрын
Thanks for the tutorial 👍
@undermycap
2 жыл бұрын
All good! I’m glad it helped 😁!
@blazingarrows6117
6 ай бұрын
Thank you!
@RyansColoradoRailProductions
7 ай бұрын
Locked chest from April Fools 2011 is real now
@issacthegamer12357
8 ай бұрын
It's not working
@Obongus602
8 ай бұрын
ohh this is so nice u deserve a like.
@undermycap
7 ай бұрын
Thank you so much 😀
@Baconyy33
2 жыл бұрын
“SimPly JuSt BrEAk tHE cHeSt”
@noahandersen9058
7 ай бұрын
doesnt work for me i typed the exact thing just different coords
@Sonic_Phantoms
5 ай бұрын
Can you make it so that once you open the chest with the key can the key disappear after one use?
@swayxsc
2 ай бұрын
Well, how do i make so only ONE of my friends can open it?
@NotKaraKurt
Жыл бұрын
Can we add more than one lock? For example, can we make a chest that can be opened with an iron ingot named "Key", at the same time an iron ingot named "Backup Key" can be opened?
@Ilikecatsl0l
Ай бұрын
no, no you can't
@Anime_GamerzYt
2 жыл бұрын
Hi nice 👍👍👍🙂🙂🙂 video
@undermycap
2 жыл бұрын
Thank you! It’s a really cool feature of chests, Have a great day!
@alexstreit8257
4 ай бұрын
thank you
@undermycap
4 ай бұрын
You're welcome! Have an awesome day!
@Yahyagame34
4 ай бұрын
I can break the chest and take all the items
@brennosxavier6643
11 ай бұрын
Thanks
@Googleissmart-iq5uv
Жыл бұрын
/data merge blocks ~ ~ ~ {Lock:"your lock code"} is the right code. The other quotation marks dont work atleast for me.
@portableprodigy1337
6 ай бұрын
Thank you! I don't understand what's the difference but this is the only option that worked for me.
@chrissymckenna9489
9 ай бұрын
**cries in bedrock**
@threblog
27 күн бұрын
Does this work with doors?
@trashpanda5599
2 жыл бұрын
New video👀
@uno_fn
2 жыл бұрын
Me: looking for interesting minecraft things. UnderMyCap: Comes in with another epic command. thx this was so cool! lets get him to 10k subs by the end of july!
@undermycap
2 жыл бұрын
Thank you so much, @LucKy!!
@arnavdhawade9973
Жыл бұрын
The command dosent have a problem but it just opens
@arnavdhawade9973
Жыл бұрын
Why can't my chest be locked it just opens
@LoganLam-ys4eh
Ай бұрын
It is for java edition
@fivenightsatfreddys6859
10 ай бұрын
Cool tho that yours works
@albertfekete1500
2 жыл бұрын
what if a player mines the shulker box it will just drop and if you place it will it still be locked?
@undermycap
2 жыл бұрын
Hello sadly it doesn’t keep it locked so it can be opened. It would be very useful if you could lock it and make it portable 😀.
@deeznucz8639
Жыл бұрын
Is is posslible to lock any block you want?
@MoldenTree
Жыл бұрын
Does this work with Doors? I tried but it didn't work.
@Teapot_Man
4 ай бұрын
Is there a way to unlock the chest with commands?
@Breakingaether
9 ай бұрын
Its not working for me ive done exactly what u said and its not working The chest wont lock
@jarvispoulton9652
4 ай бұрын
If you’re on bedrock it doesn’t work
@Breakingaether
4 ай бұрын
@@jarvispoulton9652 I posted that comment so long ago I can't even remember which one I was on
@susgaming711
2 жыл бұрын
and also can you show the command in the desc
@undermycap
2 жыл бұрын
Hello! Thank you so much for reminding me, I have placed the command into the description now. I forgot to place it in before 😀. Have an Awesome day!
@PotBorTheCommunityShopKeeper
9 ай бұрын
Thats not the locked chest im talking about I meant the april fools one
@cheesecakeisntgood6504
9 ай бұрын
the /data command doesnt exist in bedrock
@fivenightsatfreddys6859
10 ай бұрын
The command is there but it doesn't work tho
@zekoplayerx
Жыл бұрын
ThankS
@johann_kili694
Жыл бұрын
for everyone to copy: /data merge block 22 73 -10 {Lock:"key"}
@brianfrancisyu1284
Жыл бұрын
Bbvv
@iAowe
Жыл бұрын
Doesn't work for Xbox
@susgaming711
2 жыл бұрын
I found the secret cap
@hoodiekeleton89
2 жыл бұрын
Does this also work with barrels?
@undermycap
2 жыл бұрын
Hello, yes it will work 😀
@fuxina7787
2 жыл бұрын
it says "the target block is not block entity " for me when i type the command help pls
@paperbear03
2 жыл бұрын
i think ur coordinates are wrong or smt, that reply means that the targeted block cant be locked
@A_Nany
Жыл бұрын
@@paperbear03 I am using the right coordinate and even so the code isn't working
@layanassi16
23 күн бұрын
/data merge block. {Lock:""}
@asasworld2539
6 ай бұрын
it didn't work even tho I was on java edition
@user-eo3vv7mu4w
4 ай бұрын
Yeah what a waste of time
@gamekingyeti
Жыл бұрын
i found the hidden cap
@undermycap
Жыл бұрын
Yay congratulations!!!
@tech_cookie4445
2 жыл бұрын
Does this work on mobile
@20Aleksa08
2 жыл бұрын
Can you make a block unbreakable??? If you can that could be the colution to this👍👍👍
@undermycap
2 жыл бұрын
I’m not to sure. The only way I think you could make it unbreakable is if you set your game mode to adventure.
@20Aleksa08
2 жыл бұрын
@@undermycap maybe you could make a command block that turns your gamemode to adventure when you enter a certain area
@undermycap
2 жыл бұрын
That could work you would have to use some sort of tag like distance to test for it. I think you could do /execute at @a[distance=..10] run game mode adventure in a command block which will set players in a range of 10 to adventure 😀.
@20Aleksa08
2 жыл бұрын
@@undermycap ok, thanks, im not good with commands so i barely understood you though
@20Aleksa08
2 жыл бұрын
@@undermycap but if i ever need that i could come back to you for help
@jattyorrell2046
Жыл бұрын
I cant even do it
@Vxz.89
Жыл бұрын
is that working in mcpe?
@KyleonaMedley-hh3et
5 ай бұрын
It didn’t work it said unknown command
@flurple6921
4 ай бұрын
need to enable cheats
@ulitie
4 ай бұрын
@@flurple6921 I have cheats enabled and it doesn't work, it shows red when I type the lock type
@flurple6921
4 ай бұрын
@@ulitie try going creative first, do this, then go back to survival
@lovethegalaxy1019
Жыл бұрын
-301, 71, -64
@X-Not_Zero-X
Жыл бұрын
Can I get Java on mobile?
@undermycap
Жыл бұрын
Hello 😀! Unfortunately java is not able to be played on java as it’s not built for mobile devices.
@Mommy_J
Жыл бұрын
Does it actually work on servers?
@Darshdarsh-xo9xb
10 ай бұрын
yes
@Axe_is_good
2 жыл бұрын
does this work with dubble chests?
@undermycap
2 жыл бұрын
Hello, it should work. If not I think you would need to do the command twice one for the left block then the right 😁. Have an awesome day!
@Axe_is_good
2 жыл бұрын
@@undermycap thanks
@undermycap
2 жыл бұрын
All good 👍
@moonkilleryt6150
2 жыл бұрын
it in 1.14 or 1.15
@undermycap
2 жыл бұрын
Hello I’m pretty sure this is Available all the way down to maybe 1.13 as the commands structures all changed after that update 😀. Have a great day!
@Vincent-vk5eo
Жыл бұрын
Is there a way to undo this command?
@undermycap
Жыл бұрын
Hello if you break the chest and place it, it will disappear 😀
@QwertyNotFound
Жыл бұрын
i think you can use /data remove block ~ ~ ~ im not so sure tho
@pksingh2509
2 ай бұрын
fake it dosent work in 1.21
@user-et9ks9ty7x
Ай бұрын
No real
@LolbokShorts
6 күн бұрын
its real just use the summon command: /summon minecraft:item ~ ~2 ~ {Item:{components:{"minecraft:custom_name":'{text:"VIP Pass",color:"yellow"}'},id:"minecraft:paper",count:1}}
@jarvispoulton9652
4 ай бұрын
I hate bedrock edition :(
@LoganLam-ys4eh
Ай бұрын
This is war
@jarvispoulton9652
Ай бұрын
@@LoganLam-ys4ehI play on bedrock it’s the fact that we can’t do this
Пікірлер: 119