Tap tap
Some checks failed
Unit Tests / busted_unit_test (push) Failing after 6m39s
Error Check / luacheck_errcheck (push) Failing after 6m54s

This commit is contained in:
DesertMermaid 2024-12-13 10:18:25 -08:00
parent f5877a23cf
commit 090f81b833
107 changed files with 1018 additions and 1018 deletions

View file

@ -178,8 +178,8 @@ minetest.register_craftitem("vox_coloring:cleaning_solvent", {
minetest.register_craft({ minetest.register_craft({
output = "vox_coloring:cleaning_solvent", output = "vox_coloring:cleaning_solvent",
recipe = { recipe = {
{"vox_main:soap", "bucket:water_bucket", "vox_main:salt"}, {"vox_core:soap", "bucket:water_bucket", "vox_core:salt"},
{"vox_main:ash", "", ""}, {"vox_core:ash", "", ""},
}, },
replacements = {{"bucket:water_bucket", "bucket:bucket"}}, replacements = {{"bucket:water_bucket", "bucket:bucket"}},
}) })

View file

@ -2,7 +2,7 @@
-- Sounds -- Sounds
-- --
function vox_main.node_sound_defaults(tbl) function vox_core.node_sound_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "", gain = 1.0} {name = "", gain = 1.0}
@ -13,17 +13,17 @@ function vox_main.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_stone_defaults(tbl) function vox_core.node_sound_stone_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_hard_footstep", gain = 0.2} {name = "default_hard_footstep", gain = 0.2}
tbl.dug = tbl.dug or tbl.dug = tbl.dug or
{name = "default_hard_footstep", gain = 1.0} {name = "default_hard_footstep", gain = 1.0}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_dirt_defaults(tbl) function vox_core.node_sound_dirt_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_dirt_footstep", gain = 0.25} {name = "default_dirt_footstep", gain = 0.25}
@ -33,11 +33,11 @@ function vox_main.node_sound_dirt_defaults(tbl)
{name = "default_dirt_footstep", gain = 1.0} {name = "default_dirt_footstep", gain = 1.0}
tbl.place = tbl.place or tbl.place = tbl.place or
{name = "default_place_node", gain = 1.0} {name = "default_place_node", gain = 1.0}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_sand_defaults(tbl) function vox_core.node_sound_sand_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_sand_footstep", gain = 0.05} {name = "default_sand_footstep", gain = 0.05}
@ -45,11 +45,11 @@ function vox_main.node_sound_sand_defaults(tbl)
{name = "default_sand_footstep", gain = 0.15} {name = "default_sand_footstep", gain = 0.15}
tbl.place = tbl.place or tbl.place = tbl.place or
{name = "default_place_node", gain = 1.0} {name = "default_place_node", gain = 1.0}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_gravel_defaults(tbl) function vox_core.node_sound_gravel_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_gravel_footstep", gain = 0.25} {name = "default_gravel_footstep", gain = 0.25}
@ -59,11 +59,11 @@ function vox_main.node_sound_gravel_defaults(tbl)
{name = "default_gravel_dug", gain = 1.0} {name = "default_gravel_dug", gain = 1.0}
tbl.place = tbl.place or tbl.place = tbl.place or
{name = "default_place_node", gain = 1.0} {name = "default_place_node", gain = 1.0}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_wood_defaults(tbl) function vox_core.node_sound_wood_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_wood_footstep", gain = 0.15} {name = "default_wood_footstep", gain = 0.15}
@ -71,11 +71,11 @@ function vox_main.node_sound_wood_defaults(tbl)
{name = "default_dig_choppy", gain = 0.4} {name = "default_dig_choppy", gain = 0.4}
tbl.dug = tbl.dug or tbl.dug = tbl.dug or
{name = "default_wood_footstep", gain = 1.0} {name = "default_wood_footstep", gain = 1.0}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_leaves_defaults(tbl) function vox_core.node_sound_leaves_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_grass_footstep", gain = 0.45} {name = "default_grass_footstep", gain = 0.45}
@ -83,11 +83,11 @@ function vox_main.node_sound_leaves_defaults(tbl)
{name = "default_grass_footstep", gain = 0.7} {name = "default_grass_footstep", gain = 0.7}
tbl.place = tbl.place or tbl.place = tbl.place or
{name = "default_place_node", gain = 1.0} {name = "default_place_node", gain = 1.0}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_glass_defaults(tbl) function vox_core.node_sound_glass_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_glass_footstep", gain = 0.3} {name = "default_glass_footstep", gain = 0.3}
@ -95,11 +95,11 @@ function vox_main.node_sound_glass_defaults(tbl)
{name = "default_glass_footstep", gain = 0.5} {name = "default_glass_footstep", gain = 0.5}
tbl.dug = tbl.dug or tbl.dug = tbl.dug or
{name = "default_break_glass", gain = 1.0} {name = "default_break_glass", gain = 1.0}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_ice_defaults(tbl) function vox_core.node_sound_ice_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_ice_footstep", gain = 0.15} {name = "default_ice_footstep", gain = 0.15}
@ -107,11 +107,11 @@ function vox_main.node_sound_ice_defaults(tbl)
{name = "default_ice_dig", gain = 0.5} {name = "default_ice_dig", gain = 0.5}
tbl.dug = tbl.dug or tbl.dug = tbl.dug or
{name = "default_ice_dug", gain = 0.5} {name = "default_ice_dug", gain = 0.5}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_metal_defaults(tbl) function vox_core.node_sound_metal_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_metal_footstep", gain = 0.2} {name = "default_metal_footstep", gain = 0.2}
@ -121,19 +121,19 @@ function vox_main.node_sound_metal_defaults(tbl)
{name = "default_dug_metal", gain = 0.5} {name = "default_dug_metal", gain = 0.5}
tbl.place = tbl.place or tbl.place = tbl.place or
{name = "default_place_node_metal", gain = 0.5} {name = "default_place_node_metal", gain = 0.5}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_water_defaults(tbl) function vox_core.node_sound_water_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_water_footstep", gain = 0.2} {name = "default_water_footstep", gain = 0.2}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
function vox_main.node_sound_snow_defaults(tbl) function vox_core.node_sound_snow_defaults(tbl)
tbl = tbl or {} tbl = tbl or {}
tbl.footstep = tbl.footstep or tbl.footstep = tbl.footstep or
{name = "default_snow_footstep", gain = 0.2} {name = "default_snow_footstep", gain = 0.2}
@ -143,7 +143,7 @@ function vox_main.node_sound_snow_defaults(tbl)
{name = "default_snow_footstep", gain = 0.3} {name = "default_snow_footstep", gain = 0.3}
tbl.place = tbl.place or tbl.place = tbl.place or
{name = "default_place_node", gain = 1.0} {name = "default_place_node", gain = 1.0}
vox_main.node_sound_defaults(tbl) vox_core.node_sound_defaults(tbl)
return tbl return tbl
end end
@ -152,11 +152,11 @@ end
-- Lavacooling -- Lavacooling
-- --
vox_main.cool_lava = function(pos, node) vox_core.cool_lava = function(pos, node)
if node.name == "vox_main:lava_source" then if node.name == "vox_core:lava_source" then
minetest.set_node(pos, {name = "vox_main:obsidian"}) minetest.set_node(pos, {name = "vox_core:obsidian"})
else -- Lava flowing else -- Lava flowing
minetest.set_node(pos, {name = "vox_main:stone"}) minetest.set_node(pos, {name = "vox_core:stone"})
end end
minetest.sound_play("default_cool_lava", minetest.sound_play("default_cool_lava",
{pos = pos, max_hear_distance = 16, gain = 0.2}, true) {pos = pos, max_hear_distance = 16, gain = 0.2}, true)
@ -165,13 +165,13 @@ end
if minetest.settings:get_bool("enable_lavacooling") ~= false then if minetest.settings:get_bool("enable_lavacooling") ~= false then
minetest.register_abm({ minetest.register_abm({
label = "Lava cooling", label = "Lava cooling",
nodenames = {"vox_main:lava_source", "vox_main:lava_flowing"}, nodenames = {"vox_core:lava_source", "vox_core:lava_flowing"},
neighbors = {"group:cools_lava", "group:water"}, neighbors = {"group:cools_lava", "group:water"},
interval = 2, interval = 2,
chance = 2, chance = 2,
catch_up = false, catch_up = false,
action = function(...) action = function(...)
vox_main.cool_lava(...) vox_core.cool_lava(...)
end, end,
}) })
end end
@ -181,7 +181,7 @@ end
-- Optimized helper to put all items in an inventory into a drops list -- Optimized helper to put all items in an inventory into a drops list
-- --
function vox_main.get_inventory_drops(pos, inventory, drops) function vox_core.get_inventory_drops(pos, inventory, drops)
local inv = minetest.get_meta(pos):get_inventory() local inv = minetest.get_meta(pos):get_inventory()
local n = #drops local n = #drops
for i = 1, inv:get_size(inventory) do for i = 1, inv:get_size(inventory) do
@ -200,7 +200,7 @@ end
-- Wrapping the functions in ABM action is necessary to make overriding them possible -- Wrapping the functions in ABM action is necessary to make overriding them possible
function vox_main.grow_cactus(pos, node) function vox_core.grow_cactus(pos, node)
if node.param2 >= 4 then if node.param2 >= 4 then
return return
end end
@ -210,7 +210,7 @@ function vox_main.grow_cactus(pos, node)
end end
pos.y = pos.y + 1 pos.y = pos.y + 1
local height = 0 local height = 0
while node.name == "vox_main:cactus" and height < 4 do while node.name == "vox_core:cactus" and height < 4 do
height = height + 1 height = height + 1
pos.y = pos.y + 1 pos.y = pos.y + 1
node = minetest.get_node(pos) node = minetest.get_node(pos)
@ -221,19 +221,19 @@ function vox_main.grow_cactus(pos, node)
if minetest.get_node_light(pos) < 13 then if minetest.get_node_light(pos) < 13 then
return return
end end
minetest.set_node(pos, {name = "vox_main:cactus"}) minetest.set_node(pos, {name = "vox_core:cactus"})
return true return true
end end
function vox_main.grow_papyrus(pos, node) function vox_core.grow_papyrus(pos, node)
pos.y = pos.y - 1 pos.y = pos.y - 1
local name = minetest.get_node(pos).name local name = minetest.get_node(pos).name
if name ~= "vox_main:dirt" and if name ~= "vox_core:dirt" and
name ~= "vox_main:dirt_with_grass" and name ~= "vox_core:dirt_with_grass" and
name ~= "vox_main:dirt_with_dry_grass" and name ~= "vox_core:dirt_with_dry_grass" and
name ~= "vox_main:dirt_with_rainforest_litter" and name ~= "vox_core:dirt_with_rainforest_litter" and
name ~= "vox_main:dry_dirt" and name ~= "vox_core:dry_dirt" and
name ~= "vox_main:dry_dirt_with_dry_grass" then name ~= "vox_core:dry_dirt_with_dry_grass" then
return return
end end
if not minetest.find_node_near(pos, 3, {"group:water"}) then if not minetest.find_node_near(pos, 3, {"group:water"}) then
@ -241,7 +241,7 @@ function vox_main.grow_papyrus(pos, node)
end end
pos.y = pos.y + 1 pos.y = pos.y + 1
local height = 0 local height = 0
while node.name == "vox_main:papyrus" and height < 4 do while node.name == "vox_core:papyrus" and height < 4 do
height = height + 1 height = height + 1
pos.y = pos.y + 1 pos.y = pos.y + 1
node = minetest.get_node(pos) node = minetest.get_node(pos)
@ -252,39 +252,39 @@ function vox_main.grow_papyrus(pos, node)
if minetest.get_node_light(pos) < 13 then if minetest.get_node_light(pos) < 13 then
return return
end end
minetest.set_node(pos, {name = "vox_main:papyrus"}) minetest.set_node(pos, {name = "vox_core:papyrus"})
return true return true
end end
minetest.register_abm({ minetest.register_abm({
label = "Grow cactus", label = "Grow cactus",
nodenames = {"vox_main:cactus"}, nodenames = {"vox_core:cactus"},
neighbors = {"group:sand"}, neighbors = {"group:sand"},
interval = 12, interval = 12,
chance = 83, chance = 83,
action = function(...) action = function(...)
vox_main.grow_cactus(...) vox_core.grow_cactus(...)
end end
}) })
minetest.register_abm({ minetest.register_abm({
label = "Grow papyrus", label = "Grow papyrus",
nodenames = {"vox_main:papyrus"}, nodenames = {"vox_core:papyrus"},
-- Grows on the dirt and surface dirt nodes of the biomes papyrus appears in, -- Grows on the dirt and surface dirt nodes of the biomes papyrus appears in,
-- including the old savanna nodes. -- including the old savanna nodes.
-- 'vox_main:dirt_with_grass' is here only because it was allowed before. -- 'vox_core:dirt_with_grass' is here only because it was allowed before.
neighbors = { neighbors = {
"vox_main:dirt", "vox_core:dirt",
"vox_main:dirt_with_grass", "vox_core:dirt_with_grass",
"vox_main:dirt_with_dry_grass", "vox_core:dirt_with_dry_grass",
"vox_main:dirt_with_rainforest_litter", "vox_core:dirt_with_rainforest_litter",
"vox_main:dry_dirt", "vox_core:dry_dirt",
"vox_main:dry_dirt_with_dry_grass", "vox_core:dry_dirt_with_dry_grass",
}, },
interval = 14, interval = 14,
chance = 71, chance = 71,
action = function(...) action = function(...)
vox_main.grow_papyrus(...) vox_core.grow_papyrus(...)
end end
}) })
@ -295,7 +295,7 @@ minetest.register_abm({
local in_dig_up = false local in_dig_up = false
function vox_main.dig_up(pos, node, digger, max_height) function vox_core.dig_up(pos, node, digger, max_height)
if in_dig_up then return end -- Do not recurse if in_dig_up then return end -- Do not recurse
if digger == nil then return end if digger == nil then return end
max_height = max_height or 100 max_height = max_height or 100
@ -325,7 +325,7 @@ end)
-- --
local fence_collision_extra = minetest.settings:get_bool("enable_fence_tall") and 3/8 or 0 local fence_collision_extra = minetest.settings:get_bool("enable_fence_tall") and 3/8 or 0
function vox_main.register_fence(name, def) function vox_core.register_fence(name, def)
local fence_texture = "default_fence_overlay.png^" .. def.texture .. local fence_texture = "default_fence_overlay.png^" .. def.texture ..
"^default_fence_overlay.png^[makealpha:255,126,126" "^default_fence_overlay.png^[makealpha:255,126,126"
-- Allow almost everything to be overridden -- Allow almost everything to be overridden
@ -396,7 +396,7 @@ end
-- Fence rail registration helper -- Fence rail registration helper
-- --
function vox_main.register_fence_rail(name, def) function vox_core.register_fence_rail(name, def)
local fence_rail_texture = "default_fence_rail_overlay.png^" .. def.texture .. local fence_rail_texture = "default_fence_rail_overlay.png^" .. def.texture ..
"^default_fence_rail_overlay.png^[makealpha:255,126,126" "^default_fence_rail_overlay.png^[makealpha:255,126,126"
-- Allow almost everything to be overridden -- Allow almost everything to be overridden
@ -468,7 +468,7 @@ end
-- Mese post registration helper -- Mese post registration helper
-- --
function vox_main.register_mesepost(name, def) function vox_core.register_mesepost(name, def)
local post_texture = def.texture .. "^default_mese_post_light_side.png^[makealpha:0,0,0" local post_texture = def.texture .. "^default_mese_post_light_side.png^[makealpha:0,0,0"
local post_texture_dark = def.texture .. "^default_mese_post_light_side_dark.png^[makealpha:0,0,0" local post_texture_dark = def.texture .. "^default_mese_post_light_side_dark.png^[makealpha:0,0,0"
-- Allow almost everything to be overridden -- Allow almost everything to be overridden
@ -484,11 +484,11 @@ function vox_main.register_mesepost(name, def)
paramtype = "light", paramtype = "light",
tiles = {def.texture, def.texture, post_texture_dark, post_texture_dark, post_texture, post_texture}, tiles = {def.texture, def.texture, post_texture_dark, post_texture_dark, post_texture, post_texture},
use_texture_alpha = "opaque", use_texture_alpha = "opaque",
light_source = vox_main.LIGHT_MAX, light_source = vox_core.LIGHT_MAX,
sunlight_propagates = true, sunlight_propagates = true,
is_ground_content = false, is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = vox_main.node_sound_wood_defaults(), sounds = vox_core.node_sound_wood_defaults(),
} }
for k, v in pairs(default_fields) do for k, v in pairs(default_fields) do
if def[k] == nil then if def[k] == nil then
@ -508,8 +508,8 @@ function vox_main.register_mesepost(name, def)
minetest.register_craft({ minetest.register_craft({
output = name .. " 4", output = name .. " 4",
recipe = { recipe = {
{'', 'vox_main:glass', ''}, {'', 'vox_core:glass', ''},
{'vox_main:mese_crystal', 'vox_main:mese_crystal', 'vox_main:mese_crystal'}, {'vox_core:mese_crystal', 'vox_core:mese_crystal', 'vox_core:mese_crystal'},
{'', material, ''}, {'', material, ''},
} }
}) })
@ -521,7 +521,7 @@ end
-- Prevent decay of placed leaves -- Prevent decay of placed leaves
vox_main.after_place_leaves = function(pos, placer, itemstack, pointed_thing) vox_core.after_place_leaves = function(pos, placer, itemstack, pointed_thing)
if placer and placer:is_player() then if placer and placer:is_player() then
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
node.param2 = 1 node.param2 = 1
@ -587,7 +587,7 @@ local function leafdecay_on_timer(pos, def)
}) })
end end
function vox_main.register_leafdecay(def) function vox_core.register_leafdecay(def)
assert(def.leaves) assert(def.leaves)
assert(def.trunks) assert(def.trunks)
assert(def.radius) assert(def.radius)
@ -609,17 +609,17 @@ end
-- --
-- Convert vox_main:dirt to something that fits the environment -- Convert vox_core:dirt to something that fits the environment
-- --
minetest.register_abm({ minetest.register_abm({
label = "Grass spread", label = "Grass spread",
nodenames = {"vox_main:dirt"}, nodenames = {"vox_core:dirt"},
neighbors = { neighbors = {
"air", "air",
"group:grass", "group:grass",
"group:dry_grass", "group:dry_grass",
"vox_main:snow", "vox_core:snow",
}, },
interval = 6, interval = 6,
chance = 50, chance = 50,
@ -643,12 +643,12 @@ minetest.register_abm({
-- Else, any seeding nodes on top? -- Else, any seeding nodes on top?
local name = minetest.get_node(above).name local name = minetest.get_node(above).name
-- Snow check is cheapest, so comes first -- Snow check is cheapest, so comes first
if name == "vox_main:snow" then if name == "vox_core:snow" then
minetest.set_node(pos, {name = "vox_main:dirt_with_snow"}) minetest.set_node(pos, {name = "vox_core:dirt_with_snow"})
elseif minetest.get_item_group(name, "grass") ~= 0 then elseif minetest.get_item_group(name, "grass") ~= 0 then
minetest.set_node(pos, {name = "vox_main:dirt_with_grass"}) minetest.set_node(pos, {name = "vox_core:dirt_with_grass"})
elseif minetest.get_item_group(name, "dry_grass") ~= 0 then elseif minetest.get_item_group(name, "dry_grass") ~= 0 then
minetest.set_node(pos, {name = "vox_main:dirt_with_dry_grass"}) minetest.set_node(pos, {name = "vox_core:dirt_with_dry_grass"})
end end
end end
}) })
@ -660,7 +660,7 @@ minetest.register_abm({
minetest.register_abm({ minetest.register_abm({
label = "Grass covered", label = "Grass covered",
nodenames = {"group:spreading_dirt_type", "vox_main:dry_dirt_with_dry_grass"}, nodenames = {"group:spreading_dirt_type", "vox_core:dry_dirt_with_dry_grass"},
interval = 8, interval = 8,
chance = 50, chance = 50,
catch_up = false, catch_up = false,
@ -671,10 +671,10 @@ minetest.register_abm({
if name ~= "ignore" and nodedef and not ((nodedef.sunlight_propagates or if name ~= "ignore" and nodedef and not ((nodedef.sunlight_propagates or
nodedef.paramtype == "light") and nodedef.paramtype == "light") and
nodedef.liquidtype == "none") then nodedef.liquidtype == "none") then
if node.name == "vox_main:dry_dirt_with_dry_grass" then if node.name == "vox_core:dry_dirt_with_dry_grass" then
minetest.set_node(pos, {name = "vox_main:dry_dirt"}) minetest.set_node(pos, {name = "vox_core:dry_dirt"})
else else
minetest.set_node(pos, {name = "vox_main:dirt"}) minetest.set_node(pos, {name = "vox_core:dirt"})
end end
end end
end end
@ -686,7 +686,7 @@ minetest.register_abm({
-- --
local moss_correspondences = { local moss_correspondences = {
["vox_main:cobble"] = "vox_main:mossycobble", ["vox_core:cobble"] = "vox_core:mossycobble",
["vox_structural:slab_cobble"] = "vox_structural:slab_mossycobble", ["vox_structural:slab_cobble"] = "vox_structural:slab_mossycobble",
["vox_structural:stair_cobble"] = "vox_structural:stair_mossycobble", ["vox_structural:stair_cobble"] = "vox_structural:stair_mossycobble",
["vox_structural:stair_inner_cobble"] = "vox_structural:stair_inner_mossycobble", ["vox_structural:stair_inner_cobble"] = "vox_structural:stair_inner_mossycobble",
@ -695,7 +695,7 @@ local moss_correspondences = {
} }
minetest.register_abm({ minetest.register_abm({
label = "Moss growth", label = "Moss growth",
nodenames = {"vox_main:cobble", "vox_structural:slab_cobble", "vox_structural:stair_cobble", nodenames = {"vox_core:cobble", "vox_structural:slab_cobble", "vox_structural:stair_cobble",
"vox_structural:stair_inner_cobble", "vox_structural:stair_outer_cobble", "vox_structural:stair_inner_cobble", "vox_structural:stair_outer_cobble",
"vox_structural:cobble"}, "vox_structural:cobble"},
neighbors = {"group:water"}, neighbors = {"group:water"},
@ -714,7 +714,7 @@ minetest.register_abm({
-- Register a craft to copy the metadata of items -- Register a craft to copy the metadata of items
-- --
function vox_main.register_craft_metadata_copy(ingredient, result) function vox_core.register_craft_metadata_copy(ingredient, result)
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = result, output = result,
@ -755,7 +755,7 @@ local is_pos = function(v)
type(v.x) == "number" and type(v.y) == "number" and type(v.z) == "number" type(v.x) == "number" and type(v.y) == "number" and type(v.z) == "number"
end end
function vox_main.log_player_action(player, ...) function vox_core.log_player_action(player, ...)
local msg = player:get_player_name() local msg = player:get_player_name()
if player.is_fake_player or not player:is_player() then if player.is_fake_player or not player:is_player() then
if not log_non_player_actions then if not log_non_player_actions then
@ -774,21 +774,21 @@ function vox_main.log_player_action(player, ...)
end end
local nop = function() end local nop = function() end
function vox_main.set_inventory_action_loggers(def, name) function vox_core.set_inventory_action_loggers(def, name)
local on_move = def.on_metadata_inventory_move or nop local on_move = def.on_metadata_inventory_move or nop
def.on_metadata_inventory_move = function(pos, from_list, from_index, def.on_metadata_inventory_move = function(pos, from_list, from_index,
to_list, to_index, count, player) to_list, to_index, count, player)
vox_main.log_player_action(player, "moves stuff in", name, "at", pos) vox_core.log_player_action(player, "moves stuff in", name, "at", pos)
return on_move(pos, from_list, from_index, to_list, to_index, count, player) return on_move(pos, from_list, from_index, to_list, to_index, count, player)
end end
local on_put = def.on_metadata_inventory_put or nop local on_put = def.on_metadata_inventory_put or nop
def.on_metadata_inventory_put = function(pos, listname, index, stack, player) def.on_metadata_inventory_put = function(pos, listname, index, stack, player)
vox_main.log_player_action(player, "moves", stack:get_name(), stack:get_count(), "to", name, "at", pos) vox_core.log_player_action(player, "moves", stack:get_name(), stack:get_count(), "to", name, "at", pos)
return on_put(pos, listname, index, stack, player) return on_put(pos, listname, index, stack, player)
end end
local on_take = def.on_metadata_inventory_take or nop local on_take = def.on_metadata_inventory_take or nop
def.on_metadata_inventory_take = function(pos, listname, index, stack, player) def.on_metadata_inventory_take = function(pos, listname, index, stack, player)
vox_main.log_player_action(player, "takes", stack:get_name(), stack:get_count(), "from", name, "at", pos) vox_core.log_player_action(player, "takes", stack:get_name(), stack:get_count(), "from", name, "at", pos)
return on_take(pos, listname, index, stack, player) return on_take(pos, listname, index, stack, player)
end end
end end
@ -798,7 +798,7 @@ end
-- This method may change in future. -- This method may change in future.
-- --
function vox_main.can_interact_with_node(player, pos) function vox_core.can_interact_with_node(player, pos)
if player and player:is_player() then if player and player:is_player() then
if minetest.check_player_privs(player, "protection_bypass") then if minetest.check_player_privs(player, "protection_bypass") then
return true return true

View file

@ -0,0 +1,232 @@
-- Gems: Diamond, Emerald, Ruby, Sapphire, Topaz, Amethyst, Opal, Onyx, Garnet, Peridot, Aquamarine, Citrine, Tourmaline, Zircon, Tanzanite, Spinel, Lapis Lazuli, Malachite, Azurite, Turquoise, Amber, Moonstone, Sunstone, Bloodstone, Agate, Jasper, Chalcedony, Chrysoprase, Carnelian, Sardonyx, Heliotrope, Alexandrite, Tiger's Eye, Serpentine, Rhodonite
core.register_node("vox_core:diamond_ore", {
description = "Diamond Ore",
tiles = {"vox_diamond_ore.png"},
groups = {cracky = 2}
})
core.register_alias("diamond_ore", "vox_core:diamond_ore")
core.register_alias("default:stone_with_diamond", "vox_core:diamond_ore")
core.register_node("vox_core:emerald_ore", {
description = "Emerald Ore",
tiles = {"vox_emerald_ore.png"},
groups = {cracky = 2}
})
core.register_alias("emerald_ore", "vox_core:emerald_ore")
core.register_alias("default:stone_with_emerald", "vox_core:emerald_ore")
core.register_node("vox_core:ruby_ore", {
description = "Ruby Ore",
tiles = {"vox_ruby_ore.png"},
groups = {cracky = 2}
})
core.register_alias("ruby_ore", "vox_core:ruby_ore")
core.register_alias("default:stone_with_ruby", "vox_core:ruby_ore")
core.register_node("vox_core:sapphire_ore", {
description = "Sapphire Ore",
tiles = {"vox_sapphire_ore.png"},
groups = {cracky = 2}
})
core.register_alias("sapphire_ore", "vox_core:sapphire_ore")
core.register_alias("default:stone_with_sapphire", "vox_core:sapphire_ore")
core.register_node("vox_core:topaz_ore", {
description = "Topaz Ore",
tiles = {"vox_topaz_ore.png"},
groups = {cracky = 2}
})
core.register_alias("topaz_ore", "vox_core:topaz_ore")
core.register_alias("default:stone_with_topaz", "vox_core:topaz_ore")
core.register_node("vox_core:amethyst_ore", {
description = "Amethyst Ore",
tiles = {"vox_amethyst_ore.png"},
groups = {cracky = 2}
})
core.register_alias("amethyst_ore", "vox_core:amethyst_ore")
core.register_alias("default:stone_with_amethyst", "vox_core:amethyst_ore")
core.register_node("vox_core:opal_ore", {
description = "Opal Ore",
tiles = {"vox_opal_ore.png"},
groups = {cracky = 2}
})
core.register_alias("opal_ore", "vox_core:opal_ore")
core.register_alias("default:stone_with_opal", "vox_core:opal_ore")
core.register_node("vox_core:onyx_ore", {
description = "Onyx Ore",
tiles = {"vox_onyx_ore.png"},
groups = {cracky = 2}
})
core.register_alias("onyx_ore", "vox_core:onyx_ore")
core.register_alias("default:stone_with_onyx", "vox_core:onyx_ore")
core.register_node("vox_core:garnet_ore", {
description = "Garnet Ore",
tiles = {"vox_garnet_ore.png"},
groups = {cracky = 2}
})
core.register_alias("garnet_ore", "vox_core:garnet_ore")
core.register_alias("default:stone_with_garnet", "vox_core:garnet_ore")
core.register_node("vox_core:peridot_ore", {
description = "Peridot Ore",
tiles = {"vox_peridot_ore.png"},
groups = {cracky = 2}
})
core.register_alias("peridot_ore", "vox_core:peridot_ore")
core.register_alias("default:stone_with_peridot", "vox_core:peridot_ore")
core.register_node("vox_core:aquamarine_ore", {
description = "Aquamarine Ore",
tiles = {"vox_aquamarine_ore.png"},
groups = {cracky = 2}
})
core.register_alias("aquamarine_ore", "vox_core:aquamarine_ore")
core.register_alias("default:stone_with_aquamarine", "vox_core:aquamarine_ore")
core.register_node("vox_core:citrine_ore", {
description = "Citrine Ore",
tiles = {"vox_citrine_ore.png"},
groups = {cracky = 2}
})
core.register_alias("citrine_ore", "vox_core:citrine_ore")
core.register_alias("default:stone_with_citrine", "vox_core:citrine_ore")
core.register_node("vox_core:tourmaline_ore", {
description = "Tourmaline Ore",
tiles = {"vox_tourmaline_ore.png"},
groups = {cracky = 2}
})
core.register_alias("tourmaline_ore", "vox_core:tourmaline_ore")
core.register_alias("default:stone_with_tourmaline", "vox_core:tourmaline_ore")
core.register_node("vox_core:zircon_ore", {
description = "Zircon Ore",
tiles = {"vox_zircon_ore.png"},
groups = {cracky = 2}
})
core.register_alias("zircon_ore", "vox_core:zircon_ore")
core.register_alias("default:stone_with_zircon", "vox_core:zircon_ore")
core.register_node("vox_core:tanzanite_ore", {
description = "Tanzanite Ore",
tiles = {"vox_tanzanite_ore.png"},
groups = {cracky = 2}
})
core.register_alias("tanzanite_ore", "vox_core:tanzanite_ore")
core.register_alias("default:stone_with_tanzanite", "vox_core:tanzanite_ore")
core.register_node("vox_core:spinel_ore", {
description = "Spinel Ore",
tiles = {"vox_spinel_ore.png"},
groups = {cracky = 2}
})
core.register_alias("spinel_ore", "vox_core:spinel_ore")
core.register_alias("default:stone_with_spinel", "vox_core:spinel_ore")
core.register_node("vox_core:lapis_lazuli_ore", {
description = "Lapis Lazuli Ore",
tiles = {"vox_lapis_lazuli_ore.png"},
groups = {cracky = 2}
})
core.register_alias("lapis_lazuli_ore", "vox_core:lapis_lazuli_ore")
core.register_alias("default:stone_with_lapis_lazuli", "vox_core:lapis_lazuli_ore")
core.register_node("vox_core:malachite_ore", {
description = "Malachite Ore",
tiles = {"vox_malachite_ore.png"},
groups = {cracky = 2}
})
core.register_alias("malachite_ore", "vox_core:malachite_ore")
core.register_alias("default:stone_with_malachite", "vox_core:malachite_ore")
core.register_node("vox_core:azurite_ore", {
description = "Azurite Ore",
tiles = {"vox_azurite_ore.png"},
groups = {cracky = 2}
})
core.register_alias("azurite_ore", "vox_core:azurite_ore")
core.register_alias("default:stone_with_azurite", "vox_core:azurite_ore")
core.register_node("vox_core:turquoise_ore", {
description = "Turquoise Ore",
tiles = {"vox_turquoise_ore.png"},
groups = {cracky = 2}
})
core.register_alias("turquoise_ore", "vox_core:turquoise_ore")
core.register_alias("default:stone_with_turquoise", "vox_core:turquoise_ore")
core.register_node("vox_core:amber_ore", {
description = "Amber Ore",
tiles = {"vox_amber_ore.png"},
groups = {cracky = 2}
})
core.register_alias("amber_ore", "vox_core:amber_ore")
core.register_alias("default:stone_with_amber", "vox_core:amber_ore")
core.register_node("vox_core:moonstone_ore", {
description = "Moonstone Ore",
tiles = {"vox_moonstone_ore.png"},
groups = {cracky = 2}
})
core.register_alias("moonstone_ore", "vox_core:moonstone_ore")
core.register_alias("default:stone_with_moonstone", "vox_core:moonstone_ore")
core.register_node("vox_core:sunstone_ore", {
description = "Sunstone Ore",
tiles = {"vox_sunstone_ore.png"},
groups = {cracky = 2}
})
core.register_alias("sunstone_ore", "vox_core:sunstone_ore")
core.register_alias("default:stone_with_sunstone", "vox_core:sunstone_ore")
core.register_node("vox_core:bloodstone_ore", {
description = "Bloodstone Ore",
tiles = {"vox_bloodstone_ore.png"},
groups = {cracky = 2}
})
core.register_alias("bloodstone_ore", "vox_core:bloodstone_ore")
core.register_alias("default:stone_with_bloodstone", "vox_core:bloodstone_ore")
core.register_node("vox_core:agate_ore", {
description = "Agate Ore",
tiles = {"vox_agate_ore.png"},
groups = {cracky = 2}
})
core.register_alias("agate_ore", "vox_core:agate_ore")
core.register_alias("default:stone_with_agate", "vox_core:agate_ore")
core.register_node("vox_core:jasper_ore", {
description = "Jasper Ore",
tiles = {"vox_jasper_ore.png"},
groups = {cracky = 2}
})
core.register_alias("jasper_ore", "vox_core:jasper_ore")
core.register_alias("default:stone_with_jasper", "vox_core:jasper_ore")
core.register_node("vox_core:chalcedony_ore", {
description = "Chalcedony Ore",
tiles = {"vox_chalcedony_ore.png"},
groups = {cracky = 2}
})
core.register_alias("chalcedony_ore", "vox_core:chalcedony_ore")
core.register_alias("default:stone_with_chalcedony", "vox_core:chalcedony_ore")
core.register_node("vox_core:chrysoprase_ore", {
description = "Chrysoprase Ore",
tiles = {"vox_chrysoprase_ore.png"},
groups = {cracky = 2}
})
core.register_alias("chrysoprase_ore", "vox_core:chrysoprase_ore")
core.register_alias("default:stone_with_chrysoprase", "vox_core:chrysoprase_ore")
core.register_node("vox_core:carnelian_ore", {
description = "Carnelian Ore",
tiles = {"vox_carnelian_ore.png"},
groups = {cracky = 2}
})
core.register_alias("carnelian_ore", "vox_core:carnelian_ore")
core.register_alias("default:stone_with_carnelian", "vox_core:carnelian_ore")

View file

@ -11,45 +11,45 @@
-- with this program; if not, see <http://www.gnu.org/licenses/>. -- with this program; if not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
vox_main = {} vox_core = {}
-- Load from minerals.lua -- Load from minerals.lua
dofile(core.get_modpath("vox_main").."/minerals.lua") dofile(core.get_modpath("vox_core").."/minerals.lua")
-- Load from ores.lua -- Load from ores.lua
dofile(core.get_modpath("vox_main").."/ores.lua") dofile(core.get_modpath("vox_core").."/ores.lua")
-- Load from gems.lua -- Load from gems.lua
dofile(core.get_modpath("vox_main").."/gems.lua") dofile(core.get_modpath("vox_core").."/gems.lua")
-- Load from liquids.lua -- Load from liquids.lua
dofile(core.get_modpath("vox_main").."/liquids.lua") dofile(core.get_modpath("vox_core").."/liquids.lua")
-- Load from trees.lua -- Load from trees.lua
dofile(core.get_modpath("vox_main").."/trees.lua") dofile(core.get_modpath("vox_core").."/trees.lua")
-- Load from plants.lua -- Load from plants.lua
dofile(core.get_modpath("vox_main").."/plants.lua") dofile(core.get_modpath("vox_core").."/plants.lua")
-- Load from ocean.lua -- Load from ocean.lua
dofile(core.get_modpath("vox_main").."/ocean.lua") dofile(core.get_modpath("vox_core").."/ocean.lua")
-- Load from sky_island.lua -- Load from sky_island.lua
dofile(core.get_modpath("vox_main").."/sky_island.lua") dofile(core.get_modpath("vox_core").."/sky_island.lua")
-- Load from mobdrops.lua -- Load from mobdrops.lua
dofile(minetest.get_modpath("vox_main").."/mobdrops.lua") dofile(minetest.get_modpath("vox_core").."/mobdrops.lua")
-- Load from mats.lua -- Load from mats.lua
dofile(minetest.get_modpath("vox_main").."/mats.lua") dofile(minetest.get_modpath("vox_core").."/mats.lua")
-- Load from functions.lua -- Load from functions.lua
-- This is copy/paste from 'default' mod and we're using it temporarily(?) -- This is copy/paste from 'default' mod and we're using it temporarily(?)
--dofile(minetest.get_modpath("vox_main").."/functions.lua") --dofile(minetest.get_modpath("vox_core").."/functions.lua")
-- Glowing Moss -- Glowing Moss
core.register_node("vox_main:glowing_moss", { core.register_node("vox_core:glowing_moss", {
description = "Glowing Moss", description = "Glowing Moss",
tiles = {"vox_glowing_moss.png"}, tiles = {"vox_glowing_moss.png"},
light_source = 8, light_source = 8,
groups = {crumbly = 1} groups = {crumbly = 1}
}) })
core.register_alias("glowing_moss", "vox_main:glowing_moss") core.register_alias("glowing_moss", "vox_core:glowing_moss")
-- ---------------------------- Dyeable Nodes -------------------------- -- -- ---------------------------- Dyeable Nodes -------------------------- --

View file

@ -2,7 +2,7 @@
-- Liquids -- -- Liquids --
-- -------------------------------------------------------------------------- -- -- -------------------------------------------------------------------------- --
-- Water -- Water
minetest.register_node("vox_main:water_source", { minetest.register_node("vox_core:water_source", {
description = ("Water Source"), description = ("Water Source"),
drawtype = "liquid", drawtype = "liquid",
waving = 3, waving = 3,
@ -38,15 +38,15 @@ minetest.register_node("vox_main:water_source", {
drop = "", drop = "",
drowning = 1, drowning = 1,
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:water_flowing", liquid_alternative_flowing = "vox_core:water_flowing",
liquid_alternative_source = "vox_main:water_source", liquid_alternative_source = "vox_core:water_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90}, post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, cools_lava = 1}, groups = {water = 3, liquid = 3, cools_lava = 1},
}) })
-- Flowing Water -- Flowing Water
minetest.register_node("vox_main:water_flowing", { minetest.register_node("vox_core:water_flowing", {
description = ("Flowing Water"), description = ("Flowing Water"),
drawtype = "flowingliquid", drawtype = "flowingliquid",
waving = 3, waving = 3,
@ -84,15 +84,15 @@ minetest.register_node("vox_main:water_flowing", {
drop = "", drop = "",
drowning = 1, drowning = 1,
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:water_flowing", liquid_alternative_flowing = "vox_core:water_flowing",
liquid_alternative_source = "vox_main:water_source", liquid_alternative_source = "vox_core:water_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90}, post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, not_in_creative_inventory = 1, cools_lava = 1}, groups = {water = 3, liquid = 3, not_in_creative_inventory = 1, cools_lava = 1},
}) })
-- River Water -- River Water
core.register_node("vox_main:river_water_source", { core.register_node("vox_core:river_water_source", {
description = "River Water Source", description = "River Water Source",
drawtype = "liquid", drawtype = "liquid",
tiles = { tiles = {
@ -126,15 +126,15 @@ core.register_node("vox_main:river_water_source", {
drop = "", drop = "",
drowning = 1, drowning = 1,
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:river_water_flowing", liquid_alternative_flowing = "vox_core:river_water_flowing",
liquid_alternative_source = "vox_main:river_water_source", liquid_alternative_source = "vox_core:river_water_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90}, post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1} groups = {water = 3, liquid = 3, puts_out_fire = 1}
}) })
-- Flowing River Water -- Flowing River Water
core.register_node("vox_main:river_water_flowing", { core.register_node("vox_core:river_water_flowing", {
description = "Flowing River Water", description = "Flowing River Water",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_river_water_flowing_animated.png"}, tiles = {"default_river_water_flowing_animated.png"},
@ -160,15 +160,15 @@ core.register_node("vox_main:river_water_flowing", {
drop = "", drop = "",
drowning = 1, drowning = 1,
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:river_water_flowing", liquid_alternative_flowing = "vox_core:river_water_flowing",
liquid_alternative_source = "vox_main:river_water_source", liquid_alternative_source = "vox_core:river_water_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90}, post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1} groups = {water = 3, liquid = 3, puts_out_fire = 1}
}) })
-- Lava -- Lava
core.register_node("vox_main:lava_source", { core.register_node("vox_core:lava_source", {
description = "Lava Source", description = "Lava Source",
drawtype = "liquid", drawtype = "liquid",
tiles = { tiles = {
@ -201,15 +201,15 @@ core.register_node("vox_main:lava_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:lava_flowing", liquid_alternative_flowing = "vox_core:lava_flowing",
liquid_alternative_source = "vox_main:lava_source", liquid_alternative_source = "vox_core:lava_source",
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 240, r = 255, g = 64, b = 0}, post_effect_color = {a = 240, r = 255, g = 64, b = 0},
groups = {lava = 3, liquid = 3, hot = 3, igniter = 1} groups = {lava = 3, liquid = 3, hot = 3, igniter = 1}
}) })
-- Flowing Lava -- Flowing Lava
core.register_node("vox_main:lava_flowing", { core.register_node("vox_core:lava_flowing", {
description = "Flowing Lava", description = "Flowing Lava",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_lava_flowing_animated.png"}, tiles = {"default_lava_flowing_animated.png"},
@ -234,15 +234,15 @@ core.register_node("vox_main:lava_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:lava_flowing", liquid_alternative_flowing = "vox_core:lava_flowing",
liquid_alternative_source = "vox_main:lava_source", liquid_alternative_source = "vox_core:lava_source",
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 240, r = 255, g = 64, b = 0}, post_effect_color = {a = 240, r = 255, g = 64, b = 0},
groups = {lava = 3, liquid = 3, hot = 3, igniter = 1} groups = {lava = 3, liquid = 3, hot = 3, igniter = 1}
}) })
-- Oil -- Oil
core.register_node("vox_main:oil_source", { core.register_node("vox_core:oil_source", {
description = "Oil Source", description = "Oil Source",
drawtype = "liquid", drawtype = "liquid",
tiles = { tiles = {
@ -275,15 +275,15 @@ core.register_node("vox_main:oil_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:oil_flowing", liquid_alternative_flowing = "vox_core:oil_flowing",
liquid_alternative_source = "vox_main:oil_source", liquid_alternative_source = "vox_core:oil_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 0, b = 0}, post_effect_color = {a = 240, r = 0, g = 0, b = 0},
groups = {oil = 3, liquid = 3, igniter = 1} groups = {oil = 3, liquid = 3, igniter = 1}
}) })
-- Flowing Oil -- Flowing Oil
core.register_node("vox_main:oil_flowing", { core.register_node("vox_core:oil_flowing", {
description = "Flowing Oil", description = "Flowing Oil",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water_flowing_animated.png^[colorize:black:200"}, tiles = {"default_water_flowing_animated.png^[colorize:black:200"},
@ -308,15 +308,15 @@ core.register_node("vox_main:oil_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:oil_flowing", liquid_alternative_flowing = "vox_core:oil_flowing",
liquid_alternative_source = "vox_main:oil_source", liquid_alternative_source = "vox_core:oil_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 0, b = 0}, post_effect_color = {a = 240, r = 0, g = 0, b = 0},
groups = {oil = 3, liquid = 3, igniter = 1} groups = {oil = 3, liquid = 3, igniter = 1}
}) })
-- Acid -- Acid
core.register_node("vox_main:acid_source", { core.register_node("vox_core:acid_source", {
description = "Acid Source", description = "Acid Source",
drawtype = "liquid", drawtype = "liquid",
tiles = { tiles = {
@ -349,15 +349,15 @@ core.register_node("vox_main:acid_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:acid_flowing", liquid_alternative_flowing = "vox_core:acid_flowing",
liquid_alternative_source = "vox_main:acid_source", liquid_alternative_source = "vox_core:acid_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {acid = 3, liquid = 3, igniter = 1} groups = {acid = 3, liquid = 3, igniter = 1}
}) })
-- Flowing Acid -- Flowing Acid
core.register_node("vox_main:acid_flowing", { core.register_node("vox_core:acid_flowing", {
description = "Flowing Acid", description = "Flowing Acid",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water_flowing_animated.png^[colorize:green:200"}, tiles = {"default_water_flowing_animated.png^[colorize:green:200"},
@ -382,15 +382,15 @@ core.register_node("vox_main:acid_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:acid_flowing", liquid_alternative_flowing = "vox_core:acid_flowing",
liquid_alternative_source = "vox_main:acid_source", liquid_alternative_source = "vox_core:acid_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {acid = 3, liquid = 3, igniter = 1} groups = {acid = 3, liquid = 3, igniter = 1}
}) })
-- Slime -- Slime
core.register_node("vox_main:slime_source", { core.register_node("vox_core:slime_source", {
description = "Slime Source", description = "Slime Source",
drawtype = "liquid", drawtype = "liquid",
tiles = { tiles = {
@ -423,15 +423,15 @@ core.register_node("vox_main:slime_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:slime_flowing", liquid_alternative_flowing = "vox_core:slime_flowing",
liquid_alternative_source = "vox_main:slime_source", liquid_alternative_source = "vox_core:slime_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {slime = 3, liquid = 3, igniter = 1} groups = {slime = 3, liquid = 3, igniter = 1}
}) })
-- Flowing Slime -- Flowing Slime
core.register_node("vox_main:slime_flowing", { core.register_node("vox_core:slime_flowing", {
description = "Flowing Slime", description = "Flowing Slime",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water_flowing_animated.png^[colorize:lime:200"}, tiles = {"default_water_flowing_animated.png^[colorize:lime:200"},
@ -456,15 +456,15 @@ core.register_node("vox_main:slime_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:slime_flowing", liquid_alternative_flowing = "vox_core:slime_flowing",
liquid_alternative_source = "vox_main:slime_source", liquid_alternative_source = "vox_core:slime_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {slime = 3, liquid = 3, igniter = 1} groups = {slime = 3, liquid = 3, igniter = 1}
}) })
-- Sewage -- Sewage
core.register_node("vox_main:sewage_source", { core.register_node("vox_core:sewage_source", {
description = "Sewage Source", description = "Sewage Source",
drawtype = "liquid", drawtype = "liquid",
tiles = { tiles = {
@ -497,15 +497,15 @@ core.register_node("vox_main:sewage_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:sewage_flowing", liquid_alternative_flowing = "vox_core:sewage_flowing",
liquid_alternative_source = "vox_main:sewage_source", liquid_alternative_source = "vox_core:sewage_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {sewage = 3, liquid = 3, igniter = 1} groups = {sewage = 3, liquid = 3, igniter = 1}
}) })
-- Flowing Sewage -- Flowing Sewage
core.register_node("vox_main:sewage_flowing", { core.register_node("vox_core:sewage_flowing", {
description = "Flowing Sewage", description = "Flowing Sewage",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water_flowing_animated.png^[colorize:#4B5320:150"}, tiles = {"default_water_flowing_animated.png^[colorize:#4B5320:150"},
@ -530,15 +530,15 @@ core.register_node("vox_main:sewage_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:sewage_flowing", liquid_alternative_flowing = "vox_core:sewage_flowing",
liquid_alternative_source = "vox_main:sewage_source", liquid_alternative_source = "vox_core:sewage_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {sewage = 3, liquid = 3, igniter = 1} groups = {sewage = 3, liquid = 3, igniter = 1}
}) })
-- Tar -- Tar
core.register_node("vox_main:tar_source", { core.register_node("vox_core:tar_source", {
description = "Tar Source", description = "Tar Source",
drawtype = "liquid", drawtype = "liquid",
tiles = {"default_water_source_animated.png^[colorize:#2F4F4F:200"}, tiles = {"default_water_source_animated.png^[colorize:#2F4F4F:200"},
@ -561,15 +561,15 @@ core.register_node("vox_main:tar_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:tar_flowing", liquid_alternative_flowing = "vox_core:tar_flowing",
liquid_alternative_source = "vox_main:tar_source", liquid_alternative_source = "vox_core:tar_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 0, b = 0}, post_effect_color = {a = 240, r = 0, g = 0, b = 0},
groups = {tar = 3, liquid = 3, igniter = 1} groups = {tar = 3, liquid = 3, igniter = 1}
}) })
-- Flowing Tar -- Flowing Tar
core.register_node("vox_main:tar_flowing", { core.register_node("vox_core:tar_flowing", {
description = "Flowing Tar", description = "Flowing Tar",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water_flowing_animated.png^[colorize:#2F4F4F:200"}, tiles = {"default_water_flowing_animated.png^[colorize:#2F4F4F:200"},
@ -594,15 +594,15 @@ core.register_node("vox_main:tar_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:tar_flowing", liquid_alternative_flowing = "vox_core:tar_flowing",
liquid_alternative_source = "vox_main:tar_source", liquid_alternative_source = "vox_core:tar_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 0, b = 0}, post_effect_color = {a = 240, r = 0, g = 0, b = 0},
groups = {tar = 3, liquid = 3, igniter = 1} groups = {tar = 3, liquid = 3, igniter = 1}
}) })
-- Oil -- Oil
core.register_node("vox_main:oil_source", { core.register_node("vox_core:oil_source", {
description = "Oil Source", description = "Oil Source",
drawtype = "liquid", drawtype = "liquid",
tiles = {"default_water_source_animated.png^[colorize:#000000:200"}, tiles = {"default_water_source_animated.png^[colorize:#000000:200"},
@ -625,15 +625,15 @@ core.register_node("vox_main:oil_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:oil_flowing", liquid_alternative_flowing = "vox_core:oil_flowing",
liquid_alternative_source = "vox_main:oil_source", liquid_alternative_source = "vox_core:oil_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 0, b = 0}, post_effect_color = {a = 240, r = 0, g = 0, b = 0},
groups = {oil = 3, liquid = 3, igniter = 1} groups = {oil = 3, liquid = 3, igniter = 1}
}) })
-- Flowing Oil -- Flowing Oil
core.register_node("vox_main:oil_flowing", { core.register_node("vox_core:oil_flowing", {
description = "Flowing Oil", description = "Flowing Oil",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water_flowing_animated.png^[colorize:#000000:200"}, tiles = {"default_water_flowing_animated.png^[colorize:#000000:200"},
@ -658,15 +658,15 @@ core.register_node("vox_main:oil_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:oil_flowing", liquid_alternative_flowing = "vox_core:oil_flowing",
liquid_alternative_source = "vox_main:oil_source", liquid_alternative_source = "vox_core:oil_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 0, b = 0}, post_effect_color = {a = 240, r = 0, g = 0, b = 0},
groups = {oil = 3, liquid = 3, igniter = 1} groups = {oil = 3, liquid = 3, igniter = 1}
}) })
-- Acid -- Acid
core.register_node("vox_main:acid_source", { core.register_node("vox_core:acid_source", {
description = "Acid Source", description = "Acid Source",
drawtype = "liquid", drawtype = "liquid",
tiles = {"default_water_source_animated.png^[colorize:#00FF00:150"}, tiles = {"default_water_source_animated.png^[colorize:#00FF00:150"},
@ -689,15 +689,15 @@ core.register_node("vox_main:acid_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:acid_flowing", liquid_alternative_flowing = "vox_core:acid_flowing",
liquid_alternative_source = "vox_main:acid_source", liquid_alternative_source = "vox_core:acid_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {acid = 3, liquid = 3, igniter = 1} groups = {acid = 3, liquid = 3, igniter = 1}
}) })
-- Flowing Acid -- Flowing Acid
core.register_node("vox_main:acid_flowing", { core.register_node("vox_core:acid_flowing", {
description = "Flowing Acid", description = "Flowing Acid",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water_flowing_animated.png^[colorize:#00FF00:150"}, tiles = {"default_water_flowing_animated.png^[colorize:#00FF00:150"},
@ -722,15 +722,15 @@ core.register_node("vox_main:acid_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:acid_flowing", liquid_alternative_flowing = "vox_core:acid_flowing",
liquid_alternative_source = "vox_main:acid_source", liquid_alternative_source = "vox_core:acid_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {acid = 3, liquid = 3, igniter = 1} groups = {acid = 3, liquid = 3, igniter = 1}
}) })
-- Slime -- Slime
core.register_node("vox_main:slime_source", { core.register_node("vox_core:slime_source", {
description = "Slime Source", description = "Slime Source",
drawtype = "liquid", drawtype = "liquid",
tiles = {"default_water_source_animated.png^[colorize:#00FF00:100"}, tiles = {"default_water_source_animated.png^[colorize:#00FF00:100"},
@ -753,15 +753,15 @@ core.register_node("vox_main:slime_source", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "vox_main:slime_flowing", liquid_alternative_flowing = "vox_core:slime_flowing",
liquid_alternative_source = "vox_main:slime_source", liquid_alternative_source = "vox_core:slime_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {slime = 3, liquid = 3, igniter = 1} groups = {slime = 3, liquid = 3, igniter = 1}
}) })
-- Flowing Slime -- Flowing Slime
core.register_node("vox_main:slime_flowing", { core.register_node("vox_core:slime_flowing", {
description = "Flowing Slime", description = "Flowing Slime",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water_flowing_animated.png^[colorize:#00FF00:100"}, tiles = {"default_water_flowing_animated.png^[colorize:#00FF00:100"},
@ -786,8 +786,8 @@ core.register_node("vox_main:slime_flowing", {
buildable_to = true, buildable_to = true,
drop = "", drop = "",
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "vox_main:slime_flowing", liquid_alternative_flowing = "vox_core:slime_flowing",
liquid_alternative_source = "vox_main:slime_source", liquid_alternative_source = "vox_core:slime_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 240, r = 0, g = 255, b = 0}, post_effect_color = {a = 240, r = 0, g = 255, b = 0},
groups = {slime = 3, liquid = 3, igniter = 1} groups = {slime = 3, liquid = 3, igniter = 1}

View file

@ -1,37 +1,37 @@
-- Ash -- Ash
minetest.register_craftitem("vox_main:ash", { minetest.register_craftitem("vox_core:ash", {
description = "Ash", description = "Ash",
inventory_image = "ash.png", inventory_image = "ash.png",
groups = {crumbly = 3}, groups = {crumbly = 3},
}) })
-- Salt -- Salt
minetest.register_craftitem("vox_main:salt", { minetest.register_craftitem("vox_core:salt", {
description = "Salt", description = "Salt",
inventory_image = "salt.png", inventory_image = "salt.png",
}) })
-- Lye -- Lye
minetest.register_craftitem("vox_main:lye", { minetest.register_craftitem("vox_core:lye", {
description = "Lye", description = "Lye",
inventory_image = "lye.png", inventory_image = "lye.png",
}) })
minetest.register_craft({ minetest.register_craft({
output = "vox_main:lye", output = "vox_core:lye",
recipe = { recipe = {
{"vox_main:ash", "bucket:water_bucket"}, {"vox_core:ash", "bucket:water_bucket"},
}, },
replacements = {{"bucket:water_bucket", "bucket:bucket"}}, replacements = {{"bucket:water_bucket", "bucket:bucket"}},
}) })
-- Soap -- Soap
minetest.register_craftitem("vox_main:soap", { minetest.register_craftitem("vox_core:soap", {
description = "Soap", description = "Soap",
inventory_image = "soap.png", inventory_image = "soap.png",
}) })
minetest.register_craft({ minetest.register_craft({
output = "vox_main:soap", output = "vox_core:soap",
recipe = { recipe = {
{"vox_mobdrops:fat", "vox_main:lye", "vox_main:salt"}, {"vox_mobdrops:fat", "vox_core:lye", "vox_core:salt"},
}, },
}) })

View file

@ -63,75 +63,75 @@ default:cave_ice
]] -- ]] --
-- Bedrock -- Bedrock
core.register_node("vox_main:bedrock", { core.register_node("vox_core:bedrock", {
description = "Bedrock", description = "Bedrock",
tiles = {"default_bedrock.png"}, tiles = {"default_bedrock.png"},
groups = {cracky = 1} groups = {cracky = 1}
}) })
core.register_alias("bedrock", "vox_main:bedrock") core.register_alias("bedrock", "vox_core:bedrock")
core.register_alias("default:bedrock", "vox_main:bedrock") core.register_alias("default:bedrock", "vox_core:bedrock")
-- Dirt -- Dirt
core.register_node("vox_main:dirt", { core.register_node("vox_core:dirt", {
description = "Dirt", description = "Dirt",
tiles = {"vox_dirt.png"}, tiles = {"vox_dirt.png"},
groups = {crumbly = 3, soil = 1}, groups = {crumbly = 3, soil = 1},
--sounds = node_sound_dirt_defaults(), --sounds = node_sound_dirt_defaults(),
}) })
core.register_alias("dirt", "vox_main:dirt") core.register_alias("dirt", "vox_core:dirt")
core.register_alias("default:dirt", "vox_main:dirt") core.register_alias("default:dirt", "vox_core:dirt")
-- Dirt with Grass -- Dirt with Grass
core.register_node("vox_main:dirt_with_grass", { core.register_node("vox_core:dirt_with_grass", {
description = "Dirt with Grass", description = "Dirt with Grass",
tiles = {"default_grass.png", "vox_dirt.png", tiles = {"default_grass.png", "vox_dirt.png",
{name = "vox_dirt.png^default_grass_side.png", {name = "vox_dirt.png^default_grass_side.png",
tileable_vertical = false}}, tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1}, groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = "vox_main:dirt", drop = "vox_core:dirt",
--sounds = vox_main.node_sound_dirt_defaults({ --sounds = vox_core.node_sound_dirt_defaults({
-- footstep = {name = "default_grass_footstep", gain = 0.25}, -- footstep = {name = "default_grass_footstep", gain = 0.25},
--}), --}),
}) })
core.register_node("vox_main:dirt_with_grass_footsteps", { core.register_node("vox_core:dirt_with_grass_footsteps", {
description = "Dirt with Grass and Footsteps", description = "Dirt with Grass and Footsteps",
tiles = {"default_grass.png^default_footprint.png", "vox_dirt.png", tiles = {"default_grass.png^default_footprint.png", "vox_dirt.png",
{name = "vox_dirt.png^default_grass_side.png", {name = "vox_dirt.png^default_grass_side.png",
tileable_vertical = false}}, tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, not_in_creative_inventory = 1}, groups = {crumbly = 3, soil = 1, not_in_creative_inventory = 1},
drop = "vox_main:dirt", drop = "vox_core:dirt",
--sounds = vox_main.node_sound_dirt_defaults({ --sounds = vox_core.node_sound_dirt_defaults({
-- footstep = {name = "default_grass_footstep", gain = 0.25}, -- footstep = {name = "default_grass_footstep", gain = 0.25},
--}), --}),
}) })
core.register_node("vox_main:dirt_with_dry_grass", { core.register_node("vox_core:dirt_with_dry_grass", {
description = "Dirt with Savanna Grass", description = "Dirt with Savanna Grass",
tiles = {"default_dry_grass.png", tiles = {"default_dry_grass.png",
"vox_dirt.png", "vox_dirt.png",
{name = "vox_dirt.png^default_dry_grass_side.png", {name = "vox_dirt.png^default_dry_grass_side.png",
tileable_vertical = false}}, tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1}, groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = "vox_main:dirt", drop = "vox_core:dirt",
--sounds = vox_main.node_sound_dirt_defaults({ --sounds = vox_core.node_sound_dirt_defaults({
-- footstep = {name = "default_grass_footstep", gain = 0.4}, -- footstep = {name = "default_grass_footstep", gain = 0.4},
--}), --}),
}) })
core.register_node("vox_main:dirt_with_snow", { core.register_node("vox_core:dirt_with_snow", {
description = "Dirt with Snow", description = "Dirt with Snow",
tiles = {"default_snow.png", "vox_dirt.png", tiles = {"default_snow.png", "vox_dirt.png",
{name = "vox_dirt.png^default_snow_side.png", {name = "vox_dirt.png^default_snow_side.png",
tileable_vertical = false}}, tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1, snowy = 1}, groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1, snowy = 1},
drop = "vox_main:dirt", drop = "vox_core:dirt",
--sounds = vox_main.node_sound_dirt_defaults({ --sounds = vox_core.node_sound_dirt_defaults({
-- footstep = {name = "default_snow_footstep", gain = 0.2}, -- footstep = {name = "default_snow_footstep", gain = 0.2},
--}), --}),
}) })
core.register_node("vox_main:dirt_with_rainforest_litter", { core.register_node("vox_core:dirt_with_rainforest_litter", {
description = "Dirt with Rainforest Litter", description = "Dirt with Rainforest Litter",
tiles = { tiles = {
"default_rainforest_litter.png", "default_rainforest_litter.png",
@ -140,13 +140,13 @@ core.register_node("vox_main:dirt_with_rainforest_litter", {
tileable_vertical = false} tileable_vertical = false}
}, },
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1}, groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = "vox_main:dirt", drop = "vox_core:dirt",
--sounds = vox_main.node_sound_dirt_defaults({ --sounds = vox_core.node_sound_dirt_defaults({
-- footstep = {name = "default_grass_footstep", gain = 0.4}, -- footstep = {name = "default_grass_footstep", gain = 0.4},
--}), --}),
}) })
core.register_node("vox_main:dirt_with_coniferous_litter", { core.register_node("vox_core:dirt_with_coniferous_litter", {
description = "Dirt with Coniferous Litter", description = "Dirt with Coniferous Litter",
tiles = { tiles = {
"default_coniferous_litter.png", "default_coniferous_litter.png",
@ -155,168 +155,168 @@ core.register_node("vox_main:dirt_with_coniferous_litter", {
tileable_vertical = false} tileable_vertical = false}
}, },
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1}, groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = "vox_main:dirt", drop = "vox_core:dirt",
--sounds = vox_main.node_sound_dirt_defaults({ --sounds = vox_core.node_sound_dirt_defaults({
-- footstep = {name = "default_grass_footstep", gain = 0.4}, -- footstep = {name = "default_grass_footstep", gain = 0.4},
--}), --}),
}) })
core.register_node("vox_main:dry_dirt", { core.register_node("vox_core:dry_dirt", {
description = "Savanna Dirt", description = "Savanna Dirt",
tiles = {"default_dry_dirt.png"}, tiles = {"default_dry_dirt.png"},
groups = {crumbly = 3, soil = 1}, groups = {crumbly = 3, soil = 1},
--sounds = vox_main.node_sound_dirt_defaults(), --sounds = vox_core.node_sound_dirt_defaults(),
}) })
core.register_node("vox_main:dry_dirt_with_dry_grass", { core.register_node("vox_core:dry_dirt_with_dry_grass", {
description = "Savanna Dirt with Savanna Grass", description = "Savanna Dirt with Savanna Grass",
tiles = {"default_dry_grass.png", "default_dry_dirt.png", tiles = {"default_dry_grass.png", "default_dry_dirt.png",
{name = "default_dry_dirt.png^default_dry_grass_side.png", {name = "default_dry_dirt.png^default_dry_grass_side.png",
tileable_vertical = false}}, tileable_vertical = false}},
groups = {crumbly = 3, soil = 1}, groups = {crumbly = 3, soil = 1},
drop = "vox_main:dry_dirt", drop = "vox_core:dry_dirt",
--sounds = vox_main.node_sound_dirt_defaults({ --sounds = vox_core.node_sound_dirt_defaults({
-- footstep = {name = "default_grass_footstep", gain = 0.4}, -- footstep = {name = "default_grass_footstep", gain = 0.4},
--}), --}),
}) })
-- Snow -- Snow
core.register_node("vox_main:snow", { core.register_node("vox_core:snow", {
description = "Snow", description = "Snow",
tiles = {"default_snow.png"}, tiles = {"default_snow.png"},
groups = {crumbly = 3} groups = {crumbly = 3}
}) })
core.register_alias("snow", "vox_main:snow") core.register_alias("snow", "vox_core:snow")
core.register_alias("default:snow", "vox_main:snow") core.register_alias("default:snow", "vox_core:snow")
-- Packed Snow -- Packed Snow
core.register_node("vox_main:packed_snow", { core.register_node("vox_core:packed_snow", {
description = "Packed Snow", description = "Packed Snow",
tiles = {"vox_packed_snow.png"}, tiles = {"vox_packed_snow.png"},
groups = {crumbly = 2} groups = {crumbly = 2}
}) })
core.register_alias("packed_snow", "vox_main:packed_snow") core.register_alias("packed_snow", "vox_core:packed_snow")
-- Ice -- Ice
core.register_node("vox_main:ice", { core.register_node("vox_core:ice", {
description = "Ice", description = "Ice",
tiles = {"default_ice.png"}, tiles = {"default_ice.png"},
groups = {crumbly = 3} groups = {crumbly = 3}
}) })
core.register_alias("ice", "vox_main:ice") core.register_alias("ice", "vox_core:ice")
core.register_alias("default:ice", "vox_main:ice") core.register_alias("default:ice", "vox_core:ice")
-- Permafrost -- Permafrost
core.register_node("vox_main:permafrost", { core.register_node("vox_core:permafrost", {
description = "Permafrost", description = "Permafrost",
tiles = {"vox_permafrost.png"}, tiles = {"vox_permafrost.png"},
groups = {cracky = 3}, groups = {cracky = 3},
--sounds = vox_main.node_sound_dirt_defaults(), --sounds = vox_core.node_sound_dirt_defaults(),
}) })
core.register_alias("permafrost", "vox_main:permafrost") core.register_alias("permafrost", "vox_core:permafrost")
-- Stone -- Stone
core.register_node("vox_main:stone", { core.register_node("vox_core:stone", {
description = "Stone", description = "Stone",
tiles = {"default_stone.png"}, tiles = {"default_stone.png"},
groups = {cracky = 3, stone = 1}, groups = {cracky = 3, stone = 1},
drop = "vox_main:cobble", drop = "vox_core:cobble",
legacy_mineral = true, legacy_mineral = true,
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("stone", "vox_main:stone") core.register_alias("stone", "vox_core:stone")
core.register_alias("mapgen_stone", "vox_main:stone") core.register_alias("mapgen_stone", "vox_core:stone")
-- core.register_alias("default:stone", "vox_main:stone") -- core.register_alias("default:stone", "vox_core:stone")
-- Cobblestone -- Cobblestone
core.register_node("vox_main:cobblestone", { core.register_node("vox_core:cobblestone", {
description = "Cobblestone", description = "Cobblestone",
tiles = {"default_cobble.png"}, tiles = {"default_cobble.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 3, stone = 2}, groups = {cracky = 3, stone = 2},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("cobblestone", "vox_main:cobblestone") core.register_alias("cobblestone", "vox_core:cobblestone")
core.register_alias("default:cobble", "vox_main:cobblestone") core.register_alias("default:cobble", "vox_core:cobblestone")
-- Mossy Cobble -- Mossy Cobble
core.register_node("vox_main:mossycobble", { core.register_node("vox_core:mossycobble", {
description = "Mossy Cobble", description = "Mossy Cobble",
tiles = {"default_mossycobble.png"}, tiles = {"default_mossycobble.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 3, stone = 1}, groups = {cracky = 3, stone = 1},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("mossycobble", "vox_main:mossycobble") core.register_alias("mossycobble", "vox_core:mossycobble")
core.register_alias("default:mossycobble", "vox_main:mossycobble") core.register_alias("default:mossycobble", "vox_core:mossycobble")
-- Stone Block -- Stone Block
core.register_node("vox_main:stone_block", { core.register_node("vox_core:stone_block", {
description = "Stone Block", description = "Stone Block",
tiles = {"default_stone_block.png"}, tiles = {"default_stone_block.png"},
groups = {cracky = 2, stone = 1}, groups = {cracky = 2, stone = 1},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("stone_block", "vox_main:stone_block") core.register_alias("stone_block", "vox_core:stone_block")
core.register_alias("default:stone_block", "vox_main:stone_block") core.register_alias("default:stone_block", "vox_core:stone_block")
-- Stone Brick -- Stone Brick
core.register_node("vox_main:stone_brick", { core.register_node("vox_core:stone_brick", {
description = "Stone Brick", description = "Stone Brick",
tiles = {"default_stone_brick.png"}, tiles = {"default_stone_brick.png"},
groups = {cracky = 2, stone = 1}, groups = {cracky = 2, stone = 1},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("stone_brick", "vox_main:stone_brick") core.register_alias("stone_brick", "vox_core:stone_brick")
core.register_alias("default:stonebrick", "vox_main:stone_brick") core.register_alias("default:stonebrick", "vox_core:stone_brick")
-- Bluestone -- Bluestone
core.register_node("vox_main:bluestone", { core.register_node("vox_core:bluestone", {
description = "Bluestone", description = "Bluestone",
tiles = {"vox_bluestone.png"}, tiles = {"vox_bluestone.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("bluestone", "vox_main:bluestone") core.register_alias("bluestone", "vox_core:bluestone")
-- Sand -- Sand
-- (I don't like sand. It's coarse and rough and irritating and it gets everywhere.) -- (I don't like sand. It's coarse and rough and irritating and it gets everywhere.)
core.register_node("vox_main:sand", { core.register_node("vox_core:sand", {
description = "Sand", description = "Sand",
tiles = {"default_sand.png"}, tiles = {"default_sand.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1}, groups = {crumbly = 3, falling_node = 1, sand = 1},
--sounds = vox_main.node_sound_sand_defaults(), --sounds = vox_core.node_sound_sand_defaults(),
}) })
core.register_alias("sand", "vox_main:sand") core.register_alias("sand", "vox_core:sand")
core.register_alias("default:sand", "vox_main:sand") core.register_alias("default:sand", "vox_core:sand")
-- Desert Stone -- Desert Stone
core.register_node("vox_main:desert_stone", { core.register_node("vox_core:desert_stone", {
description = "Desert Stone", description = "Desert Stone",
tiles = {"default_desert_stone.png"}, tiles = {"default_desert_stone.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("desert_stone", "vox_main:desert_stone") core.register_alias("desert_stone", "vox_core:desert_stone")
core.register_alias("default:desert_stone", "vox_main:desert_stone") core.register_alias("default:desert_stone", "vox_core:desert_stone")
-- Desert Sand -- Desert Sand
core.register_node("vox_main:desert_sand", { core.register_node("vox_core:desert_sand", {
description = "Desert Sand", description = "Desert Sand",
tiles = {"default_desert_sand.png"}, tiles = {"default_desert_sand.png"},
groups = {crumbly = 3} groups = {crumbly = 3}
}) })
core.register_alias("desert_sand", "vox_main:desert_sand") core.register_alias("desert_sand", "vox_core:desert_sand")
core.register_alias("default:desert_sand", "vox_main:desert_sand") core.register_alias("default:desert_sand", "vox_core:desert_sand")
-- Sulfur Crust -- Sulfur Crust
core.register_node("vox_main:sulfur_crust", { core.register_node("vox_core:sulfur_crust", {
description = "Sulfur Crust", description = "Sulfur Crust",
tiles = {"vox_sulfur_crust.png"}, tiles = {"vox_sulfur_crust.png"},
groups = {crumbly = 3} groups = {crumbly = 3}
}) })
core.register_alias("sulfur_crust", "vox_main:sulfur_crust") core.register_alias("sulfur_crust", "vox_core:sulfur_crust")
-- Ash -- Ash
core.register_node("vox_main:ash_block", { core.register_node("vox_core:ash_block", {
description = "Ash Block", description = "Ash Block",
tiles = {"vox_ash_block.png"}, tiles = {"vox_ash_block.png"},
groups = {crumbly = 3}, groups = {crumbly = 3},
@ -324,11 +324,11 @@ core.register_node("vox_main:ash_block", {
}) })
-- Gravel -- Gravel
core.register_node("vox_main:gravel", { core.register_node("vox_core:gravel", {
description = "Gravel", description = "Gravel",
tiles = {"default_gravel.png"}, tiles = {"default_gravel.png"},
groups = {crumbly = 2, falling_node = 1}, groups = {crumbly = 2, falling_node = 1},
--sounds = vox_main.node_sound_gravel_defaults(), --sounds = vox_core.node_sound_gravel_defaults(),
drop = { drop = {
max_items = 1, max_items = 1,
items = { items = {
@ -337,238 +337,238 @@ core.register_node("vox_main:gravel", {
} }
} }
}) })
core.register_alias("gravel", "vox_main:gravel") core.register_alias("gravel", "vox_core:gravel")
core.register_alias("default:gravel", "vox_main:gravel") core.register_alias("default:gravel", "vox_core:gravel")
-- Sandstone -- Sandstone
core.register_node("vox_main:sandstone", { core.register_node("vox_core:sandstone", {
description = "Sandstone", description = "Sandstone",
tiles = {"vox_sandstone.png"}, tiles = {"vox_sandstone.png"},
groups = {crumbly = 1, cracky = 3}, groups = {crumbly = 1, cracky = 3},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("sandstone", "vox_main:sandstone") core.register_alias("sandstone", "vox_core:sandstone")
core.register_alias("default:sandstone", "vox_main:sandstone") core.register_alias("default:sandstone", "vox_core:sandstone")
-- Sandstone Brick -- Sandstone Brick
core.register_node("vox_main:sandstone_brick", { core.register_node("vox_core:sandstone_brick", {
description = "Sandstone Brick", description = "Sandstone Brick",
paramtype2 = "facedir", paramtype2 = "facedir",
place_param2 = 0, place_param2 = 0,
tiles = {"default_sandstone_brick.png"}, tiles = {"default_sandstone_brick.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 2}, groups = {cracky = 2},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("sandstone_brick", "vox_main:sandstone_brick") core.register_alias("sandstone_brick", "vox_core:sandstone_brick")
core.register_alias("default:sandstonebrick", "vox_main:sandstone_brick") core.register_alias("default:sandstonebrick", "vox_core:sandstone_brick")
-- Sandstone Block -- Sandstone Block
core.register_node("vox_main:sandstone_block", { core.register_node("vox_core:sandstone_block", {
description = "Sandstone Block", description = "Sandstone Block",
tiles = {"default_sandstone_block.png"}, tiles = {"default_sandstone_block.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 2}, groups = {cracky = 2},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("sandstone_block", "vox_main:sandstone_block") core.register_alias("sandstone_block", "vox_core:sandstone_block")
core.register_alias("default:sandstone_block", "vox_main:sandstone_block") core.register_alias("default:sandstone_block", "vox_core:sandstone_block")
-- Desert Sandstone -- Desert Sandstone
core.register_node("vox_main:desert_sandstone", { core.register_node("vox_core:desert_sandstone", {
description = "Desert Sandstone", description = "Desert Sandstone",
tiles = {"default_desert_sandstone.png"}, tiles = {"default_desert_sandstone.png"},
groups = {crumbly = 1, cracky = 3}, groups = {crumbly = 1, cracky = 3},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("desert_sandstone", "vox_main:desert_sandstone") core.register_alias("desert_sandstone", "vox_core:desert_sandstone")
core.register_alias("default:desert_sandstone", "vox_main:desert_sandstone") core.register_alias("default:desert_sandstone", "vox_core:desert_sandstone")
-- Desert Sandstone Brick -- Desert Sandstone Brick
core.register_node("vox_main:desert_sandstone_brick", { core.register_node("vox_core:desert_sandstone_brick", {
description = "Desert Sandstone Brick", description = "Desert Sandstone Brick",
paramtype2 = "facedir", paramtype2 = "facedir",
place_param2 = 0, place_param2 = 0,
tiles = {"default_desert_sandstone_brick.png"}, tiles = {"default_desert_sandstone_brick.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 2}, groups = {cracky = 2},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("desert_sandstone_brick", "vox_main:desert_sandstone_brick") core.register_alias("desert_sandstone_brick", "vox_core:desert_sandstone_brick")
core.register_alias("default:desert_sandstone_brick", "vox_main:desert_sandstone_brick") core.register_alias("default:desert_sandstone_brick", "vox_core:desert_sandstone_brick")
-- Desert Sandstone Block -- Desert Sandstone Block
core.register_node("vox_main:desert_sandstone_block", { core.register_node("vox_core:desert_sandstone_block", {
description = "Desert Sandstone Block", description = "Desert Sandstone Block",
tiles = {"default_desert_sandstone_block.png"}, tiles = {"default_desert_sandstone_block.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 2}, groups = {cracky = 2},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("desert_sandstone_block", "vox_main:desert_sandstone_block") core.register_alias("desert_sandstone_block", "vox_core:desert_sandstone_block")
core.register_alias("default:desert_sandstone_block", "vox_main:desert_sandstone_block") core.register_alias("default:desert_sandstone_block", "vox_core:desert_sandstone_block")
-- Silver Sandstone -- Silver Sandstone
core.register_node("vox_main:silver_sandstone", { core.register_node("vox_core:silver_sandstone", {
description = "Silver Sandstone", description = "Silver Sandstone",
tiles = {"default_silver_sandstone.png"}, tiles = {"default_silver_sandstone.png"},
groups = {crumbly = 1, cracky = 3}, groups = {crumbly = 1, cracky = 3},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("silver_sandstone", "vox_main:silver_sandstone") core.register_alias("silver_sandstone", "vox_core:silver_sandstone")
core.register_alias("default:silver_sandstone", "vox_main:silver_sandstone") core.register_alias("default:silver_sandstone", "vox_core:silver_sandstone")
-- Silver Sandstone Brick -- Silver Sandstone Brick
core.register_node("vox_main:silver_sandstone_brick", { core.register_node("vox_core:silver_sandstone_brick", {
description = "Silver Sandstone Brick", description = "Silver Sandstone Brick",
tiles = {"default_silver_sandstone_brick.png"}, tiles = {"default_silver_sandstone_brick.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 2}, groups = {cracky = 2},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
}) })
core.register_alias("silver_sandstone_brick", "vox_main:silver_sandstone_brick") core.register_alias("silver_sandstone_brick", "vox_core:silver_sandstone_brick")
core.register_alias("default:silver_sandstone_brick", "vox_main:silver_sandstone_brick") core.register_alias("default:silver_sandstone_brick", "vox_core:silver_sandstone_brick")
-- Clay -- Clay
core.register_node("vox_main:clay", { core.register_node("vox_core:clay", {
description = "Clay", description = "Clay",
tiles = {"default_clay.png"}, tiles = {"default_clay.png"},
groups = {crumbly = 3} groups = {crumbly = 3}
}) })
core.register_alias("clay", "vox_main:clay") core.register_alias("clay", "vox_core:clay")
core.register_alias("default:clay", "vox_main:clay") core.register_alias("default:clay", "vox_core:clay")
-- Hardened Clay -- Hardened Clay
core.register_node("vox_main:hardened_clay", { core.register_node("vox_core:hardened_clay", {
description = "Hardened Clay", description = "Hardened Clay",
tiles = {"vox_hardened_clay.png"}, tiles = {"vox_hardened_clay.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("hardened_clay", "vox_main:hardened_clay") core.register_alias("hardened_clay", "vox_core:hardened_clay")
core.register_alias("default:hardened_clay", "vox_main:hardened_clay") core.register_alias("default:hardened_clay", "vox_core:hardened_clay")
-- Mud -- Mud
core.register_node("vox_main:mud", { core.register_node("vox_core:mud", {
description = "Mud", description = "Mud",
tiles = {"vox_mud.png"}, tiles = {"vox_mud.png"},
groups = {crumbly = 3} groups = {crumbly = 3}
}) })
core.register_alias("mud", "vox_main:mud") core.register_alias("mud", "vox_core:mud")
-- Salt Crystal -- Salt Crystal
core.register_node("vox_main:salt_crystal", { core.register_node("vox_core:salt_crystal", {
description = "Salt Crystal", description = "Salt Crystal",
tiles = {"vox_salt_crystal.png"}, tiles = {"vox_salt_crystal.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("salt_crystal", "vox_main:salt_crystal") core.register_alias("salt_crystal", "vox_core:salt_crystal")
-- Volcanic Rock -- Volcanic Rock
core.register_node("vox_main:volcanic_rock", { core.register_node("vox_core:volcanic_rock", {
description = "Volcanic Rock", description = "Volcanic Rock",
tiles = {"vox_volcanic_rock.png"}, tiles = {"vox_volcanic_rock.png"},
groups = {cracky = 3} groups = {cracky = 3}
}) })
core.register_alias("volcanic_rock", "vox_main:volcanic_rock") core.register_alias("volcanic_rock", "vox_core:volcanic_rock")
-- EVEN MORE ROCKS!!! -- EVEN MORE ROCKS!!!
-- Granite -- Granite
core.register_node("vox_main:granite", { core.register_node("vox_core:granite", {
description = "Granite", description = "Granite",
tiles = {"vox_granite.png"}, tiles = {"vox_granite.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("granite", "vox_main:granite") core.register_alias("granite", "vox_core:granite")
core.register_alias("default:granite", "vox_main:granite") core.register_alias("default:granite", "vox_core:granite")
-- Diorite -- Diorite
core.register_node("vox_main:diorite", { core.register_node("vox_core:diorite", {
description = "Diorite", description = "Diorite",
tiles = {"vox_diorite.png"}, tiles = {"vox_diorite.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("diorite", "vox_main:diorite") core.register_alias("diorite", "vox_core:diorite")
core.register_alias("default:diorite", "vox_main:diorite") core.register_alias("default:diorite", "vox_core:diorite")
-- Andesite -- Andesite
core.register_node("vox_main:andesite", { core.register_node("vox_core:andesite", {
description = "Andesite", description = "Andesite",
tiles = {"vox_andesite.png"}, tiles = {"vox_andesite.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("andesite", "vox_main:andesite") core.register_alias("andesite", "vox_core:andesite")
core.register_alias("default:andesite", "vox_main:andesite") core.register_alias("default:andesite", "vox_core:andesite")
-- Basalt -- Basalt
core.register_node("vox_main:basalt", { core.register_node("vox_core:basalt", {
description = "Basalt", description = "Basalt",
tiles = {"vox_basalt.png"}, tiles = {"vox_basalt.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("basalt", "vox_main:basalt") core.register_alias("basalt", "vox_core:basalt")
core.register_alias("default:basalt", "vox_main:basalt") core.register_alias("default:basalt", "vox_core:basalt")
-- Obsidian -- Obsidian
core.register_node("vox_main:obsidian", { core.register_node("vox_core:obsidian", {
description = "Obsidian", description = "Obsidian",
tiles = {"default_obsidian.png"}, tiles = {"default_obsidian.png"},
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
groups = {cracky = 1, level = 2}, groups = {cracky = 1, level = 2},
}) })
core.register_alias("obsidian", "vox_main:obsidian") core.register_alias("obsidian", "vox_core:obsidian")
core.register_alias("default:obsidian", "vox_main:obsidian") core.register_alias("default:obsidian", "vox_core:obsidian")
-- Obsidian Brick -- Obsidian Brick
core.register_node("vox_main:obsidian_brick", { core.register_node("vox_core:obsidian_brick", {
description = "Obsidian Brick", description = "Obsidian Brick",
paramtype2 = "facedir", paramtype2 = "facedir",
place_param2 = 0, place_param2 = 0,
tiles = {"default_obsidian_brick.png"}, tiles = {"default_obsidian_brick.png"},
is_ground_content = false, is_ground_content = false,
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
groups = {cracky = 1, level = 2}, groups = {cracky = 1, level = 2},
}) })
core.register_alias("obsidian_brick", "vox_main:obsidian_brick") core.register_alias("obsidian_brick", "vox_core:obsidian_brick")
core.register_alias("default:obsidianbrick", "vox_main:obsidian_brick") core.register_alias("default:obsidianbrick", "vox_core:obsidian_brick")
-- Obsidian Block -- Obsidian Block
core.register_node("vox_main:obsidian_block", { core.register_node("vox_core:obsidian_block", {
description = "Obsidian Block", description = "Obsidian Block",
tiles = {"default_obsidian_block.png"}, tiles = {"default_obsidian_block.png"},
is_ground_content = false, is_ground_content = false,
--sounds = vox_main.node_sound_stone_defaults(), --sounds = vox_core.node_sound_stone_defaults(),
groups = {cracky = 1, level = 2}, groups = {cracky = 1, level = 2},
}) })
core.register_alias("obsidian_block", "vox_main:obsidian_block") core.register_alias("obsidian_block", "vox_core:obsidian_block")
core.register_alias("default:obsidian_block", "vox_main:obsidian_block") core.register_alias("default:obsidian_block", "vox_core:obsidian_block")
-- Marble -- Marble
core.register_node("vox_main:marble", { core.register_node("vox_core:marble", {
description = "Marble", description = "Marble",
tiles = {"vox_marble.png"}, tiles = {"vox_marble.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("marble", "vox_main:marble") core.register_alias("marble", "vox_core:marble")
core.register_alias("default:marble", "vox_main:marble") core.register_alias("default:marble", "vox_core:marble")
-- Chalk -- Chalk
core.register_node("vox_main:chalk", { core.register_node("vox_core:chalk", {
description = "Chalk", description = "Chalk",
tiles = {"vox_chalk.png"}, tiles = {"vox_chalk.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("chalk", "vox_main:chalk") core.register_alias("chalk", "vox_core:chalk")
core.register_alias("default:chalk", "vox_main:chalk") core.register_alias("default:chalk", "vox_core:chalk")
-- Limestone -- Limestone
core.register_node("vox_main:limestone", { core.register_node("vox_core:limestone", {
description = "Limestone", description = "Limestone",
tiles = {"vox_limestone.png"}, tiles = {"vox_limestone.png"},
groups = {cracky = 2} groups = {cracky = 2}
}) })
core.register_alias("limestone", "vox_main:limestone") core.register_alias("limestone", "vox_core:limestone")
core.register_alias("default:limestone", "vox_main:limestone") core.register_alias("default:limestone", "vox_core:limestone")

View file

@ -1,13 +1,13 @@
-- We'll register drops from mobs here, but what mobs drop elsewhere. -- We'll register drops from mobs here, but what mobs drop elsewhere.
-- Fat -- Fat
minetest.register_craftitem("vox_main:fat", { minetest.register_craftitem("vox_core:fat", {
description = "Fat", description = "Fat",
inventory_image = "fat.png", inventory_image = "fat.png",
}) })
-- Leather -- Leather
minetest.register_craftitem("vox_main:leather", { minetest.register_craftitem("vox_core:leather", {
description = "Leather", description = "Leather",
inventory_image = "leather.png", inventory_image = "leather.png",
}) })

View file

@ -1,3 +1,3 @@
name = vox_main name = vox_core
description = Voxelis - Main : Core content description = Voxelis - Main : Core content
depends = vox_colors depends = vox_colors

View file

@ -0,0 +1,7 @@
core.register_node("vox_core:coral_red", {
description = "Red Coral",
tiles = {"vox_coral_red.png"},
groups = {crumbly = 1}
})
core.register_alias("coral_red", "vox_core:coral_red")

View file

@ -0,0 +1,153 @@
-- -------------------------------------------------------------------------- --
-- Ores --
-- -------------------------------------------------------------------------- --
-- Fuel: Coal, Uranium, Peat
core.register_node("vox_core:coal_ore", {
description = "Coal Ore",
tiles = {"vox_coal_ore.png"},
groups = {cracky = 2}
})
core.register_alias("coal_ore", "vox_core:coal_ore")
core.register_alias("default:stone_with_coal", "vox_core:coal_ore")
core.register_node("vox_core:uranium_ore", {
description = "Uranium Ore",
tiles = {"vox_uranium_ore.png"},
groups = {cracky = 2}
})
core.register_alias("uranium_ore", "vox_core:uranium_ore")
core.register_alias("default:stone_with_uranium", "vox_core:uranium_ore")
core.register_node("vox_core:peat", {
description = "Peat",
tiles = {"vox_peat.png"},
groups = {crumbly = 2, flammable = 1}
})
core.register_alias("peat", "vox_core:peat")
-- Bone
core.register_node("vox_core:bone_ore", {
description = "Bone Ore",
tiles = {"vox_bone_ore.png"},
groups = {cracky = 2}
})
core.register_alias("bone_ore", "vox_core:bone_ore")
core.register_alias("default:stone_with_bone", "vox_core:bone_ore")
-- Sulfur
core.register_node("vox_core:sulfur_ore", {
description = "Sulfur Ore",
tiles = {"vox_sulfur_ore.png"},
groups = {cracky = 2}
})
core.register_alias("sulfur_ore", "vox_core:sulfur_ore")
core.register_alias("default:stone_with_sulfur", "vox_core:sulfur_ore")
-- Salt
core.register_node("vox_core:salt_ore", {
description = "Salt Ore",
tiles = {"vox_salt_ore.png"},
groups = {crumbly = 2},
drop = "vox_mats:salt"
})
core.register_alias("salt_ore", "vox_core:salt_ore")
core.register_alias("default:stone_with_salt", "vox_core:salt_ore")
-- Metals: Copper, Tin, Iron, Gold, Silver, Platinum, Lead, Zinc, Nickel, Cobalt, Titanium, Tungsten
core.register_node("vox_core:copper_ore", {
description = "Copper Ore",
tiles = {"vox_copper_ore.png"},
groups = {cracky = 2}
})
core.register_alias("copper_ore", "vox_core:copper_ore")
core.register_alias("default:stone_with_copper", "vox_core:copper_ore")
core.register_node("vox_core:tin_ore", {
description = "Tin Ore",
tiles = {"vox_tin_ore.png"},
groups = {cracky = 2}
})
core.register_alias("tin_ore", "vox_core:tin_ore")
core.register_alias("default:stone_with_tin", "vox_core:tin_ore")
core.register_node("vox_core:iron_ore", {
description = "Iron Ore",
tiles = {"vox_iron_ore.png"},
groups = {cracky = 2}
})
core.register_alias("iron_ore", "vox_core:iron_ore")
core.register_alias("default:stone_with_iron", "vox_core:iron_ore")
core.register_node("vox_core:gold_ore", {
description = "Gold Ore",
tiles = {"vox_gold_ore.png"},
groups = {cracky = 2}
})
core.register_alias("gold_ore", "vox_core:gold_ore")
core.register_alias("default:stone_with_gold", "vox_core:gold_ore")
core.register_node("vox_core:silver_ore", {
description = "Silver Ore",
tiles = {"vox_silver_ore.png"},
groups = {cracky = 2}
})
core.register_alias("silver_ore", "vox_core:silver_ore")
core.register_alias("default:stone_with_silver", "vox_core:silver_ore")
core.register_node("vox_core:platinum_ore", {
description = "Platinum Ore",
tiles = {"vox_platinum_ore.png"},
groups = {cracky = 2}
})
core.register_alias("platinum_ore", "vox_core:platinum_ore")
core.register_alias("default:stone_with_platinum", "vox_core:platinum_ore")
core.register_node("vox_core:lead_ore", {
description = "Lead Ore",
tiles = {"vox_lead_ore.png"},
groups = {cracky = 2}
})
core.register_alias("lead_ore", "vox_core:lead_ore")
core.register_alias("default:stone_with_lead", "vox_core:lead_ore")
core.register_node("vox_core:zinc_ore", {
description = "Zinc Ore",
tiles = {"vox_zinc_ore.png"},
groups = {cracky = 2}
})
core.register_alias("zinc_ore", "vox_core:zinc_ore")
core.register_alias("default:stone_with_zinc", "vox_core:zinc_ore")
core.register_node("vox_core:nickel_ore", {
description = "Nickel Ore",
tiles = {"vox_nickel_ore.png"},
groups = {cracky = 2}
})
core.register_alias("nickel_ore", "vox_core:nickel_ore")
core.register_alias("default:stone_with_nickel", "vox_core:nickel_ore")
core.register_node("vox_core:cobalt_ore", {
description = "Cobalt Ore",
tiles = {"vox_cobalt_ore.png"},
groups = {cracky = 2}
})
core.register_alias("cobalt_ore", "vox_core:cobalt_ore")
core.register_alias("default:stone_with_cobalt", "vox_core:cobalt_ore")
core.register_node("vox_core:titanium_ore", {
description = "Titanium Ore",
tiles = {"vox_titanium_ore.png"},
groups = {cracky = 2}
})
core.register_alias("titanium_ore", "vox_core:titanium_ore")
core.register_alias("default:stone_with_titanium", "vox_core:titanium_ore")
core.register_node("vox_core:tungsten_ore", {
description = "Tungsten Ore",
tiles = {"vox_tungsten_ore.png"},
groups = {cracky = 2}
})
core.register_alias("tungsten_ore", "vox_core:tungsten_ore")
core.register_alias("default:stone_with_tungsten", "vox_core:tungsten_ore")

View file

@ -1,7 +1,7 @@
-- plants.lua -- plants.lua
-- Register Cactus -- Register Cactus
minetest.register_node("vox_main:cactus", { minetest.register_node("vox_core:cactus", {
description = "Cactus", description = "Cactus",
tiles = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"}, tiles = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"},
paramtype2 = "facedir", paramtype2 = "facedir",
@ -11,7 +11,7 @@ minetest.register_node("vox_main:cactus", {
}) })
-- Register Large Cactus Seedling -- Register Large Cactus Seedling
minetest.register_node("vox_main:large_cactus_seedling", { minetest.register_node("vox_core:large_cactus_seedling", {
description = "Large Cactus Seedling", description = "Large Cactus Seedling",
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"default_large_cactus_seedling.png"}, tiles = {"default_large_cactus_seedling.png"},
@ -38,7 +38,7 @@ minetest.register_node("vox_main:large_cactus_seedling", {
}) })
-- Register Papyrus -- Register Papyrus
minetest.register_node("vox_main:papyrus", { minetest.register_node("vox_core:papyrus", {
description = "Papyrus", description = "Papyrus",
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"default_papyrus.png"}, tiles = {"default_papyrus.png"},
@ -59,7 +59,7 @@ minetest.register_node("vox_main:papyrus", {
}) })
-- Register Dry Shrub -- Register Dry Shrub
minetest.register_node("vox_main:dry_shrub", { minetest.register_node("vox_core:dry_shrub", {
description = "Dry Shrub", description = "Dry Shrub",
drawtype = "plantlike", drawtype = "plantlike",
waving = 1, waving = 1,
@ -81,7 +81,7 @@ minetest.register_node("vox_main:dry_shrub", {
}) })
-- Register Jungle Grass -- Register Jungle Grass
minetest.register_node("vox_main:junglegrass", { minetest.register_node("vox_core:junglegrass", {
description = "Jungle Grass", description = "Jungle Grass",
drawtype = "plantlike", drawtype = "plantlike",
waving = 1, waving = 1,
@ -103,7 +103,7 @@ minetest.register_node("vox_main:junglegrass", {
-- Register Grass -- Register Grass
for i = 1, 5 do for i = 1, 5 do
minetest.register_node("vox_main:grass_" .. i, { minetest.register_node("vox_core:grass_" .. i, {
description = "Grass", description = "Grass",
drawtype = "plantlike", drawtype = "plantlike",
waving = 1, waving = 1,
@ -128,7 +128,7 @@ end
-- Register Dry Grass -- Register Dry Grass
for i = 1, 5 do for i = 1, 5 do
minetest.register_node("vox_main:dry_grass_" .. i, { minetest.register_node("vox_core:dry_grass_" .. i, {
description = "Savanna Grass", description = "Savanna Grass",
drawtype = "plantlike", drawtype = "plantlike",
waving = 1, waving = 1,
@ -153,7 +153,7 @@ end
-- Register Fern -- Register Fern
for i = 1, 3 do for i = 1, 3 do
minetest.register_node("vox_main:fern_" .. i, { minetest.register_node("vox_core:fern_" .. i, {
description = "Fern", description = "Fern",
drawtype = "plantlike", drawtype = "plantlike",
waving = 1, waving = 1,
@ -178,7 +178,7 @@ end
-- Register Marram Grass -- Register Marram Grass
for i = 1, 3 do for i = 1, 3 do
minetest.register_node("vox_main:marram_grass_" .. i, { minetest.register_node("vox_core:marram_grass_" .. i, {
description = "Marram Grass", description = "Marram Grass",
drawtype = "plantlike", drawtype = "plantlike",
waving = 1, waving = 1,

View file

@ -2,9 +2,9 @@
-- Cloud Block - Only pegasus can walk on it :) -- Cloud Block - Only pegasus can walk on it :)
-- Players may stand on it, but sink partway through. If multiple blocks are -- Players may stand on it, but sink partway through. If multiple blocks are
-- stacked, you fall to the lowest block and still don't fall through. -- stacked, you fall to the lowest block and still don't fall through.
core.register_node("vox_main:cloud", { core.register_node("vox_core:cloud", {
description = "Cloud", description = "Cloud",
tiles = {"vox_cloud.png"}, tiles = {"vox_cloud.png"},
groups = {crumbly = 1} groups = {crumbly = 1}
}) })
core.register_alias("cloud", "vox_main:cloud") core.register_alias("cloud", "vox_core:cloud")

View file

@ -6,13 +6,13 @@ local dyeable_craftitem = {"wool, carpet"}
-- ---------------------------- Basics -------------------------- -- -- ---------------------------- Basics -------------------------- --
-- "We've got wool and wool accessories. -- "We've got wool and wool accessories.
-- String -- String
minetest.register_craftitem("vox_main:string", { minetest.register_craftitem("vox_core:string", {
description = "String", description = "String",
inventory_image = "vox_main_string.png" inventory_image = "vox_core_string.png"
}) })
-- Wool -- Wool
minetest.register_node("vox_main:wool", { minetest.register_node("vox_core:wool", {
description = "Wool", description = "Wool",
tiles = {"vox_textiles_wool.png"}, tiles = {"vox_textiles_wool.png"},
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=3}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=3},
@ -21,7 +21,7 @@ minetest.register_node("vox_main:wool", {
-- Carpet -- Carpet
-- These are made from wool and can be dyed -- These are made from wool and can be dyed
minetest.register_node("vox_main:carpet", { minetest.register_node("vox_core:carpet", {
description = "Carpet", description = "Carpet",
tiles = {"vox_textiles_carpet.png"}, tiles = {"vox_textiles_carpet.png"},
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=3}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=3},

View file

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View file

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 415 B

View file

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 149 B

View file

Before

Width:  |  Height:  |  Size: 590 B

After

Width:  |  Height:  |  Size: 590 B

View file

Before

Width:  |  Height:  |  Size: 119 B

After

Width:  |  Height:  |  Size: 119 B

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