Minecraft Data Packs / Simple

Simple Code Lock - Snapshot 25w20a (New /dialog command)

  • check_circle Functions
  • 415 views, 4 today
  • 53 downloads, 0 today
  • 6
  • 4
  • 6
qnoss
Level 34 : Artisan Herobrine
24

Code Lock
Does not work in newer Snapshots!

This Datapack lets you add command blocks as combination locks.
Input this command:
/function code:code {correct_code:1234}
Replace the code with your own. You can insert any number you want.

Then summon a door with this command:
/summon minecraft:block_display ~ ~ ~ {Tags:["door"]}
You can change the quartz_pillar texture by editing the block_display function.



CompatibilityMinecraft 1.21
Tags

Create an account or sign in to comment.

sunarin_25
06/05/2025 1:50 am
Level 1 : New Miner
I put a block in, but not in the place I wanted, and now I don't know how to remove it. Could you tell me how to remove the quartz?

(Sorry for my English, it's the translator)
2
qnoss
06/05/2025 11:38 am
He/Him • Level 34 : Artisan Herobrine
You could do /kill @e[type=block_display,tag=door] to remove all quartz blocks or /kill @n[type=block_display,tag=door] to remove the nearest
2
sunarin_25
06/05/2025 8:43 pm
Level 1 : New Miner
i tried but nothing.
Could it be because I removed the data pack?

I thought if I removed it would disappear, an now I can now get into my house but there are still some visible quartz blocks left. But I can walk through them.
2
qnoss
06/05/2025 9:04 pm
He/Him • Level 34 : Artisan Herobrine
hm.. maybe try /kill @e[​type=block_display,distance=..30] when near it?
1
regfunkid
05/19/2025 5:43 am
He/Him • Level 40 : Master Pixel Puncher Procrastinator
Cool use of Dialogs! Can't wait to see what else people do with this!
2
qnoss
05/19/2025 7:18 am
He/Him • Level 34 : Artisan Herobrine
The possibilities are endless :) And thanks!
1

Welcome