Paper fork: fallback build package when player position unavailable

This commit is contained in:
2026-03-15 23:27:46 -04:00
parent 0c2902de8a
commit 34697b5341
+8 -1
View File
@@ -1301,7 +1301,14 @@ def build_template_commands(player: str, prompt: str, config):
pos = get_player_xyz(player, config) pos = get_player_xyz(player, config)
if not pos: if not pos:
return [] return [
f"give {player} minecraft:oak_log 256",
f"give {player} minecraft:oak_planks 256",
f"give {player} minecraft:stone_bricks 256",
f"give {player} minecraft:torch 64",
f"give {player} minecraft:oak_door 4",
f"give {player} minecraft:glass 64",
]
x, y, z = pos x, y, z = pos
# Place slightly in front of player position to avoid trapping player. # Place slightly in front of player position to avoid trapping player.