Generador de Addons - VideojuCan
by CosmicCobra5975 lines2.6 KB
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Generador de Addons - VideojuCan</title>
<style>
* { margin:0; padding:0; box-sizing:border-box; }
body {
background:#1a1a2e; color:#eee;
font-family:'Segoe UI',sans-serif;
min-height:100vh; display:flex;
justify-content:center; align-items:center;
padding:20px;
}
.box {
background:#16213e; padding:2rem;
border-radius:16px; border:2px solid #9b59b6;
box-shadow:0 0 30px rgba(155,89,182,0.3);
max-width:550px; width:100%; text-align:center;
}
h1 { color:#f1c40f; margin-bottom:0.5rem; }
textarea {
width:100%; height:300px;
background:#0a0a1a; color:#0f0;
border:2px solid #333; border-radius:10px;
padding:1rem; font-family:'Courier New',monospace;
font-size:0.8rem; resize:vertical; outline:none;
}
textarea:focus { border-color:#9b59b6; }
.btn {
display:block; width:100%;
background:#f1c40f; color:#000;
padding:1rem; font-size:1.2rem;
font-weight:bold; border:none;
border-radius:10px; cursor:pointer;
margin-top:1rem;
}
.btn:active { background:#fff; }
#msg { margin-top:0.8rem; color:#f1c40f; font-size:0.9rem; }
</style>
</head>
<body>
<div class="box">
<h1>🧩 Generador de Addons</h1>
<textarea id="code" placeholder="Pega aquí el código JSON de tu addon..."></textarea>
<button class="btn" onclick="descargar()">⬇️ DESCARGAR E INSTALAR</button>
<div id="msg"></div>
</div>
<script>
function descargar() {
const msg = document.getElementById('msg');
const code = document.getElementById('code').value.trim();
if (!code) { msg.textContent = '⚠️ Pega el código del addon primero.'; return; }
try {
const data = JSON.parse(code);
const blob = new Blob([JSON.stringify(data)], { type: 'application/octet-stream' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'Addon_VideojuCan.mcaddon';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
// Abrir automáticamente
window.location.href = url;
msg.innerHTML = '✅ ¡Instalando en Minecraft!';
} catch(e) {
msg.textContent = '❌ JSON inválido. Revisa el código.';
}
}
</script>
</body>
</html>Game Source: Generador de Addons - VideojuCan
Creator: CosmicCobra59
Libraries: none
Complexity: moderate (75 lines, 2.6 KB)
The full source code is displayed above on this page.
Remix Instructions
To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: generador-de-addons-videojucan-cosmiccobra59" to link back to the original. Then publish at arcadelab.ai/publish.