Created
May 27, 2025 07:14
-
-
Save pstaender/bfee603c7199333d3719baf6a541f267 to your computer and use it in GitHub Desktop.
Minecraft Builder Pyramide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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