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
34 changes: 34 additions & 0 deletions tests/blocks/decoration/chain/oxidized_copper_chain.json
Original file line number Diff line number Diff line change
@@ -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": []
}

92 changes: 92 additions & 0 deletions tests/blocks/decoration/chain/place_chain.json
Original file line number Diff line number Diff line change
@@ -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": []
}

46 changes: 46 additions & 0 deletions tests/blocks/decoration/chain/unwaxing_copper_chain.json
Original file line number Diff line number Diff line change
@@ -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": []
}

96 changes: 96 additions & 0 deletions tests/blocks/decoration/chain/waterlogged_copper_chain.json
Original file line number Diff line number Diff line change
@@ -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": []
}

96 changes: 96 additions & 0 deletions tests/blocks/decoration/chain/waterlogged_iron_chain.json
Original file line number Diff line number Diff line change
@@ -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": []
}

Loading
Loading