Skip to content

Instantly share code, notes, and snippets.

@pstaender
Created May 27, 2025 07:14
Show Gist options
  • Save pstaender/bfee603c7199333d3719baf6a541f267 to your computer and use it in GitHub Desktop.
Save pstaender/bfee603c7199333d3719baf6a541f267 to your computer and use it in GitHub Desktop.
Minecraft Builder Pyramide
def on_chat():
# Teleport agent to player
agent.teleport_to_player()
# Set up the builder at the agent's position
builder.teleport_to(agent.get_position())
for i in range(10, 1, -2):
builder.mark() # Mark start
# Build the base of the pyramid
builder.move(FORWARD, i)
builder.raise_wall(SMOOTH_SANDSTONE, 1)
builder.turn(LEFT_TURN)
builder.move(FORWARD, i)
builder.raise_wall(SMOOTH_SANDSTONE, 1)
builder.turn(LEFT_TURN)
builder.move(FORWARD, i)
builder.raise_wall(SMOOTH_SANDSTONE, 1)
builder.turn(LEFT_TURN)
builder.move(FORWARD, i)
builder.raise_wall(SMOOTH_SANDSTONE, 1)
# Move to the next level
builder.turn(LEFT_TURN)
builder.move(UP, 1)
builder.move(LEFT, 1)
builder.move(FORWARD, 1)
player.say("fertig!")
player.on_chat("pyramide", on_chat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment