This liquid behavior reminds me of the melted ores from the forge mod. (viewtopic.php?t=15350)jas wrote:Re: LBM
If the lowering of the liquid source node is only done once - whenever the block is loaded - then the liquid won't drop more than one node. (Video demonstration: https://www.youtube.com/watch?v=YGyBALrcWL0)
(I'm not disputing the inefficiency of checking every liquid source near air every second.)
[Collection] All the tiny mods
- Desour
- Member
- Posts: 1469
- Joined: Thu Jun 19, 2014 19:49
- GitHub: Desour
- IRC: Desour
- In-game: DS
- Location: I'm scared that if this is too exact, I will be unable to use my keyboard.
Re: [Collection] All the tiny mods
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)
- j0j0n4th4n
- Member
- Posts: 249
- Joined: Tue Jan 26, 2021 06:45
Re: [Collection] All the tiny mods
Converted to LBM:
Code: Select all
minetest.register_lbm({
label = "Floating liquid fall down",
name = "jmomore_realcraft:falling_liquid", -- Change the name to the mod folder you are using ":" name of the lua file
nodenames = {"default:lava_source", "default:water_source", "default:river_water_source"},
neighbors = {"air"},
run_at_every_load = true,
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"
if node_under.name == flowing_node then
minetest.set_node(pos, {name = flowing_node})
end
end,
})
cdb_894a100ddd76
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest