<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minecraft Code Platform</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Font Awesome -->
<link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!-- CodeMirror -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/dracula.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/mode/javascript/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/addon/edit/matchbrackets.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/addon/edit/closebrackets.min.js"></script>
</head>
<body class="bg-minecraft-gray min-h-screen font-minecraft">
<!-- Header -->
<header class="bg-gradient-to-r from-minecraft-dark-green to-minecraft-green animated-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-4">
<img src="https://p9-flow-imagex-sign.byteimg.com/tos-cn-i-a9rns2rl98/rc/pc/super_tool/e138f73c00bd473083d97e619a8a0c3b~tplv-a9rns2rl98-image.image?rcl=20251007095156DBD77A2F6AD28DB4BE00&rk3s=8e244e95&rrcfp=f06b921b&x-expires=1762393949&x-signature=vvBTIUKX7jUSu1lLfM%2BR6fdxiQ8%3D" alt="Minecraft
Code Platform Logo" class="h-16 w-16 animate-float">
<h1 class="text-3xl md:text-4xl font-bold text-shadow">Minecraft Code Platform</h1>
</div>
<div class="hidden md:flex items-center space-x-6">
<a href="#home" class="hover:text-yellow-300 transition-colors">Home</a>
<a href="#code-library" class="hover:text-yellow-300 transition-colors">Code Library</a>
<a href="#code-editor" class="hover:text-yellow-300 transition-colors">Code Editor</a>
<a href="#community" class="hover:text-yellow-300 transition-colors">Community</a>
<button class="bg-minecraft-brown hover:bg-amber-700 text-white py-2 px-4 rounded blocky-btn">
Sign In
</button>
</div>
<div class="md:hidden">
<button id="mobile-menu-button" class="text-white focus:outline-none">
<i class="fa fa-bars text-2xl"></i>
</button>
</div>
</div>
<!-- Mobile Menu -->
<div id="mobile-menu" class="md:hidden hidden bg-minecraft-dark-green">
<div class="container mx-auto px-4 py-2 flex flex-col space-y-2">
<a href="#home" class="block py-2 hover:text-yellow-300 transition-colors">Home</a>
<a href="#code-library" class="block py-2 hover:text-yellow-300 transition-colors">Code Library</a>
<a href="#code-editor" class="block py-2 hover:text-yellow-300 transition-colors">Code Editor</a>
<a href="#community" class="block py-2 hover:text-yellow-300 transition-colors">Community</a>
<button class="bg-minecraft-brown hover:bg-amber-700 text-white py-2 px-4 rounded blocky-btn w-full">
Sign In
</button>
</div>
</div>
</header>
const sword = new ItemStack(Material.DIAMOND_SWORD);
const meta = sword.getItemMeta();
meta.setDisplayName("Excalibur");
meta.addEnchant(Enchantment.DAMAGE_ALL, 10, true);
meta.addEnchant(Enchantment.FIRE_ASPECT, 5, true);
sword.setItemMeta(meta);
return sword;
}</pre>
</div>
<div class="flex justify-between items-center">
<span class="text-gray-500 text-sm">By Herobrine</span>
<button class="text-minecraft-green hover:text-minecraft-dark-green font-medium">
View Details
</button>
</div>
</div>
</div>
type: "detector",
position: {x: 10, y: 5, z: 15},
onDetect: function(entity) {
if (entity.type === "player") {
redstone.setBlockPower({x: 12, y: 5, z: 15}, 15);
setTimeout(() => {
redstone.setBlockPower({x: 12, y: 5, z: 15}, 0);
}, 3000);
}
}
});</pre>
</div>
<div class="flex justify-between items-center">
<span class="text-gray-500 text-sm">By Steve</span>
<button class="text-minecraft-green hover:text-minecraft-dark-green font-medium">
View Details
</button>
</div>
</div>
</div>
"type": "minecraft:biome",
"name": "crystal_caves",
"parameters": {
"depth": 0.1,
"scale": 0.2,
"temperature": 0.5,
"downfall": 0.7,
"category": "underground"
},
"surface_material": "minecraft:end_stone",
"ground_material": "minecraft:purpur_block"
}</pre>
</div>
<div class="flex justify-between items-center">
<span class="text-gray-500 text-sm">By Alex</span>
<button class="text-minecraft-green hover:text-minecraft-dark-green font-medium">
View Details
</button>
</div>
</div>
</div>
static setClear() {
world.setWeather(Weather.CLEAR, 6000);
}
static setRain() {
world.setWeather(Weather.RAIN, 6000);
}
static setThunder() {
world.setWeather(Weather.THUNDER, 6000);
}
static toggleStorm() {
const current = world.getWeather();
if (current === Weather.CLEAR) {
this.setThunder();
} else {
this.setClear();
}
}
}</pre>
</div>
<div class="flex justify-between items-center">
<span class="text-gray-500 text-sm">By Herobrine</span>
<button class="text-minecraft-green hover:text-minecraft-dark-green font-medium">
View Details
</button>
</div>
</div>
</div>
</div>