diff --git a/tests/vegetation/dripleaf/bonemeal_dripleaf.json b/tests/vegetation/dripleaf/bonemeal_dripleaf.json new file mode 100644 index 0000000..4236eea --- /dev/null +++ b/tests/vegetation/dripleaf/bonemeal_dripleaf.json @@ -0,0 +1,97 @@ +{ + "$schema": "https://raw.githubusercontent.com/FlintTestMC/flint-core/refs/heads/main/flint-content/test_spec_schema.json", + "flintVersion": "1.1", + "name": "bonemeal_dripleaf", + "description": "Tests bone meal action on dripleaf and dripleaf stem.", + "tags": ["bone_meal"], + "minecraftIds": ["minecraft:big_dripleaf"], + "setup": { + "cleanup": { + "region": [ [0, 0, 0], [0, 5, 0] ] + } + }, + "timeline": [ + { + "at": 0, + "do": "place_each", + "blocks": [ + { "pos": [0, 0, 0], "block": {"id": "minecraft:clay"} }, + { + "pos": [0, 1, 0], + "block": {"id": "minecraft:big_dripleaf", "facing": "south", "waterlogged": false} + }, + { "pos": [0, 5, 0], "block": {"id": "minecraft:stone"} } + ] + }, + { + "at": 0, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:clay"} }, + { + "pos": [0, 1, 0], + "is": {"id": "minecraft:big_dripleaf", "tilt": "none", "facing": "south", "waterlogged": false} + } + ] + }, + { "at": 1, "do": "use_item_on", "face": "east", "item": "minecraft:bone_meal", "pos": [0, 1, 0] }, + { + "at": 2, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:clay"} }, + { "pos": [0, 1, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { + "pos": [0, 2, 0], + "is": {"id": "minecraft:big_dripleaf", "facing": "south", "tilt": "none", "waterlogged": false} + } + ] + }, + { "at": 2, "do": "use_item_on", "face": "east", "item": "minecraft:bone_meal", "pos": [0, 2, 0] }, + { + "at": 3, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:clay"} }, + { "pos": [0, 1, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { "pos": [0, 2, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { + "pos": [0, 3, 0], + "is": {"id": "minecraft:big_dripleaf", "facing": "south", "waterlogged": false, "tilt": "none"} + } + ] + }, + { "at": 3, "do": "use_item_on", "face": "east", "item": "minecraft:bone_meal", "pos": [0, 1, 0] }, + { + "at": 4, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:clay"} }, + { "pos": [0, 1, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { "pos": [0, 2, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { "pos": [0, 3, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { + "pos": [0, 4, 0], + "is": {"id": "minecraft:big_dripleaf", "facing": "south", "tilt": "none", "waterlogged": false} + } + ] + }, + { "at": 4, "do": "use_item_on", "face": "east", "item": "minecraft:bone_meal", "pos": [0, 2, 0] }, + { + "at": 5, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:clay"} }, + { "pos": [0, 1, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { "pos": [0, 2, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { "pos": [0, 3, 0], "is": {"id": "minecraft:big_dripleaf_stem", "facing": "south"} }, + { + "pos": [0, 4, 0], + "is": {"id": "minecraft:big_dripleaf", "facing": "south", "tilt": "none", "waterlogged": false} + }, + { "pos": [0, 5, 0], "is": {"id": "minecraft:stone"} } + ] + } + ] +} + diff --git a/tests/vegetation/dripleaf/stack_driplaf.json b/tests/vegetation/dripleaf/stack_driplaf.json new file mode 100644 index 0000000..e28aa72 --- /dev/null +++ b/tests/vegetation/dripleaf/stack_driplaf.json @@ -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": "stack_driplaf", + "description": "Place dripleaf over each other, below block should convert to stem", + "tags": ["bone_meal"], + "minecraftIds": ["minecraft:big_dripleaf"], + "setup": { + "cleanup": { + "region": [ [0, 0, 0], [0, 2, 0] ] + } + }, + "timeline": [ + { + "at": 0, + "do": "place_each", + "blocks": [ + { "pos": [0, 0, 0], "block": {"id": "minecraft:clay"} }, + { "pos": [0, 1, 0], "block": {"id": "minecraft:big_dripleaf", "facing": "south", "waterlogged": false} } + ] + }, + { + "at": 0, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:clay"} }, + { + "pos": [0, 1, 0], + "is": {"id": "minecraft:big_dripleaf", "tilt": "none", "facing": "south", "waterlogged": false} + } + ] + }, + { "at": 1, "do": "use_item_on", "face": "top", "item": "minecraft:big_dripleaf", "pos": [0, 1, 0] }, + { + "at": 2, + "do": "assert", + "checks": [ + { "pos": [0, 0, 0], "is": {"id": "minecraft:clay"} }, + { "pos": [0, 1, 0], "is": {"id": "minecraft:clay", "facing": "south", "waterlogged": false} }, + { + "pos": [0, 2, 0], + "is": {"id": "minecraft:big_dripleaf", "facing": "south", "tilt": "none", "waterlogged": false} + } + ] + } + ] +} +