Skip to content
Permalink
Browse files

Collapse liquid towers.

  • Loading branch information...
jastevenson303 committed Sep 20, 2017
1 parent 00a91fc commit 749d63b9bc43cf6b44491d74bbf8237f5c6bb139
Showing with 19 additions and 0 deletions.
  1. +19 −0 overrides.lua
@@ -1,3 +1,22 @@
-- Convert liquid_source to liquid_flower if node.y-1 == air?
minetest.register_abm({
label = "Liquid drop",
nodenames = {"default:lava_source", "default:water_source", "default:river_water_source"},
neighbors = {"air"},
interval = 10.0,
chance = 2,
catch_up = false,
action = function(pos, node, active_object_count, active_object_count_wider)
local pos_under = {x = pos.x, y = pos.y - 1, z = pos.z}
local node_under = minetest.get_node(pos_under)
local flowing_node = "default:" .. minetest.get_node(pos).name:sub(9, -8) .. "_flowing"
print(flowing_node)
if node_under.name == flowing_node then
minetest.set_node(pos, {name = flowing_node})
end
end,
})

-- Stair and slab and innerstair and outerstair.
local ssio = {
"caverealms:glow_emerald",

1 comment on commit 749d63b

@twoelk

This comment has been minimized.

Copy link

commented on 749d63b Sep 21, 2017

interesting but might need a workaround for player made decorative fountain like structures to still be possible

Please sign in to comment.
You can’t perform that action at this time.