mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 07:30:23 +02:00
Liquids: Flow into and destroy 'floodable' nodes
Add new node property 'floodable', default false Define "air" as floodable = true in C++ and lua
This commit is contained in:
@ -481,6 +481,8 @@ ContentFeatures read_content_features(lua_State *L, int index)
|
||||
getboolfield(L, index, "climbable", f.climbable);
|
||||
// Player can build on these
|
||||
getboolfield(L, index, "buildable_to", f.buildable_to);
|
||||
// Liquids flow into and replace node
|
||||
getboolfield(L, index, "floodable", f.floodable);
|
||||
// Whether the node is non-liquid, source liquid or flowing liquid
|
||||
f.liquid_type = (LiquidType)getenumfield(L, index, "liquidtype",
|
||||
ScriptApiNode::es_LiquidType, LIQUID_NONE);
|
||||
|
Reference in New Issue
Block a user