Move core sounds from mcl_core to mcl_sounds

This commit is contained in:
Wuzzy 2017-02-11 18:46:23 +01:00
parent 7ff49a165a
commit fcda60cc2e
121 changed files with 393 additions and 363 deletions

View file

@ -1,2 +1,3 @@
mcl_core
mcl_sounds
mcl_wool

View file

@ -55,7 +55,7 @@ minetest.register_node("beds:bed_bottom", {
paramtype2 = "facedir",
stack_max = 1,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,bed=1,deco_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
@ -152,7 +152,7 @@ minetest.register_node("beds:bed_top", {
paramtype2 = "facedir",
is_ground_content = false,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,not_in_creative_inventory=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -175,7 +175,7 @@ minetest.register_node("crafting:workbench", {
on_rightclick = function(pos, node, clicker, itemstack)
set_workbench(clicker)
end,
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -301,7 +301,7 @@ doors:register_door("doors:door_wood", {
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=1},
tiles_bottom = {"door_wood_b.png", "door_brown.png"},
tiles_top = {"door_wood_a.png", "door_brown.png"},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
@ -320,7 +320,7 @@ doors:register_door("doors:door_acacia", {
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=1},
tiles_bottom = {"door_acacia_b.png", "door_brown.png"},
tiles_top = {"door_acacia_a.png", "door_brown.png"},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
@ -339,7 +339,7 @@ doors:register_door("doors:door_birch", {
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=1},
tiles_bottom = {"door_birch_b.png", "door_brown.png"},
tiles_top = {"door_birch_a.png", "door_brown.png"},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
@ -358,7 +358,7 @@ doors:register_door("doors:door_dark_oak", {
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=1},
tiles_bottom = {"door_dark_oak_b.png", "door_brown.png"},
tiles_top = {"door_dark_oak_a.png", "door_brown.png"},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
@ -377,7 +377,7 @@ doors:register_door("doors:door_jungle", {
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=1},
tiles_bottom = {"door_jungle_b.png", "door_brown.png"},
tiles_top = {"door_jungle_a.png", "door_brown.png"},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
@ -396,7 +396,7 @@ doors:register_door("doors:door_spruce", {
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=1},
tiles_bottom = {"door_spruce_b.png", "door_brown.png"},
tiles_top = {"door_spruce_a.png", "door_brown.png"},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
@ -446,7 +446,7 @@ doors:register_door("doors:door_steel", {
groups = {snappy=1,cracky=1,level=2,door=1,mesecon_effector_on=1},
tiles_bottom = {"door_steel_b.png", "door_grey.png"},
tiles_top = {"door_steel_a.png", "door_grey.png"},
sounds = mcl_core.node_sound_metal_defaults(),
sounds = mcl_sounds.node_sound_metal_defaults(),
})
minetest.register_craft({
@ -504,7 +504,7 @@ minetest.register_node("doors:trapdoor", {
stack_max = 64,
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=2},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
drop = "doors:trapdoor",
node_box = {
type = "fixed",
@ -550,7 +550,7 @@ minetest.register_node("doors:trapdoor_open", {
paramtype2 = "facedir",
pointable = true,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=2},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
drop = "doors:trapdoor",
node_box = {
type = "fixed",
@ -627,7 +627,7 @@ minetest.register_node("doors:iron_trapdoor", {
stack_max = 64,
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=2},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
drop = "doors:iron_trapdoor",
node_box = {
type = "fixed",
@ -673,7 +673,7 @@ minetest.register_node("doors:iron_trapdoor_open", {
is_ground_content = false,
pointable = true,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=2,mesecon_effector_on=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
drop = "doors:iron_trapdoor",
node_box = {
type = "fixed",

View file

@ -1,2 +1,3 @@
mcl_core
mcl_sounds
mcl_dye

View file

@ -25,7 +25,7 @@ minetest.register_node("hardened_clay:hardened_clay", {
tiles = {"hardened_clay.png"},
stack_max = 64,
groups = {cracky=3,hardened_clay=1,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_craft({
@ -46,7 +46,7 @@ for _, row in ipairs(clay.dyes) do
tiles = {"hardened_clay_stained_"..name..".png"},
groups = {cracky=3,hardened_clay=1,building_block=1},
stack_max = 64,
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
if craft_color_group then
minetest.register_craft({

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -100,7 +100,7 @@ minetest.register_node("itemframes:frame",{
paramtype2 = "facedir",
sunlight_propagates = true,
groups = { dig_immediate=3,deco_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
after_place_node = function(pos, placer, itemstack)
local meta = minetest.get_meta(pos)
meta:set_string("owner",placer:get_player_name())

View file

@ -1,2 +1,3 @@
mcl_core
mcl_sounds
mcl_mobitems

View file

@ -156,7 +156,7 @@ minetest.register_node("mcl_books:bookshelf", {
is_ground_content = false,
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3,building_block=1},
drop = "mcl_books:book 3",
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({

View file

@ -1,4 +1,5 @@
mcl_core
mcl_sounds
bucket
mcl_farming
mcl_mobitems

View file

@ -48,7 +48,7 @@ minetest.register_node("mcl_cake:cake", {
minetest.do_item_eat(2, ItemStack("mcl_cake:cake_5"), ItemStack("mcl_cake:cake"), clicker, {type="nothing"})
minetest.add_node(pos,{type="node",name="mcl_cake:cake_5",param2=0})
end,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_cake:cake_5", {
description = "Cake (5 Slices Left)",
@ -70,7 +70,7 @@ minetest.register_node("mcl_cake:cake_5", {
minetest.do_item_eat(2, ItemStack("mcl_cake:cake_4"), ItemStack("mcl_cake:cake_5"), clicker, {type="nothing"})
minetest.add_node(pos,{type="node",name="mcl_cake:cake_4",param2=0})
end,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_cake:cake_4", {
description = "Cake (4 Slices Left)",
@ -92,7 +92,7 @@ minetest.register_node("mcl_cake:cake_4", {
minetest.do_item_eat(2, ItemStack("mcl_cake:cake_3"), ItemStack("mcl_cake:cake_4"), clicker, {type="nothing"})
minetest.add_node(pos,{type="node",name="mcl_cake:cake_3",param2=0})
end,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_cake:cake_3", {
description = "Cake (3 Slices Left)",
@ -114,7 +114,7 @@ minetest.register_node("mcl_cake:cake_3", {
minetest.do_item_eat(2, ItemStack("mcl_cake:cake_2"), ItemStack("mcl_cake:cake_3"), clicker, {type="nothing"})
minetest.add_node(pos,{type="node",name="mcl_cake:cake_2",param2=0})
end,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_cake:cake_2", {
description = "Cake (2 Slices Left)",
@ -136,7 +136,7 @@ minetest.register_node("mcl_cake:cake_2", {
minetest.do_item_eat(2, ItemStack("mcl_cake:cake_1"), ItemStack("mcl_cake:cake_2"), clicker, {type="nothing"})
minetest.add_node(pos,{type="node",name="mcl_cake:cake_1",param2=0})
end,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_cake:cake_1", {
description = "Cake (1 Slice Left)",
@ -158,5 +158,5 @@ minetest.register_node("mcl_cake:cake_1", {
minetest.do_item_eat(2, ItemStack("mcl:cake:cake 0"), ItemStack("mcl_cake:cake_1"), clicker, {type="nothing"})
minetest.remove_node(pos)
end,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})

View file

@ -1,2 +1,3 @@
mcl_core
mcl_sounds
mcl_end

View file

@ -30,7 +30,7 @@ minetest.register_node("mcl_chests:chest", {
stack_max = 64,
groups = {choppy=2,oddly_breakable_by_hand=2, deco_block=1},
is_ground_content = false,
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
on_construct = function(pos)
local param2 = minetest.get_node(pos).param2
local meta = minetest.get_meta(pos)
@ -142,7 +142,7 @@ minetest.register_node("mcl_chests:chest_left", {
groups = {choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1},
drop = "mcl_chests:chest",
is_ground_content = false,
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
on_destruct = function(pos)
local n = minetest.get_node(pos)
if n.name == "mcl_chests:chest" then
@ -201,7 +201,7 @@ minetest.register_node("mcl_chests:chest_right", {
groups = {choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1},
drop = "mcl_chests:chest",
is_ground_content = false,
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
on_destruct = function(pos)
local n = minetest.get_node(pos)
if n.name == "mcl_chests:chest" then
@ -272,7 +272,7 @@ minetest.register_node("mcl_chests:ender_chest", {
paramtype = "light",
light_source = 7,
paramtype2 = "facedir",
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
drop = "mcl_core:obsidian 8",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
@ -331,7 +331,7 @@ for color, desc in pairs(boxtypes) do
"mcl_chests_"..color.."_shulker_box_side.png", "mcl_chests_"..color.."_shulker_box_side.png"},
groups = {cracky=2, deco_block=1, shulker_box=1},
is_ground_content = false,
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
stack_max = 1,
drop = "",
on_construct = function(pos)

View file

@ -1 +1,2 @@
mcl_sounds
mcl_util

View file

@ -613,91 +613,6 @@ minetest.register_abm({
})
--
-- Sounds
--
function mcl_core.node_sound_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="", gain=1.0}
table.dug = table.dug or
{name="default_dug_node", gain=0.25}
table.place = table.place or
{name="default_place_node_hard", gain=1.0}
return table
end
function mcl_core.node_sound_stone_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_hard_footstep", gain=0.5}
table.dug = table.dug or
{name="default_hard_footstep", gain=1.0}
mcl_core.node_sound_defaults(table)
return table
end
-- TODO: Maybe add custom metal sounds
mcl_core.node_sound_metal_defaults = mcl_core.node_sound_stone_defaults
function mcl_core.node_sound_dirt_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_dirt_footstep", gain=1.0}
table.dug = table.dug or
{name="default_dirt_footstep", gain=1.5}
table.place = table.place or
{name="default_place_node", gain=1.0}
mcl_core.node_sound_defaults(table)
return table
end
function mcl_core.node_sound_sand_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_sand_footstep", gain=0.5}
table.dug = table.dug or
{name="default_sand_footstep", gain=1.0}
table.place = table.place or
{name="default_place_node", gain=1.0}
mcl_core.node_sound_defaults(table)
return table
end
function mcl_core.node_sound_wood_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_wood_footstep", gain=0.5}
table.dug = table.dug or
{name="default_wood_footstep", gain=1.0}
mcl_core.node_sound_defaults(table)
return table
end
function mcl_core.node_sound_leaves_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_grass_footstep", gain=0.35}
table.dug = table.dug or
{name="default_grass_footstep", gain=0.85}
table.dig = table.dig or
{name="default_dig_crumbly", gain=0.4}
table.place = table.place or
{name="default_place_node", gain=1.0}
mcl_core.node_sound_defaults(table)
return table
end
function mcl_core.node_sound_glass_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_glass_footstep", gain=0.5}
table.dug = table.dug or
{name="default_break_glass", gain=1.0}
mcl_core.node_sound_defaults(table)
return table
end
-- Leaf Decay
@ -811,7 +726,7 @@ function mcl_core.add_glass(desc, recipeitem, color)
use_texture_alpha = true,
stack_max = 64,
groups = {cracky=3,oddly_breakable_by_hand=3, building_block=1},
sounds = mcl_core.node_sound_glass_defaults(),
sounds = mcl_sounds.node_sound_glass_defaults(),
drop = "",
})

View file

@ -28,7 +28,7 @@ minetest.register_node("mcl_core:stone", {
stack_max = 64,
groups = {cracky=3, stone=1, building_block=1, deco_block=1},
drop = 'mcl_core:cobble',
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:stone_with_coal", {
@ -38,7 +38,7 @@ minetest.register_node("mcl_core:stone_with_coal", {
stack_max = 64,
groups = {cracky=3, building_block=1},
drop = 'mcl_core:coal_lump',
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:stone_with_iron", {
@ -48,7 +48,7 @@ minetest.register_node("mcl_core:stone_with_iron", {
stack_max = 64,
groups = {cracky=2, building_block=1},
drop = 'mcl_core:stone_with_iron',
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
@ -59,7 +59,7 @@ minetest.register_node("mcl_core:stone_with_gold", {
stack_max = 64,
groups = {cracky=2, building_block=1},
drop = "mcl_core:stone_with_gold",
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
local redstone_timer = 68.28
@ -86,7 +86,7 @@ minetest.register_node("mcl_core:stone_with_redstone", {
},
}
},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
on_punch = redstone_ore_activate,
on_walk_over = redstone_ore_activate, -- Uses walkover mod
})
@ -116,7 +116,7 @@ minetest.register_node("mcl_core:stone_with_redstone_lit", {
},
}
},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
-- Reset timer after re-punching or stepping on
on_punch = redstone_ore_reactivate,
on_walk_over = redstone_ore_reactivate, -- Uses walkover mod
@ -142,7 +142,7 @@ minetest.register_node("mcl_core:stone_with_lapis", {
{items = {'mcl_dye:blue 4'}},
}
},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:stone_with_emerald", {
@ -152,7 +152,7 @@ minetest.register_node("mcl_core:stone_with_emerald", {
stack_max = 64,
groups = {cracky=2, building_block=1},
drop = "mcl_core:emerald",
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:stone_with_diamond", {
@ -162,7 +162,7 @@ minetest.register_node("mcl_core:stone_with_diamond", {
stack_max = 64,
groups = {cracky=1, building_block=1},
drop = "mcl_core:diamond",
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:stonebrick", {
@ -170,7 +170,7 @@ minetest.register_node("mcl_core:stonebrick", {
tiles = {"default_stone_brick.png"},
stack_max = 64,
groups = {cracky=3, stone=1, stonebrick=1, building_block=1, deco_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:stonebrickcarved", {
@ -179,7 +179,7 @@ minetest.register_node("mcl_core:stonebrickcarved", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=3, stone=1, stonebrick=1, building_block=1, deco_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:stonebrickcracked", {
@ -188,7 +188,7 @@ minetest.register_node("mcl_core:stonebrickcracked", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=3, stone=1, stonebrick=1, building_block=1, deco_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:stonebrickmossy", {
@ -196,7 +196,7 @@ minetest.register_node("mcl_core:stonebrickmossy", {
tiles = {"default_stonebrick_mossy.png"},
stack_max = 64,
groups = {cracky=3, stone=1, stonebrick=1, building_block=1, deco_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:granite", {
@ -205,7 +205,7 @@ minetest.register_node("mcl_core:granite", {
is_ground_content = true,
stack_max = 64,
groups = {cracky=3, stone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:granite_smooth", {
@ -213,7 +213,7 @@ minetest.register_node("mcl_core:granite_smooth", {
tiles = {"default_granite_smooth.png"},
stack_max = 64,
groups = {cracky=3, stone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:andesite", {
@ -222,7 +222,7 @@ minetest.register_node("mcl_core:andesite", {
is_ground_content = true,
stack_max = 64,
groups = {cracky=3, stone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:andesite_smooth", {
@ -230,7 +230,7 @@ minetest.register_node("mcl_core:andesite_smooth", {
tiles = {"default_andesite_smooth.png"},
stack_max = 64,
groups = {cracky=3, stone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:diorite", {
@ -239,7 +239,7 @@ minetest.register_node("mcl_core:diorite", {
is_ground_content = true,
stack_max = 64,
groups = {cracky=3, stone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:diorite_smooth", {
@ -247,7 +247,7 @@ minetest.register_node("mcl_core:diorite_smooth", {
tiles = {"default_diorite_smooth.png"},
stack_max = 64,
groups = {cracky=3, stone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:dirt_with_grass", {
@ -257,7 +257,7 @@ minetest.register_node("mcl_core:dirt_with_grass", {
stack_max = 64,
groups = {crumbly=3, soil=1, soil_sapling=2, soil_sugarcane=1, cultivatable=2, building_block=1},
drop = 'mcl_core:dirt',
sounds = mcl_core.node_sound_dirt_defaults({
sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
})
@ -277,7 +277,7 @@ minetest.register_node("mcl_core:grass_path", {
}
},
groups = { crumbly=3, not_in_creative_inventory=1, },
sounds = mcl_core.node_sound_dirt_defaults({
sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
})
@ -290,7 +290,7 @@ minetest.register_node("mcl_core:mycelium", {
stack_max = 64,
groups = {crumbly=3, building_block=1},
drop = 'mcl_core:dirt',
sounds = mcl_core.node_sound_dirt_defaults({
sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
})
@ -302,7 +302,7 @@ minetest.register_node("mcl_core:podzol", {
stack_max = 64,
groups = {crumbly=3, soil=1, soil_sapling=2, soil_sugarcane=1, building_block=1},
drop = 'mcl_core:dirt',
sounds = mcl_core.node_sound_dirt_defaults(),
sounds = mcl_sounds.node_sound_dirt_defaults(),
})
minetest.register_node("mcl_core:dirt", {
@ -311,7 +311,7 @@ minetest.register_node("mcl_core:dirt", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=3, soil=1, soil_sapling=2, soil_sugarcane=1, cultivatable=2, building_block=1},
sounds = mcl_core.node_sound_dirt_defaults(),
sounds = mcl_sounds.node_sound_dirt_defaults(),
})
minetest.register_node("mcl_core:coarse_dirt", {
@ -320,7 +320,7 @@ minetest.register_node("mcl_core:coarse_dirt", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=3, soil=1, soil_sugarcane=1, cultivatable=1, building_block=1},
sounds = mcl_core.node_sound_dirt_defaults(),
sounds = mcl_sounds.node_sound_dirt_defaults(),
})
minetest.register_node("mcl_core:gravel", {
@ -336,7 +336,7 @@ minetest.register_node("mcl_core:gravel", {
{items = {'mcl_core:gravel'}}
}
},
sounds = mcl_core.node_sound_dirt_defaults({
sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.45},
}),
})
@ -348,7 +348,7 @@ minetest.register_node("mcl_core:sand", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=3, falling_node=1, sand=1, soil_sugarcane=1, building_block=1},
sounds = mcl_core.node_sound_sand_defaults(),
sounds = mcl_sounds.node_sound_sand_defaults(),
})
minetest.register_node("mcl_core:sandstone", {
@ -357,7 +357,7 @@ minetest.register_node("mcl_core:sandstone", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=2,cracky=2,sandstone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:sandstonesmooth", {
@ -366,7 +366,7 @@ minetest.register_node("mcl_core:sandstonesmooth", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=2,cracky=2,sandstone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:sandstonecarved", {
@ -375,7 +375,7 @@ minetest.register_node("mcl_core:sandstonecarved", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=2,cracky=2,sandstone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
-- red sandstone --
@ -386,7 +386,7 @@ minetest.register_node("mcl_core:redsand", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=3, falling_node=1, sand=1, soil_sugarcane=1, building_block=1},
sounds = mcl_core.node_sound_sand_defaults(),
sounds = mcl_sounds.node_sound_sand_defaults(),
})
minetest.register_node("mcl_core:redsandstone", {
@ -395,7 +395,7 @@ minetest.register_node("mcl_core:redsandstone", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=2,cracky=2,redsandstone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:redsandstonesmooth", {
@ -404,7 +404,7 @@ minetest.register_node("mcl_core:redsandstonesmooth", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=2,cracky=2,redsandstone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:redsandstonecarved", {
@ -413,7 +413,7 @@ minetest.register_node("mcl_core:redsandstonecarved", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=2,cracky=2,redsandstone=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
---
@ -426,7 +426,7 @@ minetest.register_node("mcl_core:clay", {
stack_max = 64,
groups = {crumbly=3, building_block=1},
drop = 'mcl_core:clay_lump 4',
sounds = mcl_core.node_sound_dirt_defaults({
sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = "",
}),
})
@ -438,7 +438,7 @@ minetest.register_node("mcl_core:brick_block", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=3, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:haybale", {
@ -450,7 +450,7 @@ minetest.register_node("mcl_core:haybale", {
is_ground_content = false,
on_place = mcl_util.rotate_axis,
groups = {oddly_breakable_by_hand=3,flammable=2, building_block=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_core:bone_block", {
@ -460,7 +460,7 @@ minetest.register_node("mcl_core:bone_block", {
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
groups = {cracky=2, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:sea_lantern", {
@ -479,7 +479,7 @@ minetest.register_node("mcl_core:sea_lantern", {
},
tiles = {{name="default_sea_lantern.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.25}}},
groups = {oddly_breakable_by_hand=3, building_block=1},
sounds = mcl_core.node_sound_glass_defaults(),
sounds = mcl_sounds.node_sound_glass_defaults(),
})
minetest.register_node("mcl_core:prismarine", {
@ -488,7 +488,7 @@ minetest.register_node("mcl_core:prismarine", {
is_ground_content = false,
tiles = {{name="default_prismarine_anim.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=45.0}}},
groups = {cracky=3, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:prismarine_brick", {
@ -497,7 +497,7 @@ minetest.register_node("mcl_core:prismarine_brick", {
is_ground_content = false,
tiles = {"default_prismarine_bricks.png"},
groups = {cracky=2, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:prismarine_dark", {
@ -506,7 +506,7 @@ minetest.register_node("mcl_core:prismarine_dark", {
is_ground_content = false,
tiles = {"default_prismarine_dark.png"},
groups = {cracky=2, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
@ -520,7 +520,7 @@ minetest.register_node("mcl_core:tree", {
on_place = mcl_util.rotate_axis,
stack_max = 64,
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:sapling", {
@ -538,7 +538,7 @@ minetest.register_node("mcl_core:sapling", {
},
stack_max = 64,
groups = {snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
})
minetest.register_node("mcl_core:leaves", {
@ -564,7 +564,7 @@ minetest.register_node("mcl_core:leaves", {
},
}
},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
-- Dark oak tree --
@ -575,7 +575,7 @@ minetest.register_node("mcl_core:darktree", {
on_place = mcl_util.rotate_axis,
stack_max = 64,
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:darksapling", {
@ -593,7 +593,7 @@ minetest.register_node("mcl_core:darksapling", {
},
stack_max = 64,
groups = {snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
})
minetest.register_node("mcl_core:darkleaves", {
@ -619,7 +619,7 @@ minetest.register_node("mcl_core:darkleaves", {
},
}
},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
-- Jungle Tree --
@ -631,7 +631,7 @@ minetest.register_node("mcl_core:jungletree", {
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:junglewood", {
@ -640,7 +640,7 @@ minetest.register_node("mcl_core:junglewood", {
stack_max = 64,
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:jungleleaves", {
@ -660,7 +660,7 @@ minetest.register_node("mcl_core:jungleleaves", {
},
}
},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_core:junglesapling", {
@ -678,7 +678,7 @@ minetest.register_node("mcl_core:junglesapling", {
},
stack_max = 64,
groups = {snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
})
@ -691,7 +691,7 @@ minetest.register_node("mcl_core:acaciatree", {
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:acaciawood", {
@ -700,7 +700,7 @@ minetest.register_node("mcl_core:acaciawood", {
stack_max = 64,
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:acacialeaves", {
@ -720,7 +720,7 @@ minetest.register_node("mcl_core:acacialeaves", {
},
}
},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_core:acaciasapling", {
@ -738,7 +738,7 @@ minetest.register_node("mcl_core:acaciasapling", {
},
stack_max = 64,
groups = {snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
})
-- Spruce Tree --
@ -750,7 +750,7 @@ minetest.register_node("mcl_core:sprucetree", {
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:sprucewood", {
@ -759,7 +759,7 @@ minetest.register_node("mcl_core:sprucewood", {
stack_max = 64,
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:spruceleaves", {
@ -785,7 +785,7 @@ minetest.register_node("mcl_core:spruceleaves", {
}
}
},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_core:sprucesapling", {
@ -803,7 +803,7 @@ minetest.register_node("mcl_core:sprucesapling", {
},
stack_max = 64,
groups = {snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
})
minetest.register_node("mcl_core:birchtree", {
@ -813,7 +813,7 @@ minetest.register_node("mcl_core:birchtree", {
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:birchwood", {
@ -822,7 +822,7 @@ minetest.register_node("mcl_core:birchwood", {
stack_max = 64,
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:birchleaves", {
@ -843,7 +843,7 @@ minetest.register_node("mcl_core:birchleaves", {
},
}
},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_core:birchsapling", {
@ -861,7 +861,7 @@ minetest.register_node("mcl_core:birchsapling", {
},
stack_max = 64,
groups = {snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
})
minetest.register_node("mcl_core:cactus", {
@ -871,7 +871,7 @@ minetest.register_node("mcl_core:cactus", {
is_ground_content = true,
stack_max = 64,
groups = {oddly_breakable_by_hand=2,deco_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
paramtype = "light",
node_box = {
type = "fixed",
@ -920,7 +920,7 @@ minetest.register_node("mcl_core:reeds", {
},
stack_max = 64,
groups = {dig_immediate=3,craftitem=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
@ -929,7 +929,7 @@ minetest.register_node("mcl_core:bedrock", {
tiles = {"default_bedrock.png"},
stack_max = 64,
groups = {oddly_breakable_by_hand=5,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
is_ground_content = false,
on_blast = function() end,
drop = '',
@ -966,7 +966,7 @@ minetest.register_node("mcl_core:glass", {
sunlight_propagates = true,
stack_max = 64,
groups = {cracky=3,oddly_breakable_by_hand=3,building_block=1},
sounds = mcl_core.node_sound_glass_defaults(),
sounds = mcl_sounds.node_sound_glass_defaults(),
drop = "",
})
@ -1004,7 +1004,7 @@ minetest.register_node("mcl_core:rail", {
},
stack_max = 64,
groups = {cracky=3,oddly_breakable_by_hand=3,attached_node=1,rail=1,connect_to_raillike=1,dig_by_water=1,transport=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
})
minetest.register_node("mcl_core:ladder", {
@ -1026,7 +1026,7 @@ minetest.register_node("mcl_core:ladder", {
},
stack_max = 64,
groups = {choppy=2,oddly_breakable_by_hand=3,deco_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
@ -1047,7 +1047,7 @@ minetest.register_node("mcl_core:vine", {
},
stack_max = 64,
groups = {choppy=2,oddly_breakable_by_hand=3,flammable=2,deco_block=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
drop = "",
after_dig_node = function(pos, oldnode, oldmetadata, user)
local item = user:get_wielded_item()
@ -1078,7 +1078,7 @@ minetest.register_node("mcl_core:wood", {
stack_max = 64,
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:darkwood", {
@ -1087,7 +1087,7 @@ minetest.register_node("mcl_core:darkwood", {
stack_max = 64,
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1,building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_core:water_flowing", {
@ -1243,7 +1243,7 @@ minetest.register_node("mcl_core:cobble", {
is_ground_content = true,
stack_max = 64,
groups = {cracky=3, stone=2, building_block=1, deco_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:mossycobble", {
@ -1252,7 +1252,7 @@ minetest.register_node("mcl_core:mossycobble", {
is_ground_content = true,
stack_max = 64,
groups = {cracky=3, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:coalblock", {
@ -1261,7 +1261,7 @@ minetest.register_node("mcl_core:coalblock", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=2, flammable=1, building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:steelblock", {
@ -1270,7 +1270,7 @@ minetest.register_node("mcl_core:steelblock", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=1,level=2,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:goldblock", {
@ -1279,7 +1279,7 @@ minetest.register_node("mcl_core:goldblock", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=1,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:diamondblock", {
@ -1288,7 +1288,7 @@ minetest.register_node("mcl_core:diamondblock", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=1,level=3,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:lapisblock", {
@ -1297,7 +1297,7 @@ minetest.register_node("mcl_core:lapisblock", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=1,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:emeraldblock", {
@ -1306,14 +1306,14 @@ minetest.register_node("mcl_core:emeraldblock", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=1,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_core:obsidian", {
description = "Obsidian",
tiles = {"default_obsidian.png"},
is_ground_content = true,
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
stack_max = 64,
groups = {cracky=4,level=2,oddly_breakable_by_hand=4,building_block=1},
})
@ -1342,7 +1342,7 @@ minetest.register_node("mcl_core:dry_shrub", {
},
}
},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-1/3, -1/2, -1/3, 1/3, 1/6, 1/3},
@ -1369,7 +1369,7 @@ minetest.register_node("mcl_core:grass", {
buildable_to = true,
is_ground_content = true,
groups = {snappy=3,flammable=3,attached_node=1,dig_immediate=3,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
after_dig_node = function(pos, oldnode, oldmetadata, user)
local item = user:get_wielded_item()
if item:get_name() == "mcl_core:shears" then
@ -1389,7 +1389,7 @@ minetest.register_node("mcl_core:sponge", {
diggable = true,
buildable_to = false,
stack_max = 64,
sounds = mcl_core.node_sound_dirt_defaults(),
sounds = mcl_sounds.node_sound_dirt_defaults(),
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,building_block=1},
on_place = function(itemstack, placer, pointed_thing)
local pn = placer:get_player_name()
@ -1470,7 +1470,7 @@ minetest.register_node("mcl_core:sponge_wet", {
diggable = true,
buildable_to = false,
stack_max = 64,
sounds = mcl_core.node_sound_dirt_defaults(),
sounds = mcl_sounds.node_sound_dirt_defaults(),
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,building_block=1},
})
@ -1485,7 +1485,7 @@ minetest.register_node("mcl_core:ice", {
stack_max = 64,
groups = {cracky=3,oddly_breakable_by_hand=2,building_block=1},
drop = "",
sounds = mcl_core.node_sound_glass_defaults(),
sounds = mcl_sounds.node_sound_glass_defaults(),
})
minetest.register_node("mcl_core:packed_ice", {
@ -1498,7 +1498,7 @@ minetest.register_node("mcl_core:packed_ice", {
stack_max = 64,
groups = {cracky=3,oddly_breakable_by_hand=2,building_block=1},
drop = "",
sounds = mcl_core.node_sound_glass_defaults(),
sounds = mcl_sounds.node_sound_glass_defaults(),
})
-- Frosted Ice (4 nodes)
@ -1533,7 +1533,7 @@ for i=0,3 do
stack_max = 64,
groups = {cracky=2, frosted_ice=1, not_in_creative_inventory=1},
drop = "",
sounds = mcl_core.node_sound_glass_defaults(),
sounds = mcl_sounds.node_sound_glass_defaults(),
on_construct = function(pos)
local timer = minetest.get_node_timer(pos)
timer:start(1.5)
@ -1569,7 +1569,7 @@ minetest.register_node("mcl_core:snow", {
},
},
groups = {crumbly=3,falling_node=1,deco_block=1},
sounds = mcl_core.node_sound_dirt_defaults({
sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
drop = "mcl_throwing:snowball 2",
@ -1581,7 +1581,7 @@ minetest.register_node("mcl_core:snowblock", {
is_ground_content = true,
stack_max = 64,
groups = {crumbly=3,building_block=1},
sounds = mcl_core.node_sound_dirt_defaults({
sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
drop = "mcl_throwing:snowball 4",

View file

@ -1,3 +1,3 @@
mcl_core
mcl_sounds
mcl_throwing
mcl_util

View file

@ -4,7 +4,7 @@ minetest.register_node("mcl_end:end_stone", {
tiles = {"mcl_end_end_stone.png"},
stack_max = 64,
groups = {cracky=2,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_end:end_bricks", {
@ -13,7 +13,7 @@ minetest.register_node("mcl_end:end_bricks", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=3,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_end:purpur_block", {
@ -22,7 +22,7 @@ minetest.register_node("mcl_end:purpur_block", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=3,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_end:purpur_pillar", {
@ -33,7 +33,7 @@ minetest.register_node("mcl_end:purpur_pillar", {
on_place = mcl_util.rotate_axis,
tiles = {"mcl_end_purpur_pillar_top.png", "mcl_end_purpur_pillar_top.png", "mcl_end_purpur_pillar.png"},
groups = {cracky=3,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
local rod_box = {
@ -69,7 +69,7 @@ minetest.register_node("mcl_end:end_rod", {
selection_box = rod_box,
-- FIXME: Collision box does not seem to rotate correctly
collision_box = rod_box,
sounds = mcl_core.node_sound_glass_defaults(),
sounds = mcl_sounds.node_sound_glass_defaults(),
})
minetest.register_node("mcl_end:dragon_egg", {
@ -104,7 +104,7 @@ minetest.register_node("mcl_end:dragon_egg", {
type = "regular",
},
groups = { oddly_breakable_by_hand = 3, falling_node = 1, deco_block = 1, not_in_creative_inventory = 1 },
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
-- TODO: Make dragon egg teleport on punching
})
@ -133,7 +133,7 @@ minetest.register_node("mcl_end:chorus_flower", {
paramtype = "light",
node_box = chorus_flower_box,
selection_box = { type = "regular" },
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
groups = { oddly_breakable_by_hand = 3, choppy = 3, deco_block = 1 },
})
@ -151,7 +151,7 @@ minetest.register_node("mcl_end:chorus_flower_dead", {
paramtype = "light",
node_box = chorus_flower_box,
selection_box = { type = "regular" },
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
drop = "mcl_end:chorus_flower",
groups = { oddly_breakable_by_hand = 3, choppy = 3, deco_block = 1},
})
@ -181,7 +181,7 @@ minetest.register_node("mcl_end:chorus_plant", {
},
connect_sides = { "top", "bottom", "front", "back", "left", "right" },
connects_to = {"mcl_end:chorus_plant", "mcl_end:chorus_flower", "mcl_end:chorus_flower_dead", "mcl_end:end_stone"},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
-- TODO: Check drop probability
drop = { items = { {items = { "mcl_end:chorus_fruit", rarity = 4 } } } },
groups = { oddly_breakable_by_hand = 3, choppy = 3, not_in_creative_inventory = 1,},

View file

@ -21,7 +21,7 @@ minetest.register_node("mcl_farming:beetroot_0", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:beetroot_1", {
@ -41,7 +41,7 @@ minetest.register_node("mcl_farming:beetroot_1", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:beetroot_2", {
@ -61,7 +61,7 @@ minetest.register_node("mcl_farming:beetroot_2", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:beetroot", {
@ -85,7 +85,7 @@ minetest.register_node("mcl_farming:beetroot", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_craftitem("mcl_farming:beetroot_item", {

View file

@ -11,7 +11,7 @@ minetest.register_node("mcl_farming:carrot_1", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:carrot_2", {
@ -27,7 +27,7 @@ minetest.register_node("mcl_farming:carrot_2", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:carrot_3", {
@ -43,7 +43,7 @@ minetest.register_node("mcl_farming:carrot_3", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:carrot", {
@ -61,7 +61,7 @@ minetest.register_node("mcl_farming:carrot", {
}
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_craftitem("mcl_farming:carrot_item", {

View file

@ -1,4 +1,5 @@
mcl_core
mcl_sounds
bucket
mcl_wool
mcl_torches

View file

@ -51,7 +51,7 @@ minetest.register_node("mcl_farming:melontige_1", {
},
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:melontige_2", {
@ -68,7 +68,7 @@ minetest.register_node("mcl_farming:melontige_2", {
},
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:melontige_unconnect", {
@ -79,7 +79,7 @@ minetest.register_node("mcl_farming:melontige_unconnect", {
drawtype = "plantlike",
tiles = {"farming_tige_end.png"},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:melontige_linked_r", {
@ -109,7 +109,7 @@ minetest.register_node("mcl_farming:melontige_linked_r", {
"farming_tige_connnect.png^[transformFX90" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:melontige_linked_l", {
@ -139,7 +139,7 @@ minetest.register_node("mcl_farming:melontige_linked_l", {
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:melontige_linked_t", {
@ -169,7 +169,7 @@ minetest.register_node("mcl_farming:melontige_linked_t", {
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:melontige_linked_b", {
@ -199,7 +199,7 @@ minetest.register_node("mcl_farming:melontige_linked_b", {
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_craftitem("mcl_farming:melon_seeds", {

View file

@ -8,7 +8,7 @@ minetest.register_node("mcl_farming:mushroom_brown", {
paramtype = "light",
walkable = false,
groups = {dig_immediate=3,mushroom=1,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
light_source = 1,
selection_box = {
type = "fixed",
@ -26,7 +26,7 @@ minetest.register_node("mcl_farming:mushroom_red", {
paramtype = "light",
walkable = false,
groups = {dig_immediate=3,mushroom=1,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.015, 0.15 },

View file

@ -11,7 +11,7 @@ minetest.register_node("mcl_farming:potato_1", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:potato_2", {
@ -27,7 +27,7 @@ minetest.register_node("mcl_farming:potato_2", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:potato", {
@ -44,7 +44,7 @@ minetest.register_node("mcl_farming:potato", {
}
},
groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_craftitem("mcl_farming:potato_item", {

View file

@ -22,7 +22,7 @@ minetest.register_node("mcl_farming:pumpkin_1", {
},
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:pumpkin_2", {
@ -39,7 +39,7 @@ minetest.register_node("mcl_farming:pumpkin_2", {
},
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
@ -70,7 +70,7 @@ minetest.register_node("mcl_farming:pumpkin_face", {
end
end
end,
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_node("mcl_farming:pumpkintige_unconnect", {
@ -81,7 +81,7 @@ minetest.register_node("mcl_farming:pumpkintige_unconnect", {
drawtype = "plantlike",
tiles = {"farming_tige_end.png"},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
@ -112,7 +112,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_r", {
"farming_tige_connnect.png^[transformFX90" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:pumpkintige_linked_l", {
@ -142,7 +142,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_l", {
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:pumpkintige_linked_t", {
@ -172,7 +172,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_t", {
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_farming:pumpkintige_linked_b", {
@ -202,7 +202,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_b", {
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
mcl_farming:add_plant("mcl_farming:pumpkintige_unconnect", {"mcl_farming:pumpkin_1", "mcl_farming:pumpkin_2"}, 80, 20)
@ -268,7 +268,7 @@ minetest.register_node("mcl_farming:pumpkin_face_light", {
light_source = 14,
tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face_light.png"},
groups = {choppy=2, oddly_breakable_by_hand=2, building_block=1},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({

View file

@ -12,7 +12,7 @@ minetest.register_node("mcl_farming:soil", {
}
},
groups = { crumbly=3, not_in_creative_inventory=1, soil=2, soil_sapling=1 },
sounds = mcl_core.node_sound_dirt_defaults(),
sounds = mcl_sounds.node_sound_dirt_defaults(),
})
minetest.register_node("mcl_farming:soil_wet", {
@ -28,7 +28,7 @@ minetest.register_node("mcl_farming:soil_wet", {
}
},
groups = { crumbly=3, not_in_creative_inventory=1, soil=3, soil_sapling=1 },
sounds = mcl_core.node_sound_dirt_defaults(),
sounds = mcl_sounds.node_sound_dirt_defaults(),
})
minetest.register_abm({

View file

@ -22,7 +22,7 @@ minetest.register_node("mcl_farming:wheat_1", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1, dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
node_box = {
type = "fixed",
fixed = {
@ -49,7 +49,7 @@ minetest.register_node("mcl_farming:wheat_2", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1, dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
node_box = {
type = "fixed",
fixed = {
@ -76,7 +76,7 @@ minetest.register_node("mcl_farming:wheat_3", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1, dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
node_box = {
type = "fixed",
fixed = {
@ -111,7 +111,7 @@ minetest.register_node("mcl_farming:wheat", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1, dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
node_box = {
type = "fixed",
fixed = {

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -194,7 +194,7 @@ end
local wood_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fence_wood=1}
local wood_connect = {"group:fence_wood"}
local wood_sounds = mcl_core.node_sound_wood_defaults()
local wood_sounds = mcl_sounds.node_sound_wood_defaults()
local woods = {
{"", "Oak Fence", "Oak Fence Gate", "default_wood.png", "default_fence.png", "mcl_fences_fence_gate.png", "mcl_core:wood"},
@ -234,7 +234,7 @@ for w=1, #woods do
end
-- Nether Brick Fence (without fence gate!)
mcl_fences.register_fence("nether_brick_fence", "Nether Brick Fence", nil, "mcl_nether_nether_brick.png", "default_fence.png", nil, {cracky=2, deco_block=1, fence_nether_brick=1}, {"group:fence_nether_brick"}, mcl_core.node_sound_stone_defaults())
mcl_fences.register_fence("nether_brick_fence", "Nether Brick Fence", nil, "mcl_nether_nether_brick.png", "default_fence.png", nil, {cracky=2, deco_block=1, fence_nether_brick=1}, {"group:fence_nether_brick"}, mcl_sounds.node_sound_stone_defaults())
minetest.register_craft({
output = 'mcl_fences:nether_brick_fence 6',

View file

@ -1,3 +1,4 @@
mcl_core
mcl_sounds
mcl_farming
mcl_flowers

View file

@ -48,7 +48,7 @@ minetest.register_node("mcl_flowerpots:flower_pot", {
},
inventory_image = "mcl_flowerpots_flowerpot_inventory.png",
groups = {dig_immediate=3, deco_block=1, attached_node=1, flower_pot=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
on_rightclick = function(pos, node, clicker, itemstack)
local item = clicker:get_wielded_item():get_name()
for _, row in ipairs(flowers) do
@ -107,7 +107,7 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, {
fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2}
},
groups = {dig_immediate=3, attached_node=1, not_in_creative_inventory=1, flower_pot=2},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
on_rightclick = function(pos, item, clicker)
minetest.add_item({x=pos.x, y=pos.y+0.5, z=pos.z}, flower_node)
minetest.set_node(pos, {name="mcl_flowerpots:flower_pot"})
@ -143,7 +143,7 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, {
fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2}
},
groups = {dig_immediate=3, attached_node=1, not_in_creative_inventory=1, flower_pot=2},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
on_rightclick = function(pos, item, clicker)
minetest.add_item({x=pos.x, y=pos.y+0.5, z=pos.z}, flower_node)
minetest.set_node(pos, {name="mcl_flowerpots:flower_pot"})

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -26,7 +26,7 @@ local function add_simple_flower(name, desc, image, color)
walkable = false,
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,dig_by_water=1,color=1,deco_block=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
buildable_to = true,
selection_box = {
type = "fixed",
@ -52,7 +52,7 @@ minetest.register_node("mcl_flowers:tulip_pink", {
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,color_pink=1,dig_by_water=1,deco_block=1},
buildable_to = true,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
@ -71,7 +71,7 @@ minetest.register_node("mcl_flowers:tulip_red", {
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,color_red=1,dig_by_water=1,deco_block=1},
buildable_to = true,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
@ -91,7 +91,7 @@ minetest.register_node("mcl_flowers:tulip_white", {
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,color_white=1,dig_by_water=1,deco_block=1},
buildable_to = true,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
@ -113,7 +113,7 @@ minetest.register_node("mcl_flowers:allium", {
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,color_pink=1,dig_by_water=1,deco_block=1},
buildable_to = true,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
@ -134,7 +134,7 @@ minetest.register_node("mcl_flowers:peony", {
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,color_pink=1,dig_by_water=1,deco_block=1},
buildable_to = true,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
@ -156,7 +156,7 @@ minetest.register_node("mcl_flowers:azure_bluet", {
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,color_white=1,dig_by_water=1,deco_block=1},
buildable_to = true,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
@ -177,7 +177,7 @@ minetest.register_node("mcl_flowers:blue_orchid", {
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,color_blue=1,dig_by_water=1,deco_block=1},
buildable_to = true,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
@ -198,7 +198,7 @@ minetest.register_node("mcl_flowers:fern", {
stack_max = 64,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,dig_by_water=1,deco_block=1},
buildable_to = true,
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
@ -246,7 +246,7 @@ function register_large(name, desc, inv_img, bot_img, colr) --change in function
]]
drop = "mcl_flowers:"..name,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,colr=1, dig_by_water=1, double_bottom =1,deco_block=1,deco_block=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.5, 0.25 },
@ -266,7 +266,7 @@ function register_large(name, desc, inv_img, bot_img, colr) --change in function
buildable_to = true,
drop = "mcl_flowers:"..name,
groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,colr=1, dig_by_water=1, not_in_creative_inventory = 1, double_top =1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.5, 0.25 },
@ -288,7 +288,7 @@ minetest.register_node("mcl_flowers:waterlily", {
walkable = true,
sunlight_propagates = true,
groups = {dig_immediate = 3, dig_by_water = 1, deco_block=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
node_placement_prediction = "",
node_box = {
type = "fixed",

View file

@ -1,2 +1,3 @@
mcl_core
mcl_sounds
mcl_craftguide

View file

@ -31,7 +31,7 @@ minetest.register_node("mcl_furnaces:furnace", {
is_ground_content = false,
stack_max = 64,
groups = {cracky=2, deco_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", furnace_inactive_formspec)
@ -97,7 +97,7 @@ minetest.register_node("mcl_furnaces:furnace_active", {
light_source = 13,
drop = "mcl_furnaces:furnace",
groups = {cracky=2, not_in_creative_inventory=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", furnace_inactive_formspec)

View file

@ -1 +1 @@
mcl_core
mcl_sounds

View file

@ -29,7 +29,7 @@ local function addhead(node, desc)
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
},
sounds = mcl_core.node_sound_defaults({
sounds = mcl_sounds.node_sound_defaults({
footstep = {name="default_hard_footstep", gain=0.3}
}),
})

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -68,7 +68,7 @@ minetest.register_node("mcl_hoppers:hopper", {
minetest.log("action", player:get_player_name()..
" takes stuff from mcl_hoppers at "..minetest.pos_to_string(pos))
end,
sounds = mcl_core.node_sound_metal_defaults(),
sounds = mcl_sounds.node_sound_metal_defaults(),
})
minetest.register_node("mcl_hoppers:hopper_side", {
@ -128,7 +128,7 @@ minetest.register_node("mcl_hoppers:hopper_side", {
minetest.log("action", player:get_player_name()..
" takes stuff from mcl_hoppers at "..minetest.pos_to_string(pos))
end,
sounds = mcl_core.node_sound_metal_defaults(),
sounds = mcl_sounds.node_sound_metal_defaults(),
})
--make mcl_hopperss suck in blocks
minetest.register_abm({
@ -516,7 +516,7 @@ minetest.register_craftitem("mcl_hoppers:hopper_item", {
placed = true
end
if placed == true then
minetest.sound_play(mcl_core.node_sound_metal_defaults().place, { pos = pos2 })
minetest.sound_play(mcl_sounds.node_sound_metal_defaults().place, { pos = pos2 })
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
end

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -76,7 +76,7 @@ minetest.register_craft({
minetest.register_node("mcl_jukebox:jukebox", {
description = "Jukebox",
tiles = {"mcl_jukebox_top.png", "mcl_jukebox_side.png", "mcl_jukebox_side.png"},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
groups = {oddly_breakable_by_hand=1, choppy=3, deco_block=1},
on_construct = function(pos)
local meta = minetest.get_meta(pos)

View file

@ -1,3 +1,4 @@
mcl_core
mcl_sounds
mcl_player
mesecons?

View file

@ -21,7 +21,7 @@ minetest.register_node("mcl_minecarts:golden_rail", {
minetest.get_meta(pos):set_string("cart_acceleration", "0.5")
end
end,
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
mesecons = {
effector = {
action_on = function(pos, node)

View file

@ -1,3 +1,3 @@
mcl_core
mcl_sounds
mcl_util
walkover

View file

@ -14,7 +14,7 @@ minetest.register_node("mcl_nether:glowstone", {
},
-- Real light level: 15 (but Minetest caps at 14)
light_source = 14,
sounds = mcl_core.node_sound_glass_defaults(),
sounds = mcl_sounds.node_sound_glass_defaults(),
})
minetest.register_node("mcl_nether:quartz_ore", {
@ -24,7 +24,7 @@ minetest.register_node("mcl_nether:quartz_ore", {
is_ground_content = true,
groups = {cracky=2,building_block=1},
drop = 'mcl_nether:quartz',
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_nether:netherrack", {
@ -33,7 +33,7 @@ minetest.register_node("mcl_nether:netherrack", {
tiles = {"mcl_nether_netherrack.png"},
is_ground_content = true,
groups = {cracky=3,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_nether:magma", {
@ -44,7 +44,7 @@ minetest.register_node("mcl_nether:magma", {
light_source = 3,
sunlight_propagates = false,
groups = {cracky=3,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
-- From walkover mod
on_walk_over = function(loc, nodeiamon, player)
-- Hurt players standing on top of this block
@ -62,7 +62,7 @@ minetest.register_node("mcl_nether:soul_sand", {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5 - 2/16, 0.5 },
},
sounds = mcl_core.node_sound_sand_defaults(),
sounds = mcl_sounds.node_sound_sand_defaults(),
-- Movement handling is done in playerplus mod
})
@ -73,7 +73,7 @@ minetest.register_node("mcl_nether:nether_brick", {
tiles = {"mcl_nether_nether_brick.png"},
is_ground_content = false,
groups = {cracky=2,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_nether:red_nether_brick", {
@ -83,7 +83,7 @@ minetest.register_node("mcl_nether:red_nether_brick", {
tiles = {"mcl_nether_red_nether_brick.png"},
is_ground_content = false,
groups = {cracky=2,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
@ -93,7 +93,7 @@ minetest.register_node("mcl_nether:nether_wart_block", {
tiles = {"mcl_nether_nether_wart_block.png"},
is_ground_content = false,
groups = {oddly_breakable_by_hand=3,building_block=1},
sounds = mcl_core.node_sound_leaves_defaults(
sounds = mcl_sounds.node_sound_leaves_defaults(
{
footstep={name="default_dirt_footstep", gain=0.7},
dug={name="default_dirt_footstep", gain=1.5},
@ -107,7 +107,7 @@ minetest.register_node("mcl_nether:quartz_block", {
is_ground_content = false,
tiles = {"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
groups = {cracky=3,quartz_block=1,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_nether:quartz_chiseled", {
@ -116,7 +116,7 @@ minetest.register_node("mcl_nether:quartz_chiseled", {
is_ground_content = false,
tiles = {"mcl_nether_quartz_chiseled_top.png", "mcl_nether_quartz_chiseled_top.png", "mcl_nether_quartz_chiseled_side.png"},
groups = {cracky=3,quartz_block=1,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node("mcl_nether:quartz_pillar", {
@ -127,7 +127,7 @@ minetest.register_node("mcl_nether:quartz_pillar", {
on_place = mcl_util.rotate_axis,
tiles = {"mcl_nether_quartz_pillar_top.png", "mcl_nether_quartz_pillar_top.png", "mcl_nether_quartz_pillar_side.png"},
groups = {cracky=3,quartz_block=1,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})

View file

@ -12,7 +12,7 @@ minetest.register_node("mcl_nether:nether_wart_0", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,attached_node=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_nether:nether_wart_1", {
@ -29,7 +29,7 @@ minetest.register_node("mcl_nether:nether_wart_1", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,attached_node=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_nether:nether_wart_2", {
@ -46,7 +46,7 @@ minetest.register_node("mcl_nether:nether_wart_2", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,attached_node=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_nether:nether_wart", {
@ -70,7 +70,7 @@ minetest.register_node("mcl_nether:nether_wart", {
},
},
groups = {dig_immediate=3, not_in_creative_inventory=1,attached_node=1,dig_by_water=1},
sounds = mcl_core.node_sound_leaves_defaults(),
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_craftitem("mcl_nether:nether_wart_item", {

View file

@ -0,0 +1 @@
This mod contains the core sounds of MineClone 2 as well as helper function for mods to access them.

87
mods/mcl_sounds/init.lua Normal file
View file

@ -0,0 +1,87 @@
--
-- Sounds
--
mcl_sounds = {}
function mcl_sounds.node_sound_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="", gain=1.0}
table.dug = table.dug or
{name="default_dug_node", gain=0.25}
table.place = table.place or
{name="default_place_node_hard", gain=1.0}
return table
end
function mcl_sounds.node_sound_stone_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_hard_footstep", gain=0.5}
table.dug = table.dug or
{name="default_hard_footstep", gain=1.0}
mcl_sounds.node_sound_defaults(table)
return table
end
-- TODO: Maybe add custom metal sounds
mcl_sounds.node_sound_metal_defaults = mcl_sounds.node_sound_stone_defaults
function mcl_sounds.node_sound_dirt_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_dirt_footstep", gain=1.0}
table.dug = table.dug or
{name="default_dirt_footstep", gain=1.5}
table.place = table.place or
{name="default_place_node", gain=1.0}
mcl_sounds.node_sound_defaults(table)
return table
end
function mcl_sounds.node_sound_sand_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_sand_footstep", gain=0.5}
table.dug = table.dug or
{name="default_sand_footstep", gain=1.0}
table.place = table.place or
{name="default_place_node", gain=1.0}
mcl_sounds.node_sound_defaults(table)
return table
end
function mcl_sounds.node_sound_wood_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_wood_footstep", gain=0.5}
table.dug = table.dug or
{name="default_wood_footstep", gain=1.0}
mcl_sounds.node_sound_defaults(table)
return table
end
function mcl_sounds.node_sound_leaves_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_grass_footstep", gain=0.35}
table.dug = table.dug or
{name="default_grass_footstep", gain=0.85}
table.dig = table.dig or
{name="default_dig_crumbly", gain=0.4}
table.place = table.place or
{name="default_place_node", gain=1.0}
mcl_sounds.node_sound_defaults(table)
return table
end
function mcl_sounds.node_sound_glass_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_glass_footstep", gain=0.5}
table.dug = table.dug or
{name="default_break_glass", gain=1.0}
mcl_sounds.node_sound_defaults(table)
return table
end

1
mods/mcl_sounds/mod.conf Normal file
View file

@ -0,0 +1 @@
name = mcl_sounds

View file

@ -1,2 +1,3 @@
mcl_core
mcl_sounds
mcl_fire

View file

@ -49,7 +49,7 @@ minetest.register_node("mcl_tnt:tnt", {
mesecons = {effector = {
action_on = tnt.ignite
}},
sounds = mcl_core.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_wood_defaults(),
})
local TNT_RANGE = 3

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -122,7 +122,7 @@ mcl_torches.register_torch("torch", "Torch", "default_torch_on_floor.png",
}},
14,
{dig_immediate=3, torch=1, dig_by_water=1, deco_block=1},
mcl_core.node_sound_wood_defaults())
mcl_sounds.node_sound_wood_defaults())
minetest.register_craft({

View file

@ -1 +1,2 @@
mcl_core
mcl_sounds

View file

@ -126,7 +126,7 @@ local function register_wall(nodename, name, texture, invtex)
type = "fixed",
fixed = take
},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
end
@ -145,7 +145,7 @@ local function register_wall(nodename, name, texture, invtex)
type = "fixed",
fixed = {pillar, full_blocks[1]}
},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
minetest.register_node(nodename.."_21", {
@ -163,7 +163,7 @@ local function register_wall(nodename, name, texture, invtex)
type = "fixed",
fixed = {pillar, full_blocks[2]}
},
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
-- Inventory item
@ -186,7 +186,7 @@ local function register_wall(nodename, name, texture, invtex)
},
collisionbox = {-0.2, 0, -0.2, 0.2, 1.4, 0.2},
on_construct = update_wall,
sounds = mcl_core.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
})
end

View file

@ -1 +1 @@
mcl_core
mcl_sounds

View file

@ -39,7 +39,7 @@ for _, row in ipairs(wool.dyes) do
is_ground_content = false,
tiles = {"wool_"..texture..".png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=1,wool=1,building_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
})
minetest.register_node("mcl_wool:"..name.."_carpet", {
description = desc.." Carpet",
@ -48,7 +48,7 @@ for _, row in ipairs(wool.dyes) do
tiles = {"wool_"..texture..".png"},
wield_image = "wool_"..name..".png",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=1,carpet=1,deco_block=1},
sounds = mcl_core.node_sound_defaults(),
sounds = mcl_sounds.node_sound_defaults(),
paramtype = "light",
stack_max = 64,
drawtype = "nodebox",

View file

@ -1,3 +1,4 @@
3d_armor
mcl_core
mcl_sounds
stairs

Some files were not shown because too many files have changed in this diff Show more