Skip to content
Open

Bars #10

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
1,638 changes: 1,638 additions & 0 deletions tests/connectible/bars/bars_connections.json

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions tests/connectible/bars/oxidized_copper_bars.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "oxidized_copper_bars",
"description": "Tests the weathering of copper bar",
"tags": ["bar", "copper", "weathering"],
"minecraftIds": ["minecraft:copper_bars", "minecraft:oxidized_copper_bars"],
"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_bars"} },
{
"at": 1,
"do": "assert",
"checks": [
{
"pos": [0, 0, 0],
"is": {
"id": "minecraft:copper_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
},
{
"at": 200000,
"do": "assert",
"checks": [
{
"pos": [0, 0, 0],
"is": {
"id": "minecraft:oxidized_copper_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
}
],
"breakpoints": []
}

48 changes: 48 additions & 0 deletions tests/connectible/bars/place_bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "place_bar",
"description": "Tests the placing of bars",
"tags": ["bar"],
"minecraftIds": ["minecraft:iron_bars"],
"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, 3, 0.5], "rot": [0, 90] },
{"at": 1, "do": "interact", "item": "iron_bars"},
{
"at": 2,
"do": "assert",
"checks": [
{ "pos": [0, 0, 0], "is": {"id": "minecraft:stone"} },
{
"pos": [0, 1, 0],
"is": {
"id": "minecraft:iron_bars",
"east": false,
"west": false,
"south": false,
"north": false,
"waterlogged": false
}
},
{"is": "empty", "slot": "hotbar1"}
]
}
],
"breakpoints": []
}

76 changes: 76 additions & 0 deletions tests/connectible/bars/unwaxing_copper_bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "unwaxing_copper_bar",
"description": "Tests the unwaxing of copper bar",
"tags": ["bar", "copper", "weathering", "unwaxing"],
"minecraftIds": [
"minecraft:copper_bars" , "minecraft:waxed_copper_bars" , "minecraft:iron_axe" ,
"minecraft:oxidized_copper_bars"
],
"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_bars"} },
{
"at": 1,
"do": "assert",
"checks": [
{
"pos": [0, 0, 0],
"is": {
"id": "minecraft:waxed_copper_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
},
{ "at": 1, "do": "tp", "entity_alias": "player", "pos": [0.5, 3, 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_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
},
{
"at": 200000,
"do": "assert",
"checks": [
{
"pos": [0, 0, 0],
"is": {
"id": "minecraft:oxidized_copper_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
}
],
"breakpoints": []
}

54 changes: 54 additions & 0 deletions tests/connectible/bars/waxed_copper_bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "waxed_copper_bar",
"description": "Tests the waxed copper bar",
"tags": ["bar", "copper", "weathering", "waxing"],
"minecraftIds": ["minecraft:copper_bars", "minecraft:waxed_copper_bars"],
"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_bars"} },
{
"at": 1,
"do": "assert",
"checks": [
{
"pos": [0, 0, 0],
"is": {
"id": "minecraft:waxed_copper_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
},
{
"at": 200000,
"do": "assert",
"checks": [
{
"pos": [0, 0, 0],
"is": {
"id": "minecraft:waxed_copper_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
}
],
"breakpoints": []
}

74 changes: 74 additions & 0 deletions tests/connectible/bars/waxing_copper_bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "waxing_copper_bar",
"description": "Tests the waxing of copper bar",
"tags": ["bar", "copper", "weathering", "waxing"],
"minecraftIds": ["minecraft:copper_bars", "minecraft:waxed_copper_bars", "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_bars"} },
{
"at": 1,
"do": "assert",
"checks": [
{
"pos": [0, 0, 0],
"is": {
"id": "minecraft:copper_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
},
{ "at": 1, "do": "tp", "entity_alias": "player", "pos": [0.5, 3, 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_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
},
{
"at": 200000,
"do": "assert",
"checks": [
{
"pos": [0, 0, 0],
"is": {
"id": "minecraft:waxed_copper_bars",
"waterlogged": false,
"east": false,
"west": false,
"south": false,
"north": false
}
}
]
}
],
"breakpoints": []
}

2 changes: 1 addition & 1 deletion tests/connectible/fences/place_fence.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cleanup": {
"region": [ [0, 0, 0], [0, 1, 0] ]
},
"player": {"gamemode": "Survival"}
"player": {"game_mode": "Survival"}
Comment thread
JunkyDeveloper marked this conversation as resolved.
},
"timeline": [
{ "at": 0, "do": "place", "pos": [0, 0, 0], "block": {"id": "minecraft:stone"} },
Expand Down
Loading