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..94b6b9f --- /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": "oxidized_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..c44d02f --- /dev/null +++ b/tests/blocks/decoration/chain/place_chain.json @@ -0,0 +1,92 @@ +{ + "$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": "tp", "entity_alias": "player", "pos": [0.5, 2, 0.5], "rot": [0, 90] }, + {"at": 1, "do": "interact", "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": "tp", "entity_alias": "player", "pos": [2.5, -1.12, 0.5], "rot": [90, 0] }, + {"at": 3, "do": "interact", "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": "tp", "entity_alias": "player", "pos": [0.5, -1.12, 2.5], "rot": [180, 0] }, + {"at": 5, "do": "interact", "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": "tp", "entity_alias": "player", "pos": [-1.5, -1.12, 0.5], "rot": [-90, 0] }, + {"at": 7, "do": "interact", "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": "tp", "entity_alias": "player", "pos": [0.5, -1.12, -1.5], "rot": [0, 0] }, + {"at": 9, "do": "interact", "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..3f85d5f --- /dev/null +++ b/tests/blocks/decoration/chain/unwaxing_copper_chain.json @@ -0,0 +1,46 @@ +{ + "$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": "tp", "entity_alias": "player", "pos": [0.5, 2, 0.5], "rot": [0, 90] }, + {"at": 1, "do": "interact", "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..2362339 --- /dev/null +++ b/tests/blocks/decoration/chain/waterlogged_copper_chain.json @@ -0,0 +1,96 @@ +{ + "$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": "tp", "entity_alias": "player", "pos": [0.5, 1, 0.5], "rot": [0, 90] }, + {"at": 1, "do": "interact", "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": "tp", "entity_alias": "player", "pos": [0.5, 2, 0.5], "rot": [0, 90] }, + {"at": 3, "do": "interact", "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": "tp", "entity_alias": "player", "pos": [0.5, 2, 0.5], "rot": [0, 90] }, + {"at": 4, "do": "interact"}, + { + "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..9644345 --- /dev/null +++ b/tests/blocks/decoration/chain/waterlogged_iron_chain.json @@ -0,0 +1,96 @@ +{ + "$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": "tp", "entity_alias": "player", "pos": [0.5, 1, 0.5], "rot": [0, 90] }, + {"at": 1, "do": "interact", "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": "tp", "entity_alias": "player", "pos": [0.5, 2, 0.5], "rot": [0, 90] }, + {"at": 3, "do": "interact", "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": "tp", "entity_alias": "player", "pos": [0.5, 2, 0.5], "rot": [0, 90] }, + {"at": 4, "do": "interact"}, + { + "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..caac62b --- /dev/null +++ b/tests/blocks/decoration/chain/waxing_copper_chain.json @@ -0,0 +1,44 @@ +{ + "$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": "tp", "entity_alias": "player", "pos": [0.5, 2, 0.5], "rot": [0, 90] }, + {"at": 1, "do": "interact", "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 ba16d56..68bdc24 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"} },