Skip to content
Open
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
43 changes: 43 additions & 0 deletions tests/blocks/falling/concrete_powder_hardens_beside_water.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.0.0",
"name": "concrete_powder_hardens_beside_water",
"description": "Supported blue concrete powder hardens when a neighboring water source is added beside it.",
"tags": ["blocks", "falling-block", "concrete-powder", "water", "hardening", "neighbor-update"],
"minecraftIds": ["minecraft:blue_concrete_powder"],
"dependencies": [],
"setup": {
"cleanup": {
"region": [ [0, 0, 0], [1, 1, 0] ]
}
},
"timeline": [
{
"at": 0,
"do": "place_each",
"blocks": [
{ "pos": [0, 0, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [1, 0, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [0, 1, 0], "block": {"id": "minecraft:blue_concrete_powder"} }
]
},
{
"at": 3,
"do": "assert",
"checks": [
{ "pos": [0, 1, 0], "is": {"id": "minecraft:blue_concrete_powder"} }
]
},
{ "at": 3, "do": "place", "pos": [1, 1, 0], "block": {"id": "minecraft:water"} },
{
"at": 4,
"do": "assert",
"checks": [
{ "pos": [0, 1, 0], "is": {"id": "minecraft:blue_concrete"} },
{ "pos": [1, 1, 0], "is": {"id": "minecraft:water" } }
]
}
],
"breakpoints": []
}

53 changes: 53 additions & 0 deletions tests/blocks/falling/falling_concrete_powder_hardens_in_water.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.0.0",
"name": "falling_concrete_powder_hardens_in_water",
"description": "Unsupported red concrete powder becomes a falling block and hardens when it enters a contained water source.",
"tags": ["blocks", "falling-block", "concrete-powder", "water", "hardening", "settling"],
"minecraftIds": ["minecraft:red_concrete_powder"],
"dependencies": [],
"setup": {
"cleanup": {
"region": [ [-1, 0, -1], [1, 5, 1] ]
}
},
"timeline": [
{
"at": 0,
"do": "place_each",
"blocks": [
{ "pos": [ 0, 0, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [-1, 1, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [ 1, 1, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [ 0, 1, -1], "block": {"id": "minecraft:stone" } },
{ "pos": [ 0, 1, 1], "block": {"id": "minecraft:stone" } },
{ "pos": [ 0, 1, 0], "block": {"id": "minecraft:water" } },
{ "pos": [ 0, 5, 0], "block": {"id": "minecraft:red_concrete_powder"} }
]
},
{
"at": 1,
"do": "assert",
"checks": [
{ "pos": [0, 5, 0], "is": {"id": "minecraft:red_concrete_powder"} },
{ "pos": [0, 1, 0], "is": {"id": "minecraft:water" } }
]
},
{
"at": 2,
"do": "assert",
"checks": [
{ "pos": [0, 5, 0], "is": {"id": "minecraft:air"} }
]
},
{
"at": 24,
"do": "assert",
"checks": [
{ "pos": [0, 1, 0], "is": {"id": "minecraft:red_concrete"} }
]
}
],
"breakpoints": []
}

51 changes: 51 additions & 0 deletions tests/blocks/falling/stacked_falling_blocks_settle_in_order.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.0.0",
"name": "stacked_falling_blocks_settle_in_order",
"description": "A sand block and the gravel above it fall together and settle as an ordered two-block stack on the floor.",
"tags": ["blocks", "falling-block", "sand", "gravel", "stacked", "settling"],
"minecraftIds": ["minecraft:sand", "minecraft:gravel"],
"dependencies": [],
"setup": {
"cleanup": {
"region": [ [0, 0, 0], [0, 5, 0] ]
}
},
"timeline": [
{
"at": 0,
"do": "place_each",
"blocks": [
{ "pos": [0, 0, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [0, 4, 0], "block": {"id": "minecraft:sand" } },
{ "pos": [0, 5, 0], "block": {"id": "minecraft:gravel"} }
]
},
{
"at": 1,
"do": "assert",
"checks": [
{ "pos": [0, 4, 0], "is": {"id": "minecraft:sand" } },
{ "pos": [0, 5, 0], "is": {"id": "minecraft:gravel"} }
]
},
{
"at": 2,
"do": "assert",
"checks": [
{ "pos": [0, 4, 0], "is": {"id": "minecraft:air"} },
{ "pos": [0, 5, 0], "is": {"id": "minecraft:air"} }
]
},
{
"at": 24,
"do": "assert",
"checks": [
{ "pos": [0, 1, 0], "is": {"id": "minecraft:sand" } },
{ "pos": [0, 2, 0], "is": {"id": "minecraft:gravel"} }
]
}
],
"breakpoints": []
}

56 changes: 56 additions & 0 deletions tests/blocks/falling/support_removal_triggers_sand_fall.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.0.0",
"name": "support_removal_triggers_sand_fall",
"description": "Removing a settled sand block's support schedules a new falling check, after which the sand falls and settles on the lower floor.",
"tags": ["blocks", "falling-block", "sand", "support", "neighbor-update", "timing"],
"minecraftIds": ["minecraft:sand"],
"dependencies": [],
"setup": {
"cleanup": {
"region": [ [0, 0, 0], [0, 4, 0] ]
}
},
"timeline": [
{
"at": 0,
"do": "place_each",
"blocks": [
{ "pos": [0, 0, 0], "block": {"id": "minecraft:stone"} },
{ "pos": [0, 3, 0], "block": {"id": "minecraft:stone"} },
{ "pos": [0, 4, 0], "block": {"id": "minecraft:sand" } }
]
},
{
"at": 3,
"do": "assert",
"checks": [
{ "pos": [0, 4, 0], "is": {"id": "minecraft:sand"} }
]
},
{ "at": 3, "do": "remove", "pos": [0, 3, 0] },
{
"at": 4,
"do": "assert",
"checks": [
{ "pos": [0, 4, 0], "is": {"id": "minecraft:sand"} }
]
},
{
"at": 5,
"do": "assert",
"checks": [
{ "pos": [0, 4, 0], "is": {"id": "minecraft:air"} }
]
},
{
"at": 24,
"do": "assert",
"checks": [
{ "pos": [0, 1, 0], "is": {"id": "minecraft:sand"} }
]
}
],
"breakpoints": []
}

36 changes: 36 additions & 0 deletions tests/blocks/falling/supported_sand_and_gravel_stay_in_place.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.0.0",
"name": "supported_sand_and_gravel_stay_in_place",
"description": "Sand and gravel remain blocks after their scheduled falling checks when each has solid support.",
"tags": ["blocks", "falling-block", "sand", "gravel", "support", "timing"],
"minecraftIds": ["minecraft:sand", "minecraft:gravel"],
"dependencies": [],
"setup": {
"cleanup": {
"region": [ [-1, 0, 0], [1, 1, 0] ]
}
},
"timeline": [
{
"at": 0,
"do": "place_each",
"blocks": [
{ "pos": [-1, 0, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [ 1, 0, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [-1, 1, 0], "block": {"id": "minecraft:sand" } },
{ "pos": [ 1, 1, 0], "block": {"id": "minecraft:gravel"} }
]
},
{
"at": 3,
"do": "assert",
"checks": [
{ "pos": [-1, 1, 0], "is": {"id": "minecraft:sand" } },
{ "pos": [ 1, 1, 0], "is": {"id": "minecraft:gravel"} }
]
}
],
"breakpoints": []
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.0.0",
"name": "unsupported_sand_and_gravel_fall_after_delay",
"description": "Unsupported sand and gravel remain through the first tick, begin falling after Vanilla's two-tick scheduled delay, and settle on the floor.",
"tags": ["blocks", "falling-block", "sand", "gravel", "unsupported", "timing"],
"minecraftIds": ["minecraft:sand", "minecraft:gravel"],
"dependencies": [],
"setup": {
"cleanup": {
"region": [ [-1, 0, 0], [1, 3, 0] ]
}
},
"timeline": [
{
"at": 0,
"do": "place_each",
"blocks": [
{ "pos": [-1, 0, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [ 1, 0, 0], "block": {"id": "minecraft:stone" } },
{ "pos": [-1, 3, 0], "block": {"id": "minecraft:sand" } },
{ "pos": [ 1, 3, 0], "block": {"id": "minecraft:gravel"} }
]
},
{
"at": 1,
"do": "assert",
"checks": [
{ "pos": [-1, 3, 0], "is": {"id": "minecraft:sand" } },
{ "pos": [ 1, 3, 0], "is": {"id": "minecraft:gravel"} }
]
},
{
"at": 2,
"do": "assert",
"checks": [
{ "pos": [-1, 3, 0], "is": {"id": "minecraft:air"} },
{ "pos": [ 1, 3, 0], "is": {"id": "minecraft:air"} }
]
},
{
"at": 20,
"do": "assert",
"checks": [
{ "pos": [-1, 1, 0], "is": {"id": "minecraft:sand" } },
{ "pos": [ 1, 1, 0], "is": {"id": "minecraft:gravel"} }
]
}
],
"breakpoints": []
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.0.0",
"name": "water_below_stationary_concrete_powder_does_not_harden",
"description": "Yellow concrete powder supported by a waterlogged top slab remains powder because Vanilla excludes water only below from stationary hardening checks.",
"tags": ["blocks", "falling-block", "concrete-powder", "water", "hardening", "edge-case"],
"minecraftIds": ["minecraft:yellow_concrete_powder"],
"dependencies": [],
"setup": {
"cleanup": {
"region": [ [0, 0, 0], [0, 2, 0] ]
}
},
"timeline": [
{
"at": 0,
"do": "place_each",
"blocks": [
{ "pos": [0, 0, 0], "block": {"id": "minecraft:stone"} },
{ "pos": [0, 1, 0], "block": {"id": "minecraft:oak_slab", "type": "top", "waterlogged": true} },
{ "pos": [0, 2, 0], "block": {"id": "minecraft:yellow_concrete_powder"} }
]
},
{
"at": 3,
"do": "assert",
"checks": [
{ "pos": [0, 1, 0], "is": {"id": "minecraft:oak_slab", "type": "top", "waterlogged": true} },
{ "pos": [0, 2, 0], "is": {"id": "minecraft:yellow_concrete_powder"} }
]
}
],
"breakpoints": []
}