1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 15:00:18 +01:00

Make walls connect to nodes in a new wall_connected group (#3159)

This commit is contained in:
Alexander Chibrikin 2024-11-15 17:10:14 +03:00 committed by GitHub
parent 093cd28a27
commit 92daf3e6f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -341,6 +341,12 @@ walls.register(name, desc, texture, mat, sounds)
^ mat = "default:stone". Used to auto-generate crafting recipe. ^ mat = "default:stone". Used to auto-generate crafting recipe.
^ sounds = sounds: see [#Default sounds] ^ sounds = sounds: see [#Default sounds]
All walls will be connected to any nodes with one of the following groups:
* `wall`
* `stone`
* `fence`
* `wall_connected`
Farming API Farming API
----------- -----------

View File

@ -35,7 +35,7 @@ walls.register = function(wall_name, wall_desc, wall_texture_table, wall_mat, wa
connect_back = {-1/4,-1/2,1/4,1/4,1/2 + fence_collision_extra,1/2}, connect_back = {-1/4,-1/2,1/4,1/4,1/2 + fence_collision_extra,1/2},
connect_right = {1/4,-1/2,-1/4,1/2,1/2 + fence_collision_extra,1/4}, connect_right = {1/4,-1/2,-1/4,1/2,1/2 + fence_collision_extra,1/4},
}, },
connects_to = { "group:wall", "group:stone", "group:fence" }, connects_to = { "group:wall", "group:stone", "group:fence", "group:wall_connected" },
paramtype = "light", paramtype = "light",
is_ground_content = false, is_ground_content = false,
tiles = wall_texture_table, tiles = wall_texture_table,