Skip to content

Commit

Permalink
Add basic pathfinding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Jun 13, 2024
1 parent 5d4c6d4 commit e61bad1
Show file tree
Hide file tree
Showing 2 changed files with 228 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
DataVersion: 3953,
size: [3, 4, 7],
data: [
{pos: [0, 0, 0], state: "minecraft:bedrock"},
{pos: [0, 0, 1], state: "minecraft:command_block{conditional:false,facing:up}", nbt: {Command: "summon zombie ~ ~1 ~ {PersistenceRequired:1b}", SuccessCount: 0, TrackOutput: 1b, UpdateLastExecution: 1b, auto: 0b, conditionMet: 0b, id: "minecraft:command_block", powered: 0b}},
{pos: [0, 0, 2], state: "minecraft:red_terracotta"},
{pos: [0, 0, 3], state: "minecraft:bedrock"},
{pos: [0, 0, 4], state: "minecraft:bedrock"},
{pos: [0, 0, 5], state: "minecraft:bedrock"},
{pos: [0, 0, 6], state: "minecraft:bedrock"},
{pos: [1, 0, 0], state: "minecraft:bedrock"},
{pos: [1, 0, 1], state: "minecraft:bedrock"},
{pos: [1, 0, 2], state: "minecraft:bedrock"},
{pos: [1, 0, 3], state: "minecraft:bedrock"},
{pos: [1, 0, 4], state: "minecraft:bedrock"},
{pos: [1, 0, 5], state: "minecraft:bedrock"},
{pos: [1, 0, 6], state: "minecraft:bedrock"},
{pos: [2, 0, 0], state: "minecraft:red_terracotta"},
{pos: [2, 0, 1], state: "minecraft:command_block{conditional:false,facing:up}", nbt: {Command: "summon villager ~ ~1 ~", SuccessCount: 0, TrackOutput: 1b, UpdateLastExecution: 1b, auto: 0b, conditionMet: 0b, id: "minecraft:command_block", powered: 0b}},
{pos: [2, 0, 2], state: "minecraft:bedrock"},
{pos: [2, 0, 3], state: "minecraft:bedrock"},
{pos: [2, 0, 4], state: "minecraft:bedrock"},
{pos: [2, 0, 5], state: "minecraft:bedrock"},
{pos: [2, 0, 6], state: "minecraft:bedrock"},
{pos: [0, 1, 0], state: "minecraft:glass"},
{pos: [0, 1, 1], state: "minecraft:stone_pressure_plate{powered:false}"},
{pos: [0, 1, 2], state: "minecraft:repeater{delay:4,facing:north,locked:false,powered:false}"},
{pos: [0, 1, 3], state: "minecraft:repeater{delay:4,facing:north,locked:false,powered:false}"},
{pos: [0, 1, 4], state: "minecraft:repeater{delay:4,facing:north,locked:false,powered:false}"},
{pos: [0, 1, 5], state: "minecraft:repeater{delay:4,facing:north,locked:false,powered:false}"},
{pos: [0, 1, 6], state: "minecraft:white_concrete"},
{pos: [1, 1, 0], state: "minecraft:glass"},
{pos: [1, 1, 1], state: "minecraft:lava{level:0}"},
{pos: [1, 1, 2], state: "minecraft:glass"},
{pos: [1, 1, 3], state: "minecraft:air"},
{pos: [1, 1, 4], state: "minecraft:air"},
{pos: [1, 1, 5], state: "minecraft:air"},
{pos: [1, 1, 6], state: "minecraft:repeater{delay:4,facing:west,locked:false,powered:false}"},
{pos: [2, 1, 0], state: "minecraft:glass"},
{pos: [2, 1, 1], state: "minecraft:stone_pressure_plate{powered:false}"},
{pos: [2, 1, 2], state: "minecraft:glass"},
{pos: [2, 1, 3], state: "minecraft:green_wool"},
{pos: [2, 1, 4], state: "minecraft:repeater{delay:4,facing:south,locked:false,powered:false}"},
{pos: [2, 1, 5], state: "minecraft:repeater{delay:4,facing:south,locked:false,powered:false}"},
{pos: [2, 1, 6], state: "minecraft:white_concrete"},
{pos: [0, 2, 0], state: "minecraft:glass"},
{pos: [0, 2, 1], state: "minecraft:air"},
{pos: [0, 2, 2], state: "minecraft:glass"},
{pos: [0, 2, 3], state: "minecraft:air"},
{pos: [0, 2, 4], state: "minecraft:air"},
{pos: [0, 2, 5], state: "minecraft:air"},
{pos: [0, 2, 6], state: "minecraft:air"},
{pos: [1, 2, 0], state: "minecraft:glass"},
{pos: [1, 2, 1], state: "minecraft:air"},
{pos: [1, 2, 2], state: "minecraft:glass"},
{pos: [1, 2, 3], state: "minecraft:air"},
{pos: [1, 2, 4], state: "minecraft:air"},
{pos: [1, 2, 5], state: "minecraft:air"},
{pos: [1, 2, 6], state: "minecraft:air"},
{pos: [2, 2, 0], state: "minecraft:glass"},
{pos: [2, 2, 1], state: "minecraft:air"},
{pos: [2, 2, 2], state: "minecraft:glass"},
{pos: [2, 2, 3], state: "minecraft:note_block{instrument:guitar,note:0,powered:false}"},
{pos: [2, 2, 4], state: "minecraft:air"},
{pos: [2, 2, 5], state: "minecraft:air"},
{pos: [2, 2, 6], state: "minecraft:air"},
{pos: [0, 3, 0], state: "minecraft:tinted_glass"},
{pos: [0, 3, 1], state: "minecraft:tinted_glass"},
{pos: [0, 3, 2], state: "minecraft:tinted_glass"},
{pos: [0, 3, 3], state: "minecraft:air"},
{pos: [0, 3, 4], state: "minecraft:air"},
{pos: [0, 3, 5], state: "minecraft:air"},
{pos: [0, 3, 6], state: "minecraft:air"},
{pos: [1, 3, 0], state: "minecraft:tinted_glass"},
{pos: [1, 3, 1], state: "minecraft:tinted_glass"},
{pos: [1, 3, 2], state: "minecraft:tinted_glass"},
{pos: [1, 3, 3], state: "minecraft:air"},
{pos: [1, 3, 4], state: "minecraft:air"},
{pos: [1, 3, 5], state: "minecraft:air"},
{pos: [1, 3, 6], state: "minecraft:air"},
{pos: [2, 3, 0], state: "minecraft:tinted_glass"},
{pos: [2, 3, 1], state: "minecraft:tinted_glass"},
{pos: [2, 3, 2], state: "minecraft:tinted_glass"},
{pos: [2, 3, 3], state: "minecraft:air"},
{pos: [2, 3, 4], state: "minecraft:air"},
{pos: [2, 3, 5], state: "minecraft:air"},
{pos: [2, 3, 6], state: "minecraft:air"}
],
entities: [],
palette: [
"minecraft:bedrock",
"minecraft:red_terracotta",
"minecraft:glass",
"minecraft:white_concrete",
"minecraft:green_wool",
"minecraft:note_block{instrument:guitar,note:0,powered:false}",
"minecraft:tinted_glass",
"minecraft:stone_pressure_plate{powered:false}",
"minecraft:repeater{delay:4,facing:north,locked:false,powered:false}",
"minecraft:lava{level:0}",
"minecraft:air",
"minecraft:repeater{delay:4,facing:west,locked:false,powered:false}",
"minecraft:repeater{delay:4,facing:south,locked:false,powered:false}",
"minecraft:command_block{conditional:false,facing:up}"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
{
DataVersion: 3953,
size: [5, 4, 5],
data: [
{pos: [0, 0, 0], state: "minecraft:command_block{conditional:false,facing:up}", nbt: {Command: "summon zombie ~ ~1 ~ {PersistenceRequired:1b}", SuccessCount: 0, TrackOutput: 1b, UpdateLastExecution: 1b, auto: 0b, conditionMet: 0b, id: "minecraft:command_block", powered: 0b}},
{pos: [0, 0, 1], state: "minecraft:red_terracotta"},
{pos: [0, 0, 2], state: "minecraft:bedrock"},
{pos: [0, 0, 3], state: "minecraft:bedrock"},
{pos: [0, 0, 4], state: "minecraft:bedrock"},
{pos: [1, 0, 0], state: "minecraft:bedrock"},
{pos: [1, 0, 1], state: "minecraft:bedrock"},
{pos: [1, 0, 2], state: "minecraft:bedrock"},
{pos: [1, 0, 3], state: "minecraft:bedrock"},
{pos: [1, 0, 4], state: "minecraft:red_wool"},
{pos: [2, 0, 0], state: "minecraft:bedrock"},
{pos: [2, 0, 1], state: "minecraft:bedrock"},
{pos: [2, 0, 2], state: "minecraft:bedrock"},
{pos: [2, 0, 3], state: "minecraft:bedrock"},
{pos: [2, 0, 4], state: "minecraft:bedrock"},
{pos: [3, 0, 0], state: "minecraft:bedrock"},
{pos: [3, 0, 1], state: "minecraft:bedrock"},
{pos: [3, 0, 2], state: "minecraft:bedrock"},
{pos: [3, 0, 3], state: "minecraft:bedrock"},
{pos: [3, 0, 4], state: "minecraft:green_wool"},
{pos: [4, 0, 0], state: "minecraft:bedrock"},
{pos: [4, 0, 1], state: "minecraft:bedrock"},
{pos: [4, 0, 2], state: "minecraft:bedrock"},
{pos: [4, 0, 3], state: "minecraft:red_terracotta"},
{pos: [4, 0, 4], state: "minecraft:command_block{conditional:false,facing:up}", nbt: {Command: "summon villager ~ ~1 ~", SuccessCount: 0, TrackOutput: 1b, UpdateLastExecution: 1b, auto: 0b, conditionMet: 0b, id: "minecraft:command_block", powered: 0b}},
{pos: [0, 1, 0], state: "minecraft:air"},
{pos: [0, 1, 1], state: "minecraft:air"},
{pos: [0, 1, 2], state: "minecraft:white_stained_glass"},
{pos: [0, 1, 3], state: "minecraft:white_stained_glass"},
{pos: [0, 1, 4], state: "minecraft:white_stained_glass"},
{pos: [1, 1, 0], state: "minecraft:air"},
{pos: [1, 1, 1], state: "minecraft:stone_pressure_plate{powered:false}"},
{pos: [1, 1, 2], state: "minecraft:air"},
{pos: [1, 1, 3], state: "minecraft:stone_pressure_plate{powered:false}"},
{pos: [1, 1, 4], state: "minecraft:note_block{instrument:guitar,note:0,powered:false}"},
{pos: [2, 1, 0], state: "minecraft:white_stained_glass"},
{pos: [2, 1, 1], state: "minecraft:water{level:0}"},
{pos: [2, 1, 2], state: "minecraft:white_stained_glass"},
{pos: [2, 1, 3], state: "minecraft:lava{level:0}"},
{pos: [2, 1, 4], state: "minecraft:white_stained_glass"},
{pos: [3, 1, 0], state: "minecraft:white_stained_glass"},
{pos: [3, 1, 1], state: "minecraft:water{level:0}"},
{pos: [3, 1, 2], state: "minecraft:water{level:0}"},
{pos: [3, 1, 3], state: "minecraft:stone_pressure_plate{powered:false}"},
{pos: [3, 1, 4], state: "minecraft:note_block{instrument:guitar,note:0,powered:false}"},
{pos: [4, 1, 0], state: "minecraft:white_stained_glass"},
{pos: [4, 1, 1], state: "minecraft:white_stained_glass"},
{pos: [4, 1, 2], state: "minecraft:white_stained_glass"},
{pos: [4, 1, 3], state: "minecraft:white_stained_glass"},
{pos: [4, 1, 4], state: "minecraft:air"},
{pos: [0, 2, 0], state: "minecraft:air"},
{pos: [0, 2, 1], state: "minecraft:air"},
{pos: [0, 2, 2], state: "minecraft:white_stained_glass"},
{pos: [0, 2, 3], state: "minecraft:white_stained_glass"},
{pos: [0, 2, 4], state: "minecraft:white_stained_glass"},
{pos: [1, 2, 0], state: "minecraft:air"},
{pos: [1, 2, 1], state: "minecraft:air"},
{pos: [1, 2, 2], state: "minecraft:air"},
{pos: [1, 2, 3], state: "minecraft:air"},
{pos: [1, 2, 4], state: "minecraft:white_stained_glass"},
{pos: [2, 2, 0], state: "minecraft:white_stained_glass"},
{pos: [2, 2, 1], state: "minecraft:air"},
{pos: [2, 2, 2], state: "minecraft:air"},
{pos: [2, 2, 3], state: "minecraft:air"},
{pos: [2, 2, 4], state: "minecraft:white_stained_glass"},
{pos: [3, 2, 0], state: "minecraft:white_stained_glass"},
{pos: [3, 2, 1], state: "minecraft:air"},
{pos: [3, 2, 2], state: "minecraft:air"},
{pos: [3, 2, 3], state: "minecraft:air"},
{pos: [3, 2, 4], state: "minecraft:stone_pressure_plate{powered:false}"},
{pos: [4, 2, 0], state: "minecraft:white_stained_glass"},
{pos: [4, 2, 1], state: "minecraft:white_stained_glass"},
{pos: [4, 2, 2], state: "minecraft:white_stained_glass"},
{pos: [4, 2, 3], state: "minecraft:air"},
{pos: [4, 2, 4], state: "minecraft:air"},
{pos: [0, 3, 0], state: "minecraft:tinted_glass"},
{pos: [0, 3, 1], state: "minecraft:tinted_glass"},
{pos: [0, 3, 2], state: "minecraft:tinted_glass"},
{pos: [0, 3, 3], state: "minecraft:tinted_glass"},
{pos: [0, 3, 4], state: "minecraft:tinted_glass"},
{pos: [1, 3, 0], state: "minecraft:tinted_glass"},
{pos: [1, 3, 1], state: "minecraft:tinted_glass"},
{pos: [1, 3, 2], state: "minecraft:tinted_glass"},
{pos: [1, 3, 3], state: "minecraft:tinted_glass"},
{pos: [1, 3, 4], state: "minecraft:tinted_glass"},
{pos: [2, 3, 0], state: "minecraft:tinted_glass"},
{pos: [2, 3, 1], state: "minecraft:tinted_glass"},
{pos: [2, 3, 2], state: "minecraft:tinted_glass"},
{pos: [2, 3, 3], state: "minecraft:tinted_glass"},
{pos: [2, 3, 4], state: "minecraft:tinted_glass"},
{pos: [3, 3, 0], state: "minecraft:tinted_glass"},
{pos: [3, 3, 1], state: "minecraft:tinted_glass"},
{pos: [3, 3, 2], state: "minecraft:tinted_glass"},
{pos: [3, 3, 3], state: "minecraft:tinted_glass"},
{pos: [3, 3, 4], state: "minecraft:tinted_glass"},
{pos: [4, 3, 0], state: "minecraft:tinted_glass"},
{pos: [4, 3, 1], state: "minecraft:tinted_glass"},
{pos: [4, 3, 2], state: "minecraft:tinted_glass"},
{pos: [4, 3, 3], state: "minecraft:tinted_glass"},
{pos: [4, 3, 4], state: "minecraft:tinted_glass"}
],
entities: [],
palette: [
"minecraft:red_terracotta",
"minecraft:bedrock",
"minecraft:red_wool",
"minecraft:green_wool",
"minecraft:white_stained_glass",
"minecraft:note_block{instrument:guitar,note:0,powered:false}",
"minecraft:tinted_glass",
"minecraft:air",
"minecraft:stone_pressure_plate{powered:false}",
"minecraft:water{level:0}",
"minecraft:lava{level:0}",
"minecraft:command_block{conditional:false,facing:up}"
]
}

0 comments on commit e61bad1

Please sign in to comment.