Aaron Suen 984e87e155 Consistent ABM labeling
- Make sure every ABM has a label
- Use consistent case
- More concise names / consistent voice
2020-06-17 07:09:20 -04:00

21 lines
596 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local minetest, nodecore
= minetest, nodecore
-- LUALOCALS > ---------------------------------------------------------
nodecore.register_ambiance({
label = "tree leaves ambiance",
nodenames = {"nc_tree:leaves"},
neigbors = {"air"},
interval = 1,
chance = 100,
sound_name = "nc_tree_breeze",
check = function(pos)
pos.y = pos.y + 1
if pos.y <= 0 then return end
return minetest.get_node(pos).name == "air"
and nodecore.is_full_sun(pos)
and {gain = nodecore.windiness(pos.y) / 20}
end
})