diff --git a/tests/blocks/decoration/chain/oxidized_copper_chain.json b/tests/blocks/decoration/chain/oxidized_copper_chain.json new file mode 100644 index 0000000..e0adc56 --- /dev/null +++ b/tests/blocks/decoration/chain/oxidized_copper_chain.json @@ -0,0 +1,34 @@ +{ + "$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json", + "flintVersion": "1.1", + "name": "oxidice_copper_chain", + "description": "Tests the weathering of copper chain", + "tags": ["chain", "copper", "weathering"], + "minecraftIds": ["minecraft:copper_chain", "minecraft:oxidized_copper_chain"], + "dependencies": [], + "setup": { + "cleanup": { + "region": [ [0, 0, 0], [0, 0, 0] ] + }, + "player": {"game_mode": "Survival"} + }, + "timeline": [ + { "at": 0, "do": "place", "pos": [0, 0, 0], "block": {"id": "copper_chain"} }, + { + "at": 1, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:copper_chain", "waterlogged": false, "axis": "y"} } + ] + }, + { + "at": 200000, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:oxidized_copper_chain", "waterlogged": false, "axis": "y"} } + ] + } + ], + "breakpoints": [] +} + diff --git a/tests/blocks/decoration/chain/place_chain.json b/tests/blocks/decoration/chain/place_chain.json new file mode 100644 index 0000000..b3d4900 --- /dev/null +++ b/tests/blocks/decoration/chain/place_chain.json @@ -0,0 +1,87 @@ +{ + "$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json", + "flintVersion": "1.1", + "name": "place_chain", + "description": "Tests the placing of chains", + "tags": ["chain"], + "minecraftIds": ["minecraft:iron_chain"], + "dependencies": [], + "setup": { + "cleanup": { + "region": [ [-1, 0, -1], [1, 1, 1] ] + }, + "player": {"game_mode": "Survival"} + }, + "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": "iron_chain" }, + { + "at": 2, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 1, 0], "is": {"id": "minecraft:iron_chain", "axis": "y", "waterlogged": false} }, + {"is": "empty", "slot": "hotbar1"} + ] + }, + { "at": 3, "do": "use_item_on", "pos": [0, 0, 0], "face": "east", "item": "iron_chain" }, + { + "at": 4, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 1, 0], "is": {"id": "minecraft:iron_chain", "axis": "y", "waterlogged": false} }, + { "pos": [1, 0, 0], "is": {"id": "minecraft:iron_chain", "axis": "x", "waterlogged": false} }, + {"is": "empty", "slot": "hotbar1"} + ] + }, + { "at": 5, "do": "use_item_on", "pos": [0, 0, 0], "face": "south", "item": "iron_chain" }, + { + "at": 6, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 1, 0], "is": {"id": "minecraft:iron_chain", "axis": "y", "waterlogged": false} }, + { "pos": [1, 0, 0], "is": {"id": "minecraft:iron_chain", "axis": "x", "waterlogged": false} }, + { "pos": [0, 0, 1], "is": {"id": "minecraft:iron_chain", "axis": "z", "waterlogged": false} }, + {"is": "empty", "slot": "hotbar1"} + ] + }, + { "at": 7, "do": "use_item_on", "pos": [0, 0, 0], "face": "west", "item": "iron_chain" }, + { + "at": 8, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 1, 0], "is": {"id": "minecraft:iron_chain", "axis": "y", "waterlogged": false} } , + { "pos": [1, 0, 0], "is": {"id": "minecraft:iron_chain", "axis": "x", "waterlogged": false} } , + { "pos": [0, 0, 1], "is": {"id": "minecraft:iron_chain", "axis": "z", "waterlogged": false} } , + { "pos": [-1, 0, 0], "is": {"id": "minecraft:iron_chain", "axis": "x", "waterlogged": false} }, + {"is": "empty", "slot": "hotbar1"} + ] + }, + { "at": 9, "do": "use_item_on", "pos": [0, 0, 0], "face": "north", "item": "iron_chain" }, + { + "at": 10, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 1, 0], "is": {"id": "minecraft:iron_chain", "axis": "y", "waterlogged": false} } , + { "pos": [1, 0, 0], "is": {"id": "minecraft:iron_chain", "axis": "x", "waterlogged": false} } , + { "pos": [0, 0, 1], "is": {"id": "minecraft:iron_chain", "axis": "z", "waterlogged": false} } , + { "pos": [-1, 0, 0], "is": {"id": "minecraft:iron_chain", "axis": "x", "waterlogged": false} }, + { "pos": [0, 0, -1], "is": {"id": "minecraft:iron_chain", "axis": "z", "waterlogged": false} }, + {"is": "empty", "slot": "hotbar1"} + ] + } + ], + "breakpoints": [] +} + diff --git a/tests/blocks/decoration/chain/unwaxing_copper_chain.json b/tests/blocks/decoration/chain/unwaxing_copper_chain.json new file mode 100644 index 0000000..fc24ac1 --- /dev/null +++ b/tests/blocks/decoration/chain/unwaxing_copper_chain.json @@ -0,0 +1,45 @@ +{ + "$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json", + "flintVersion": "1.1", + "name": "unwaxing_copper_chain", + "description": "Tests the unwaxing of copper chain", + "tags": ["chain", "copper", "weathering", "unwaxing"], + "minecraftIds": [ + "minecraft:copper_chain" , "minecraft:waxed_copper_chain" , "minecraft:iron_axe" , + "minecraft:oxidized_copper_chain" + ], + "dependencies": [], + "setup": { + "cleanup": { + "region": [ [0, 0, 0], [0, 0, 0] ] + }, + "player": {"game_mode": "Survival"} + }, + "timeline": [ + { "at": 0, "do": "place", "pos": [0, 0, 0], "block": {"id": "waxed_copper_chain"} }, + { + "at": 1, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:waxed_copper_chain", "waterlogged": false, "axis": "y"} } + ] + }, + { "at": 1, "do": "use_item_on", "pos": [0, 0, 0], "face": "top", "item": "iron_axe" }, + { + "at": 2, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:copper_chain", "waterlogged": false, "axis": "y"} } + ] + }, + { + "at": 200000, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:oxidized_copper_chain", "waterlogged": false, "axis": "y"} } + ] + } + ], + "breakpoints": [] +} + diff --git a/tests/blocks/decoration/chain/waterlogged_copper_chain.json b/tests/blocks/decoration/chain/waterlogged_copper_chain.json new file mode 100644 index 0000000..5e49304 --- /dev/null +++ b/tests/blocks/decoration/chain/waterlogged_copper_chain.json @@ -0,0 +1,93 @@ +{ + "$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json", + "flintVersion": "1.1", + "name": "waterlogged_copper_chain", + "description": "Tests the placing of chain in water", + "tags": ["chain", "waterlogged"], + "minecraftIds": ["minecraft:copper_chain", "minecraft:water", "minecraft:water_bucket", "minecraft:bucket"], + "dependencies": [], + "setup": { + "cleanup": { + "region": [ [-1, -1, -1], [1, 1, 1] ] + }, + "player": {"game_mode": "Survival"} + }, + "timeline": [ + { + "at": 0, + "do": "place_each", + "blocks": [ + { "pos": [ 0, -1, 0], "block": {"id": "minecraft:stone"} }, + { "pos": [ 1, 0, 0], "block": {"id": "minecraft:stone"} }, + { "pos": [-1, 0, 0], "block": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, 1], "block": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, -1], "block": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, 0], "block": {"id": "minecraft:water"} } + ] + }, + { + "at": 1, + "do": "assert", + "checks": [ + { "pos": [ 0, -1, 0], "is": {"id": "minecraft:stone"} }, + { "pos": [ 1, 0, 0], "is": {"id": "minecraft:stone"} }, + { "pos": [-1, 0, 0], "is": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, 1], "is": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, -1], "is": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, 0], "is": {"id": "minecraft:water"} } + ] + }, + { "at": 1, "do": "use_item_on", "pos": [0, -1, 0], "face": "top", "item": "copper_chain" }, + { + "at": 2, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:copper_chain", "axis": "y", "waterlogged": true} }, + {"is": "empty", "slot": "hotbar1"} + ] + }, + { "at": 2, "do": "place", "pos": [0, 0, 0], "block": {"id": "minecraft:copper_chain"} }, + { + "at": 3, + "do": "assert", + "checks": [ + { "pos": [ 0, -1, 0], "is": {"id": "minecraft:stone" } }, + { "pos": [ 1, 0, 0], "is": {"id": "minecraft:stone" } }, + { "pos": [-1, 0, 0], "is": {"id": "minecraft:stone" } }, + { "pos": [ 0, 0, 1], "is": {"id": "minecraft:stone" } }, + { "pos": [ 0, 0, -1], "is": {"id": "minecraft:stone" } }, + { "pos": [ 0, 0, 0], "is": {"id": "minecraft:copper_chain", "axis": "y", "waterlogged": false} } + ] + }, + { "at": 3, "do": "use_item_on", "pos": [0, 0, -1], "face": "top", "item": "minecraft:water_bucket" }, + { + "at": 4, + "do": "assert", + "checks": [ + { "pos": [0, -1, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [1, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [-1, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, 1], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, -1], "is": {"id": "minecraft:stone"} } , + { "is": {"id": "minecraft:bucket", "count": 1}, "slot": "hotbar1" } , + { "pos": [0, 0, 0], "is": {"id": "minecraft:copper_chain", "waterlogged": true, "axis": "y"} } + ] + }, + { "at": 4, "do": "use_item_on", "pos": [0, 0, 0], "face": "top" }, + { + "at": 5, + "do": "assert", + "checks": [ + { "pos": [0, -1, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [1, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [-1, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, 1], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, -1], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, 0], "is": {"id": "minecraft:copper_chain", "waterlogged": false, "axis": "y"} }, + { "is": {"id": "minecraft:water_bucket", "count": 1}, "slot": "hotbar1" } + ] + } + ], + "breakpoints": [] +} + diff --git a/tests/blocks/decoration/chain/waterlogged_iron_chain.json b/tests/blocks/decoration/chain/waterlogged_iron_chain.json new file mode 100644 index 0000000..0d6e097 --- /dev/null +++ b/tests/blocks/decoration/chain/waterlogged_iron_chain.json @@ -0,0 +1,93 @@ +{ + "$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json", + "flintVersion": "1.1", + "name": "waterlogged_iron_chain", + "description": "Tests the placing of chain in water", + "tags": ["chain", "waterlogged"], + "minecraftIds": ["minecraft:iron_chain", "minecraft:water", "minecraft:water_bucket", "minecraft:bucket"], + "dependencies": [], + "setup": { + "cleanup": { + "region": [ [-1, -1, -1], [1, 1, 1] ] + }, + "player": {"game_mode": "Survival"} + }, + "timeline": [ + { + "at": 0, + "do": "place_each", + "blocks": [ + { "pos": [ 0, -1, 0], "block": {"id": "minecraft:stone"} }, + { "pos": [ 1, 0, 0], "block": {"id": "minecraft:stone"} }, + { "pos": [-1, 0, 0], "block": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, 1], "block": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, -1], "block": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, 0], "block": {"id": "minecraft:water"} } + ] + }, + { + "at": 1, + "do": "assert", + "checks": [ + { "pos": [ 0, -1, 0], "is": {"id": "minecraft:stone"} }, + { "pos": [ 1, 0, 0], "is": {"id": "minecraft:stone"} }, + { "pos": [-1, 0, 0], "is": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, 1], "is": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, -1], "is": {"id": "minecraft:stone"} }, + { "pos": [ 0, 0, 0], "is": {"id": "minecraft:water"} } + ] + }, + { "at": 1, "do": "use_item_on", "pos": [0, -1, 0], "face": "top", "item": "iron_chain" }, + { + "at": 2, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:iron_chain", "axis": "y", "waterlogged": true} }, + {"is": "empty", "slot": "hotbar1"} + ] + }, + { "at": 2, "do": "place", "pos": [0, 0, 0], "block": {"id": "minecraft:iron_chain"} }, + { + "at": 3, + "do": "assert", + "checks": [ + { "pos": [ 0, -1, 0], "is": {"id": "minecraft:stone" } }, + { "pos": [ 1, 0, 0], "is": {"id": "minecraft:stone" } }, + { "pos": [-1, 0, 0], "is": {"id": "minecraft:stone" } }, + { "pos": [ 0, 0, 1], "is": {"id": "minecraft:stone" } }, + { "pos": [ 0, 0, -1], "is": {"id": "minecraft:stone" } }, + { "pos": [ 0, 0, 0], "is": {"id": "minecraft:iron_chain", "axis": "y", "waterlogged": false} } + ] + }, + { "at": 3, "do": "use_item_on", "pos": [0, 0, 0], "face": "top", "item": "minecraft:water_bucket" }, + { + "at": 4, + "do": "assert", + "checks": [ + { "pos": [0, -1, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [1, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [-1, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, 1], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, -1], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, 0], "is": {"id": "minecraft:iron_chain", "waterlogged": true, "axis": "y"} }, + { "is": {"id": "minecraft:bucket", "count": 1}, "slot": "hotbar1" } + ] + }, + { "at": 4, "do": "use_item_on", "pos": [0, 0, 0], "face": "top" }, + { + "at": 5, + "do": "assert", + "checks": [ + { "pos": [0, -1, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [1, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [-1, 0, 0], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, 1], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, -1], "is": {"id": "minecraft:stone"} } , + { "pos": [0, 0, 0], "is": {"id": "minecraft:iron_chain", "waterlogged": false, "axis": "y"} }, + { "is": {"id": "minecraft:water_bucket", "count": 1}, "slot": "hotbar1" } + ] + } + ], + "breakpoints": [] +} + diff --git a/tests/blocks/decoration/chain/waxed_copper_chain.json b/tests/blocks/decoration/chain/waxed_copper_chain.json new file mode 100644 index 0000000..39dc092 --- /dev/null +++ b/tests/blocks/decoration/chain/waxed_copper_chain.json @@ -0,0 +1,34 @@ +{ + "$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json", + "flintVersion": "1.1", + "name": "waxed_copper_chain", + "description": "Tests the waxed copper chain", + "tags": ["chain", "copper", "weathering", "waxing"], + "minecraftIds": ["minecraft:copper_chain", "minecraft:waxed_copper_chain"], + "dependencies": [], + "setup": { + "cleanup": { + "region": [ [0, 0, 0], [0, 0, 0] ] + }, + "player": {"game_mode": "Survival"} + }, + "timeline": [ + { "at": 0, "do": "place", "pos": [0, 0, 0], "block": {"id": "waxed_copper_chain"} }, + { + "at": 1, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:waxed_copper_chain", "waterlogged": false, "axis": "y"} } + ] + }, + { + "at": 200000, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:waxed_copper_chain", "waterlogged": false, "axis": "y"} } + ] + } + ], + "breakpoints": [] +} + diff --git a/tests/blocks/decoration/chain/waxing_copper_chain.json b/tests/blocks/decoration/chain/waxing_copper_chain.json new file mode 100644 index 0000000..558f6ce --- /dev/null +++ b/tests/blocks/decoration/chain/waxing_copper_chain.json @@ -0,0 +1,43 @@ +{ + "$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json", + "flintVersion": "1.1", + "name": "waxing_copper_chain", + "description": "Tests the waxing of copper chain", + "tags": ["chain", "copper", "weathering", "waxing"], + "minecraftIds": ["minecraft:copper_chain", "minecraft:waxed_copper_chain", "minecraft:honeycomb"], + "dependencies": [], + "setup": { + "cleanup": { + "region": [ [0, 0, 0], [0, 0, 0] ] + }, + "player": {"game_mode": "Survival"} + }, + "timeline": [ + { "at": 0, "do": "place", "pos": [0, 0, 0], "block": {"id": "copper_chain"} }, + { + "at": 1, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:copper_chain", "waterlogged": false, "axis": "y"} } + ] + }, + { "at": 1, "do": "use_item_on", "pos": [0, 0, 0], "face": "top", "item": "minecraft:honeycomb" }, + { + "at": 2, + "do": "assert", + "checks": [ + {"slot": "hotbar1", "is": "empty"} , + { "pos": [0, 0, 0], "is": {"id": "minecraft:waxed_copper_chain", "waterlogged": false, "axis": "y"} } + ] + }, + { + "at": 200000, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:waxed_copper_chain", "waterlogged": false, "axis": "y"} } + ] + } + ], + "breakpoints": [] +} + diff --git a/tests/connectible/fences/place_fence.json b/tests/connectible/fences/place_fence.json index 1e6e3a7..4327fc1 100644 --- a/tests/connectible/fences/place_fence.json +++ b/tests/connectible/fences/place_fence.json @@ -10,7 +10,7 @@ "cleanup": { "region": [ [0, 0, 0], [0, 1, 0] ] }, - "player": {"gamemode": "Survival"} + "player": {"game_mode": "Survival"} }, "timeline": [ { "at": 0, "do": "place", "pos": [0, 0, 0], "block": {"id": "minecraft:stone"} },