Paper fork: fallback build package when player position unavailable
This commit is contained in:
+8
-1
@@ -1301,7 +1301,14 @@ def build_template_commands(player: str, prompt: str, config):
|
||||
|
||||
pos = get_player_xyz(player, config)
|
||||
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
|
||||
|
||||
# Place slightly in front of player position to avoid trapping player.
|
||||
|
||||
Reference in New Issue
Block a user