nc_cats-cd2025/ambiance.lua

37 lines
935 B
Lua
Raw Normal View History

2022-01-23 17:46:46 -05:00
-- LUALOCALS < ---------------------------------------------------------
local minetest, nodecore
= minetest, nodecore
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
local myapi = _G[modname]
nodecore.register_ambiance({
label = modname .. " ambiance",
nodenames = {"group:" .. modname .. "_face"},
2022-01-23 17:48:41 -05:00
interval = 1,
chance = 25,
2022-01-23 17:46:46 -05:00
check = myapi.notpurring,
sound_name = modname .. "_mew",
sound_gain = 0.5
})
nodecore.register_item_ambiance({
label = modname .. " item ambiance",
itemnames = {"group:" .. modname .. "_cat"},
2022-01-23 17:48:41 -05:00
interval = 1,
chance = 25,
2022-01-23 17:46:46 -05:00
sound_name = modname .. "_mew",
sound_gain = 0.25
})
2022-01-26 22:29:08 -05:00
nodecore.register_ambiance({
label = modname .. " ore ambiance",
nodenames = {"group:" .. modname .. "_ore"},
interval = 1,
chance = 100,
sound_name = modname .. "_mew",
sound_gain = 0.25,
sound_pitch = 0.75
})