diff options
author | paramat <mat.gregory@virginmedia.com> | 2015-12-30 04:22:58 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-01-07 05:57:19 +0000 |
commit | 0bbbc6e13dc8180cf1d98f9866bc72a510162eb3 (patch) | |
tree | b84bb2078662a03d65f8088cbb8d6be6c3b807db /builtin/game | |
parent | bd40ee2b95138139a8cfbef878b3461176688c15 (diff) | |
download | minetest-0bbbc6e13dc8180cf1d98f9866bc72a510162eb3.tar.gz minetest-0bbbc6e13dc8180cf1d98f9866bc72a510162eb3.tar.bz2 minetest-0bbbc6e13dc8180cf1d98f9866bc72a510162eb3.zip |
Liquids: Flow into and destroy 'floodable' nodes
Add new node property 'floodable', default false
Define "air" as floodable = true in C++ and lua
Diffstat (limited to 'builtin/game')
-rw-r--r-- | builtin/game/item.lua | 1 | ||||
-rw-r--r-- | builtin/game/register.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/builtin/game/item.lua b/builtin/game/item.lua index d16601d30..c168bf096 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -574,6 +574,7 @@ core.nodedef_default = { diggable = true, climbable = false, buildable_to = false, + floodable = false, liquidtype = "none", liquid_alternative_flowing = "", liquid_alternative_source = "", diff --git a/builtin/game/register.lua b/builtin/game/register.lua index 992fdf744..ba5f69d67 100644 --- a/builtin/game/register.lua +++ b/builtin/game/register.lua @@ -289,6 +289,7 @@ core.register_node(":air", { pointable = false, diggable = false, buildable_to = true, + floodable = true, air_equivalent = true, drop = "", groups = {not_in_creative_inventory=1}, |