diff --git a/src/endstone_test/tests/test_block.py b/src/endstone_test/tests/test_block.py index cb87e9b..cf786b8 100644 --- a/src/endstone_test/tests/test_block.py +++ b/src/endstone_test/tests/test_block.py @@ -8,7 +8,15 @@ def server(plugin: Plugin) -> Server: return plugin.server -def test_create_block_data(server: Server) -> None: +def test_create_block_data_default_block_states(server: Server) -> None: + block_data = server.create_block_data("minecraft:standing_sign") + assert block_data.type == "minecraft:standing_sign" + assert "ground_sign_direction" in block_data.block_states + assert block_data.block_states["ground_sign_direction"] == 0 + assert "block_light_level" not in block_data.block_states + + +def test_create_block_data_custom_block_states(server: Server) -> None: block_data = server.create_block_data("minecraft:standing_sign", {"ground_sign_direction": 8}) assert block_data.type == "minecraft:standing_sign" assert "ground_sign_direction" in block_data.block_states