• 5/18/25 9:56 pm
- 1.3k views • 0 today
- save_alt 88 downloads
- Compatibility
- Minecraft 1.21
- Changes include
- Functions
34
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.
6621760
119


Have something to say?
i think it works best to place a regular commandblock in the ground with pressureplate on top, and put the function command in it. This will trigger the input window!
then place the next regular commandblock right next to the first one and place the summon command in it. Activate it once to create the door and then remove the command block so there is only one door. If it does not work, try to /kill @e[type=!player,distance=..5] standing next to the entities. This will reset them.
i hope this helps! As i said its an old project and i dont remember everything.
if you still need help, let me know!
oh and it ONLY works in that specific snapshot!
the syntax has been changed since then
(Sorry for my English, it's the translator)
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.