Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/connectible/fences/fence.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "fence_connection",
"description": "Tests fence connection behavior across different wood types (oak, birch, jungle, spruce, dark_oak, mangrove, cherry, acacia, pale_oak, warped, crimson, bamboo) and validates connections/disconnections with non-fence blocks.",
"tags": ["connectible", "fence", "wood-types", "block-state", "neighbor-update"],
Expand Down
1 change: 1 addition & 0 deletions tests/connectible/fences/fence_row_connections.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"name": "fence_row_connections",
"description": "Places fences in a row, one per tick, and verifies they connect to each other",
"tags": ["connectible", "fence", "wood-types", "block-state", "neighbor-update"],
Expand Down
36 changes: 36 additions & 0 deletions tests/connectible/fences/place_fence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "place_fence",
"description": "Tests fence connection behavior across different wood types (oak, birch, jungle, spruce, dark_oak, mangrove, cherry, acacia, pale_oak, warped, crimson, bamboo) and validates connections/disconnections with non-fence blocks.",
"tags": ["connectible", "fence", "wood-types", "block-state", "neighbor-update"],
"minecraftIds": ["minecraft:oak_fence"],
"dependencies": [],
"setup": {
"cleanup": {
"region": [ [0, 0, 0], [0, 1, 0] ]
}
},
"timeline": [
{ "at": 0, "do": "place", "pos": [0, 0, 0], "block": {"id": "minecraft:stone"} },
{
"at": 1,
"do": "assert",
"checks": [
{ "pos": [0, 0, 0], "is": {"id": "minecraft:stone"} }
]
},
{ "at": 1, "do": "use_item_on", "pos": [0, 0, 0], "face": "top", "item": "oak_fence" },
{
"at": 2,
"do": "assert",
"checks": [
{ "pos": [0, 0, 0], "is": {"id": "minecraft:stone"} },
{ "pos": [0, 1, 0], "is": {"id": "minecraft:oak_fence"} },
{ "is": "empty" , "slot": "hotbar1" }
]
}
],
"breakpoints": []
}

2 changes: 1 addition & 1 deletion tests/connectible/iron.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "connectible_iron",
"description": "Tests iron bars connection behavior with adjacent blocks (solid blocks, barriers, walls, pane-type blocks) and validates correct directional connection states.",
"tags": ["connectible", "bars", "iron-bars", "block-state", "neighbor-update"],
Expand Down
3 changes: 2 additions & 1 deletion tests/connectible/walls/chain_in_wall.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "chain_in_wall",
"description": "Recorded test: chain_in_wall",
"tags": ["wall", "chain", "connectible"],
"minecraftIds": ["minecraft:cobblestone_wall"],
"dependencies": [],
"setup": {
"cleanup": {
Expand Down
3 changes: 2 additions & 1 deletion tests/connectible/walls/fence_gate_in_wall.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "fence_gate_in_wall",
"description": "Recorded test: fence_gate_in_wall",
"tags": ["wall", "fence_gate", "connectible"],
"minecraftIds": ["minecraft:cobblestone_wall"],
"dependencies": [],
"setup": {
"cleanup": {
Expand Down
2 changes: 1 addition & 1 deletion tests/connectible/walls/fence_in_wall.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "fence_in_wall",
"description": "Recorded test: fence_in_wall",
"tags": ["wall", "fence", "connectible"],
Expand Down
3 changes: 2 additions & 1 deletion tests/connectible/walls/fences_over_walls.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "fences_over_walls",
"description": "Recorded test: fences_over_walls",
"tags": ["wall", "fence", "connectible"],
"minecraftIds": ["minecraft:cobblestone_wall"],
"dependencies": [],
"setup": {
"cleanup": {
Expand Down
3 changes: 2 additions & 1 deletion tests/connectible/walls/glass_panel_in_wall.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "glass_panel_in_wall",
"description": "Recorded test: glass_panel_in_wall",
"tags": ["wall", "glass", "connectible"],
"minecraftIds": ["minecraft:cobblestone_wall"],
"dependencies": [],
"setup": {
"cleanup": {
Expand Down
3 changes: 2 additions & 1 deletion tests/connectible/walls/iron_bars_in_wall.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "iron_bars_in_wall",
"description": "Recorded test: iron_bars_in_wall",
"tags": ["wall", "bars", "connectible"],
"minecraftIds": ["minecraft:cobblestone_wall"],
"dependencies": [],
"setup": {
"cleanup": {
Expand Down
3 changes: 2 additions & 1 deletion tests/connectible/walls/wall-2-to-3-length.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "walls",
"description": "Recorded test: walls",
"tags": ["wall", "connectible"],
"minecraftIds": ["minecraft:cobblestone_wall"],
"dependencies": [],
"setup": {
"cleanup": {
Expand Down
3 changes: 2 additions & 1 deletion tests/connectible/walls/wall.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "connectible_wall",
"description": "Tests cobblestone wall connection behavior with adjacent blocks (solid blocks, fences, walls, barriers) and validates correct directional state updates.",
"tags": ["connectible", "wall", "block-state", "neighbor-update"],
"minecraftIds": ["minecraft:cobblestone_wall"],
"dependencies": [],
"setup": {
"cleanup": {
Expand Down
3 changes: 2 additions & 1 deletion tests/connectible/walls/walls_wall.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": null,
"flintVersion": "0.0.0",
"name": "walls_wall",
"description": "Recorded test: walls_wall",
"tags": ["wall", "connectible", "block-state", "neighbor-update"],
"minecraftIds": ["minecraft:cobblestone_wall"],
"dependencies": [],
"setup": {
"cleanup": {
Expand Down
4 changes: 3 additions & 1 deletion tests/fluids/mixing.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"name": "water_mixing_with_lava",
"description": "Water converts lava source to obsidian",
"tags": ["interaction", "lava"],
"minecraftIds": ["minecraft:water", "minecraft:lava"],
"setup": {
"cleanup": {
"region": [ [0, 0, 0], [6, 5, 4] ]
Expand Down
4 changes: 3 additions & 1 deletion tests/fluids/water/corner_flow.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_corner_flow",
"description": "Water flows around corners properly",
"tags": ["corner", "flow"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/downward_flow.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_basic_downward_flow",
"description": "Water flows downward when placed above air",
"tags": ["basic", "flow", "gravity"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/downward_priority.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_downward_priority",
"description": "Water prioritizes flowing down over horizontal spread",
"tags": ["priority", "flow"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/falling_state.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_falling_state",
"description": "Water sets falling=true when flowing downward",
"tags": ["state", "falling"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/flowing_state.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_flowing_state",
"description": "Water has correct flowing state when not at source level",
"tags": ["state", "flow"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/horizontal_spread.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_horizontal_spread",
"description": "Water spreads horizontally up to 4 blocks from source",
"tags": ["basic", "flow", "horizontal"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/infinite_source.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_infinite_source_creation",
"description": "Two source blocks create infinite source when diagonally adjacent",
"tags": ["infinite", "source"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/level_decrease.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_level_decrease",
"description": "Water level decreases by 1 per block horizontally",
"tags": ["level", "flow"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/max_spread_distance.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_max_spread_distance",
"description": "Water spreads exactly 7 blocks from source on flat surface",
"tags": ["distance", "limit"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/pool_formation.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_pool_formation",
"description": "Water fills a pool evenly from single source",
"tags": ["pool", "fill"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/ravine_fill.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_ravine_fill",
"description": "Water fills a ravine from top to bottom",
"tags": ["ravine", "fill", "complex"],
Expand Down
4 changes: 3 additions & 1 deletion tests/fluids/water/replacement.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_replacement_behavior",
"description": "Water can replace certain non-solid blocks",
"tags": ["replacement", "block"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/shortest_path.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_spreading_priority_shortest_path",
"description": "Water takes shortest path to lower ground",
"tags": ["pathfinding", "priority"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/source_removal.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_source_removal",
"description": "Flowing water disappears when source is removed",
"tags": ["source", "removal"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/stability.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_tick_rate_consistency",
"description": "Water updates consistently with 5-tick rate",
"tags": ["timing", "tick"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/stair_flow.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_stair_flow",
"description": "Water flows down stairs correctly",
"tags": ["stairs", "flow"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/three_source_infinite.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_three_source_infinite",
"description": "Three adjacent source blocks create stable infinite sources",
"tags": ["infinite", "source", "stable"],
Expand Down
2 changes: 2 additions & 0 deletions tests/fluids/water/u_shape.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"minecraftIds": ["minecraft:water"],
"name": "water_u_shape_flow",
"description": "Water flows around obstacles in U-shaped channel",
"tags": ["pathfinding", "complex"],
Expand Down
4 changes: 3 additions & 1 deletion tests/fluids/water/vertical_column.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "0.0.0",
"name": "water_vertical_column",
"description": "Water creates continuous vertical column when falling",
"description": "Water creates continuous vertical column when falling",
"minecraftIds": ["minecraft:water"],
"tags": ["vertical", "falling"],
"setup": {
"cleanup": {
Expand Down
Loading
Loading