cobble-lang 0.6.3

A modern, Python-like language for creating Minecraft Data Packs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Hello World Example
# A simple example showing basic Cobble syntax

import stdlib
from stdlib import event

def hello():
    """Say hello to all players"""
    /say Hello from Cobble!
    /tellraw @a {"text":"Welcome to Cobble data packs!", "color":"green"}

def init():
    """Initialize the data pack"""
    /tellraw @a {"text":"Hello World pack loaded!", "color":"gold"}

# Register event handlers
stdlib.addEventListener(event.LOAD, init)