LockCraft «Achievements Friendly»

Protect your chests and barrels with a personal 4-digit PIN no cheats, no experiments. Craft the Security Key, set a PIN on any chest, double chest, trapped chest or barrel, and nobody gets in without it.



🔒 LockCraft — Secure Your Storage · by RG42X

Protect your chests and barrels with a personal 4-digit PIN — no cheats, no experiments.
Craft the Security Key, set a PIN on any chest, double chest, trapped chest or barrel, and nobody gets in without it. Built for multiplayer worlds and Bedrock Dedicated Servers, with every check done on the server.    
✅ No cheats needed  ·  ✅ No experimental toggles  ·  ✅ Server-side security  ·  ✅ English & Spanish

✨ Features

  • 🔑 Security Key — a craftable survival item to secure and manage your containers. It's never used up.
  • 🔢 4-digit PIN — any code from 0000 to 9999; leading zeros are kept.
  • 📦 Chests, double chests, trapped chests and barrels — both halves of a double chest are protected.
  • 🔒 Visible padlock — a LockCraft padlock hangs on the front of every protected container, so you can tell at a glance.
  • 🚫 Brute-force lockout — 3 wrong PINs lock that player out of that container for 30 seconds. Leaving and rejoining doesn't reset it.
  • 🧱 Grief protection — protected containers can't be broken, blown up, drained by hoppers or hopper minecarts, or joined by someone else's chest.
  • 👤 Owner panel — change your PIN, remove the protection or view the container's information.
  • 🔐 PINs are never stored in plain text — salted PBKDF2-SHA256 hash for every lock.
  • 💾 Reliable saving — locks survive restarts and updates, with a backup copy and integrity checks for every record.
  • ⚡ No cheats required — Script API only. Designed to keep achievements enabled.
  • 🪶 Lightweight — event-driven, with no per-container loops running in the background.
  • 🌐 Bilingual — English and Spanish (Spain & Mexico).

🛠️ Crafting recipe

Crafting table, shaped like a key:
➡️ Result: 1× Security Key. The recipe unlocks in the recipe book when you get an Iron Ingot.

🔐 How to use it

Action How
Secure a container Use the Security Key on an unprotected container, create a PIN and confirm it. → Container successfully secured.
Open it Use the container normally and enter the PIN. After Access granted, use it again within 10 seconds and it opens. The owner needs the PIN too.
Manage it Use the Security Key on your own container: Change PIN, Remove Protection or Container Information.
Make it a double chest Place a chest next to your protected chest: the protection extends to both halves automatically.
Break it Remove the protection with your Security Key first.
💡 The Security Key is not a master key: on someone else's container it only shows You don't own this container.

💬 Command (operators)

Works in worlds without cheats. Look at a chest or barrel (up to 8 blocks away). The full name /rg42x:lockcraft always works.
Command What it does
/lockcraft info Shows the owner, type, location and date the container was secured
/lockcraft reset Removes the protection (for example, if the owner left the server). It's logged in the server console.
/lockcraft stats Number of protected containers
🛡️ Operators can remove a protection, but they can't open a container without its PIN.

🛡️ Security

  • Every interaction is validated on the server; the client never decides who gets in.
  • Cancelling the PIN window never grants access.
  • Access is a personal, single-use pass: every other player still needs the PIN.
  • Hoppers and rails can't be placed under a protected container. If a piston pushes one there, it's dropped as an item together with its contents.
  • Pistons: the protection follows the container when it's moved.
  • If a lock's saved data is ever damaged, the container stays closed until an operator resets it — it never opens by mistake.

📦 Installation

Single player / local worlds
  1. Open LockCraft.mcaddon — Minecraft imports both packs.
  2. In your world settings, enable LockCraft under Behavior Packs (the resource pack is added automatically).
  3. No cheats, no experiments. Done! 🎉
Bedrock Dedicated Server
  1. Extract the behavior pack into behavior_packs/ and the resource pack into resource_packs/.
  2. Add them to world_behavior_packs.json and world_resource_packs.json of your world.
  3. Restart the server.

📋 Requirements

  • Minecraft Bedrock 1.21.100 or newer
  • Script API: @minecraft/server 2.1.0 · @minecraft/server-ui 2.0.0 (stable)

❓ FAQ

Why do I have to use the chest twice? Minecraft doesn't let add-ons open a chest's inventory for you. After a correct PIN you get 10 seconds to use it again, and it opens normally. I forgot my PIN. Ask an operator to run /lockcraft reset while looking at the container, then secure it again. Can I lock copper chests, ender chests or shulker boxes? Not in this version. Copper golems can take items out of copper chests, ender chests are already personal, and shulker boxes can be carried around. Can other players see my PIN? Bedrock forms can't hide text, so the PIN is visible on your screen while you type it. Watch out for screen sharing. Updating from an older install? Your locks are kept. If Minecraft says the pack is already installed, delete the old one in Settings → Storage and import again.
🔒 LockCraft v1.0.0 · Made by RG42X
🔑 Key & padlock sprites: Pixel Art Key Pack and Pixel Art Padlock Pack – Animated (CC0), recoloured — thanks to the original artists.
🌐 More add-ons and content: www.rg42x.com              

🔒 LockCraft — Secure Your Storage · por RG42X

Protege tus cofres y barriles con un PIN personal de 4 dígitos, sin trucos ni experimentos.
Fabrica la Security Key, ponle un PIN a cualquier cofre, cofre doble, cofre trampa o barril, y nadie entrará sin él. Pensado para mundos multijugador y servidores dedicados de Bedrock, con todas las comprobaciones hechas en el servidor.  
✅ Sin trucos  ·  ✅ Sin funciones experimentales  ·  ✅ Seguridad en el servidor  ·  ✅ Español e inglés

✨ Características

  • 🔑 Security Key: un objeto fabricable en supervivencia para proteger y administrar tus contenedores. Nunca se gasta.
  • 🔢 PIN de 4 dígitos: cualquier código de 0000 a 9999; los ceros iniciales se conservan.
  • 📦 Cofres, cofres dobles, cofres trampa y barriles: en un cofre doble se protegen las dos mitades.
  • 🔒 Candado visible: cada contenedor protegido lleva un candado LockCraft colgado en el frente, para reconocerlo de un vistazo.
  • 🚫 Bloqueo por intentos: con 3 PIN incorrectos, ese jugador queda bloqueado 30 segundos en ese contenedor. Salir y volver a entrar no lo reinicia.
  • 🧱 Protección contra griefing: los contenedores protegidos no se pueden romper, volar con explosiones, vaciar con tolvas o vagonetas con tolva, ni unir al cofre de otro jugador.
  • 👤 Panel del dueño: cambia el PIN, quita la protección o consulta la información del contenedor.
  • 🔐 El PIN nunca se guarda en texto plano: cada cerradura usa un hash PBKDF2-SHA256 con sal.
  • 💾 Guardado fiable: las cerraduras se mantienen tras reiniciar y al actualizar, con copia de seguridad y control de integridad en cada registro.
  • ⚡ Sin trucos: solo Script API. Diseñado para mantener los logros activos.
  • 🪶 Ligero: funciona con eventos, sin bucles por contenedor en segundo plano.
  • 🌐 Bilingüe: español (España y México) e inglés.

🛠️ Receta de crafteo

Mesa de crafteo, con forma de llave:
➡️ Resultado: 1× Security Key. La receta se desbloquea en el libro de recetas al conseguir un lingote de hierro.

🔐 Cómo se usa

Acción Cómo
Proteger un contenedor Usa la Security Key sobre un contenedor sin proteger, crea un PIN y confírmalo. → Container successfully secured.
Abrirlo Usa el contenedor normalmente y escribe el PIN. Tras Access granted, vuelve a usarlo antes de 10 segundos y se abre. El dueño también necesita el PIN.
Administrarlo Usa la Security Key sobre tu contenedor: Change PIN, Remove Protection o Container Information.
Convertirlo en cofre doble Pon un cofre junto a tu cofre protegido: la protección se amplía sola a las dos mitades.
Romperlo Quita antes la protección con tu Security Key.
💡 La Security Key no es una llave maestra: sobre el contenedor de otro jugador solo muestra You don't own this container.

💬 Comando (operadores)

Funciona en mundos sin trucos. Mira a un cofre o barril (a 8 bloques como máximo). El nombre completo /rg42x:lockcraft siempre funciona.
Comando Qué hace
/lockcraft info Muestra el dueño, el tipo, la ubicación y la fecha en que se protegió
/lockcraft reset Quita la protección (por ejemplo, si el dueño ya no juega en el servidor). Queda anotado en la consola del servidor.
/lockcraft stats Número de contenedores protegidos
🛡️ Los operadores pueden quitar una protección, pero no pueden abrir un contenedor sin su PIN.

🛡️ Seguridad

  • Cada interacción se valida en el servidor; el cliente nunca decide quién entra.
  • Cerrar la ventana del PIN nunca da acceso.
  • El acceso es un pase personal de un solo uso: los demás jugadores siguen necesitando el PIN.
  • No se pueden poner tolvas ni raíles debajo de un contenedor protegido. Si un pistón empuja uno ahí, se suelta como objeto junto con su contenido.
  • Pistones: la protección sigue al contenedor cuando se mueve.
  • Si los datos guardados de una cerradura se dañan, el contenedor sigue cerrado hasta que un operador lo restablezca; nunca se abre por error.

📦 Instalación

Un jugador / mundos locales
  1. Abre LockCraft.mcaddon; Minecraft importa los dos paquetes.
  2. En la configuración del mundo, activa LockCraft en Paquetes de comportamiento (el paquete de recursos se añade solo).
  3. Sin trucos y sin experimentos. ¡Listo! 🎉
Servidor dedicado (BDS)
  1. Descomprime el paquete de comportamiento en behavior_packs/ y el de recursos en resource_packs/.
  2. Añádelos a world_behavior_packs.json y world_resource_packs.json de tu mundo.
  3. Reinicia el servidor.

📋 Requisitos

  • Minecraft Bedrock 1.21.100 o superior
  • Script API: @minecraft/server 2.1.0 · @minecraft/server-ui 2.0.0 (estables)

❓ Preguntas frecuentes

¿Por qué tengo que usar el cofre dos veces? Minecraft no permite que un addon abra el inventario de un cofre por ti. Tras escribir el PIN correcto tienes 10 segundos para volver a usarlo, y se abre con normalidad. Olvidé mi PIN. Pide a un operador que use /lockcraft reset mirando al contenedor y vuelve a protegerlo. ¿Puedo proteger cofres de cobre, cofres de ender o cajas de shulker? En esta versión no. Los gólems de cobre pueden sacar objetos de los cofres de cobre, los cofres de ender ya son personales y las cajas de shulker se pueden transportar. ¿Otros jugadores pueden ver mi PIN? Los formularios de Bedrock no pueden ocultar texto, así que el PIN se ve en tu pantalla mientras lo escribes. Cuidado si compartes pantalla. ¿Actualizas desde una instalación anterior? Tus cerraduras se conservan. Si Minecraft dice que el paquete ya está instalado, borra el anterior en Configuración → Almacenamiento y vuelve a importarlo.
🔒 LockCraft v1.0.0 · Creado por RG42X
🔑 Sprites de llave y candado: Pixel Art Key Pack y Pixel Art Padlock Pack – Animated (CC0), recoloreados. Gracias a sus autores.
🌐 Más addons y contenido: www.rg42x.com

LockCraft «Achievements Friendly» Team

profile avatar
Owner
  • 4
    Followers
  • 20
    Projects
  • 34.1K
    Downloads

More from RG42XView all