# đź”’ SpawnProte
Protect your spawn, towns and safe zones with a single padlock and a visual admin menu — no commands, no config files to edit by hand.
🇪🇸 Descripción en español más abajo.
---
## ✨ Features
- One item, zero commands — the Zone Padlock (*Candado de Zonas*) does everything:
- Left-click a block → Corner 1
- Right-click a block → Corner 2
- Right-click the air → opens the zone menu
- Visual zone editor — name, dimension, coordinates, "Use my position", "Full height", rule toggles and an entity whitelist, all inside a clean in-game GUI.
- Particle previews — see your selection, nearby zones and full zone borders while you work.
- Moderators only — OP level (configurable) or a list of extra moderator names/UUIDs. Every action is validated on the server.
- Multi-dimension & overlapping zones — rules stack coherently; the smallest zone takes priority for name and regeneration.
- Safe JSON storage — atomic writes, .bak file and rotating timestamped backups. Corrupted files are recovered automatically.
- Paste-friendly — built for spawns and towns pasted with WorldEdit or Litematica.
## 🛡️ Zone rules
| Rule | What it does |
|---|---|
| Adventure mode | Non-moderators in Survival switch to Adventure inside the zone and back to Survival when they leave. Never touches Spectator or Creative. Handles relogs, respawns and dimension changes. |
| Block protection | No breaking/placing blocks, buckets, flint & steel or tool use on blocks, no breaking paintings, item frames or armor stands. Chests, crafting tables, doors and NPCs keep working. |
| Explosion protection | Explosions don't break blocks or hurt players, items or whitelisted entities inside the zone. |
| Protect whitelisted entities | Villagers, pets, NPCs… on the whitelist take no damage (melee, projectiles, fire). |
| Anti-trample | No crop trampling and no mob griefing (endermen, door-breaking zombies…). |
| Block mob spawns | Cancels spawns of mobs not on the whitelist. |
| Anti-mob barrier | Pushes non-whitelisted mobs away from the border and removes the ones inside (with a per-tick budget for performance). |
| Regeneration | Continuously heals players inside the zone. |
âś… Players can always drop and pick up items inside zones.
âś… Tamed pets, name-tagged mobs and leashed mobs are never removed.
## đź§ľ Whitelist formats
- minecraft:villager — a single entity
- customnpcs:* — every entity from a mod
- #minecraft:raiders — an entity type tag
## ⌨️ Backup commands
/spawnprote menu · /spawnprote candado · /spawnprote lista · /spawnprote aqui · /spawnprote recargar
## 📦 Installation
- Minecraft 1.20.1 · Forge 47.2.0+ · Java 17
- Install on both server and client (the item and the menu need it on both sides).
- Config: config/spawnprote-common.toml · Zones: config/spawnprote/zonas.json
> The in-game interface and messages are in Spanish.
## âť“ FAQ
Does it work in singleplayer? Yes, with cheats enabled (OP).
Can I use it in my modpack? Yes.
Compatible with Limited Lives / PlayerRevive / CustomNPCs? Yes — spectators are never touched and CustomNPCs is whitelisted by default.
---
# 🇪🇸 SpawnProte (Español)
Protege tu spawn, pueblos y refugios con un solo candado y un menú visual para moderadores — sin comandos ni archivos que editar a mano.
## ✨ CaracterĂsticas
- Un solo Ătem, cero comandos — el Candado de Zonas:
- Clic izquierdo en un bloque → Esquina 1
- Clic derecho en un bloque → Esquina 2
- Clic derecho al aire → abre el menú de zonas
- Editor visual — nombre, dimensiĂłn, coordenadas, AquĂ, Altura completa, interruptores de reglas y lista de excepciones.
- Bordes con partĂculas — ve tu selecciĂłn, las zonas cercanas y los bordes completos.
- Solo moderadores — nivel OP configurable o lista de nombres/UUIDs extra. Todo se valida en el servidor.
- Varias dimensiones y zonas solapadas — las reglas se suman; la zona más pequeña manda en nombre y regeneración.
- JSON seguro — escritura atómica, archivo .bak y respaldos con fecha. Si el archivo se daña, se recupera solo.
- Ideal tras pegar con WorldEdit o Litematica.
## 🛡️ Reglas por zona
- Modo aventura: Supervivencia → Aventura al entrar y de vuelta al salir. Nunca toca Espectador ni Creativo.
- Proteger bloques: no se rompe ni coloca nada; cofres, mesas, puertas y NPCs siguen funcionando.
- Anti-explosiones: las explosiones no rompen bloques ni dañan a jugadores, Ătems ni entidades permitidas.
- Proteger permitidas: las entidades de la lista no reciben daño.
- Anti-pisoteo: sin pisotear cultivos ni destrozos de mobs.
- Bloquear spawn: no aparecen mobs que no estén permitidos.
- Barrera anti-mobs: empuja a los mobs fuera del borde y elimina a los que estén dentro.
- RegeneraciĂłn: cura continuamente a los jugadores.
âś… Siempre se puede tirar y recoger Ătems dentro de las zonas.
## 📦 Instalación
Minecraft 1.20.1 · Forge 47.2.0+ · Java 17. Instálalo en el servidor y en los clientes.