nc_cats-cd2025/ambiance.lua

37 lines
928 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 .. "_cat"},
interval = 5,
chance = 5,
check = myapi.notpurring,
sound_name = modname .. "_mew",
sound_gain = 0.5
})
nodecore.register_item_ambiance({
label = modname .. " item ambiance",
itemnames = {"group:" .. modname .. "_cat"},
interval = 5,
chance = 5,
sound_name = modname .. "_mew",
sound_gain = 0.25
})
nodecore.register_item_ambiance({
label = modname .. " prill ambiance",
itemnames = {modname .. ":prill"},
interval = 5,
chance = 10,
sound_name = modname .. "_mew",
sound_gain = 0.25,
sound_pitch = 1.25
})