Load Events
import stdlib
from stdlib import event
def on_load():
text.tellraw("@a", text.colored("Ready", "green"))
stdlib.addEventListener(event.LOAD, on_load)
Minecraft Java Edition 26.1.2 · Pack Format 101.1
A modern, Python-like language for creating Minecraft data packs with functions, events, resources, validation, and generated metadata.
0.9.0 stable · Minecraft Java Edition 26.1.2
Examples
Cobble stays close to Minecraft output while removing repetitive function and resource boilerplate.
import stdlib
from stdlib import event
def on_load():
text.tellraw("@a", text.colored("Ready", "green"))
stdlib.addEventListener(event.LOAD, on_load)def reward(player):
/give {player} minecraft:diamond_sword[
minecraft:custom_name='{"text":"Cobble Blade"}'
] 1from stdlib import datapack
datapack.function_tag("minecraft:load", ["demo:on_load"])
datapack.predicate("checks/always", {
"condition": "minecraft:random_chance",
"chance": 1
})In Browser
The Rust parser and transpiler run through WebAssembly. The compiler view shows functions, resources, metadata, diagnostics, and ZIP output.