nc_cats-cd2025/ore.lua

40 lines
911 B
Lua
Raw Normal View History

2022-01-14 21:36:51 -05:00
-- LUALOCALS < ---------------------------------------------------------
local minetest, nodecore
= minetest, nodecore
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
minetest.register_ore({
name = modname .. ":ore",
ore_type = "scatter",
ore = modname .. ":ore",
wherein = "nc_terrain:stone",
random_factor = 0,
noise_params = {
offset = 0,
scale = 4,
spread = {x = 40, y = 5, z = 40},
seed = 61782,
octaves = 3,
persist = 0.5,
flags = "eased",
},
noise_threshold = 1.3,
y_max = -128,
y_min = -256,
clust_num_ores = 4,
clust_size = 2,
clust_scarcity = 8 * 8 * 8 * 8 * 4
})
nodecore.register_ambiance({
label = modname .. " ambiance",
nodenames = {modname .. ":ore"},
interval = 1,
chance = 100,
sound_name = modname .. "_mew",
sound_gain = 0.25,
sound_pitch = 0.75
})