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": "oxidice_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": []
}

47 changes: 47 additions & 0 deletions tests/connectible/bars/place_bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "place_bars",
"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": "use_item_on", "pos": [0, 0, 0], "face": "top", "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": []
}

75 changes: 75 additions & 0 deletions tests/connectible/bars/unwaxing_copper_bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "unwaxing_copper_bars",
"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": "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_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_bars",
"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": []
}

73 changes: 73 additions & 0 deletions tests/connectible/bars/waxing_copper_bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json",
"flintVersion": "1.1",
"name": "waxing_copper_bars",
"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": "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_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"}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was wrong :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think old version of flint-core

},
"timeline": [
{ "at": 0, "do": "place", "pos": [0, 0, 0], "block": {"id": "minecraft:stone"} },
Expand Down
Loading