diff --git a/adamant.lua b/adamant.lua new file mode 100644 index 0000000..c5e803e --- /dev/null +++ b/adamant.lua @@ -0,0 +1,47 @@ +-- LUALOCALS < --------------------------------------------------------- +local minetest, nodecore + = minetest, nodecore +-- LUALOCALS > --------------------------------------------------------- + +local modname = minetest.get_current_modname() + +local form = "nc_lode_annealed.png^[mask:nc_api_storebox_frame.png" + +local frost = "wc_adamant.png^(" .. form .. ")" + +minetest.register_node(modname .. ":shelf_adamant", { + description = "Adamant Cauldron", + tiles = {frost, frost, form}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + cracky = 5, + visinv = 1, + storebox = 4, + totable = 1, + scaling_time = 50, + lux_absorb = 10 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_optics_glassy"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_adamant" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "assemble adamant cauldron", + action = "stackapply", + indexkeys = {"nc_lode:form"}, + wield = {name = "wc_adamant:block"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_lode:form", empty = true}, + replace = modname .. ":shelf_adamant" + }, + } + }) diff --git a/bamboo.lua b/bamboo.lua new file mode 100644 index 0000000..56bd853 --- /dev/null +++ b/bamboo.lua @@ -0,0 +1,48 @@ +-- LUALOCALS < --------------------------------------------------------- +local minetest, nodecore + = minetest, nodecore +-- LUALOCALS > --------------------------------------------------------- + +local modname = minetest.get_current_modname() + +local bark = "nc_tree_tree_side.png^[mask:nc_api_storebox_frame.png" + +local bamboo = "wc_naturae_bamboo.png^(nc_flora_wicker.png^[opacity:120)^(" .. bark .. ")" + +minetest.register_node(modname .. ":shelf_bamboo", { + description = "Bamboo Basket", + tiles = {bamboo, bamboo, bark}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + choppy = 2, + visinv = 1, + flammable = 2, + fire_fuel = 3, + storebox = 1, + totable = 1, + scaling_time = 50 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_tree_sticky"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_bamboo" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "assemble bamboo basket", + action = "stackapply", + indexkeys = {"nc_woodwork:form"}, + wield = {name = "wc_naturae:bamboo_pole"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_woodwork:form", empty = true}, + replace = modname .. ":shelf_bamboo" + }, + } + }) diff --git a/battery.lua b/battery.lua new file mode 100644 index 0000000..ec86fdd --- /dev/null +++ b/battery.lua @@ -0,0 +1,38 @@ +-- LUALOCALS < --------------------------------------------------------- +local minetest, nodecore + = minetest, nodecore +-- LUALOCALS > --------------------------------------------------------- + +local modname = minetest.get_current_modname() + +local form = "nc_lode_annealed.png^[mask:nc_api_storebox_frame.png" + +local side = "nc_lode_annealed.png^(" .. form .. ")" + +local acid = "wc_meltdown_corrosive.png^(" ..form.. ")" + +minetest.register_node(modname .. ":shelf_acid", { + description = "Corrosive Battery", + tiles = {side, side, acid}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + cracky = 4, + visinv = 1, + storebox = 2, + totable = 1, + scaling_time = 50, + corrosive = 1, + falling_node = 1 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_lode_annealed"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_acid" then + return nodecore.stack_get(pos) + end + end + }) + + diff --git a/ilmenite.lua b/ilmenite.lua new file mode 100644 index 0000000..73ff491 --- /dev/null +++ b/ilmenite.lua @@ -0,0 +1,47 @@ +-- LUALOCALS < --------------------------------------------------------- +local minetest, nodecore + = minetest, nodecore +-- LUALOCALS > --------------------------------------------------------- + +local modname = minetest.get_current_modname() + +local form = "nc_lode_annealed.png^[mask:nc_api_storebox_frame.png" + +local ilmenite = "block_ilmenite.png^(" .. form .. ")" + +minetest.register_node(modname .. ":shelf_ilmenite", { + description = "Ilmenite Cauldron", + tiles = {ilmenite, ilmenite, form}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + cracky = 3, + visinv = 1, + storebox = 3, + totable = 1, + scaling_time = 50, + lux_absorb = 20, + }, + paramtype = "light", + sounds = nodecore.sounds("nc_luxgate_ilmenite"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_ilmenite" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "assemble ilmenite cauldron", + action = "stackapply", + indexkeys = {"nc_lode:form"}, + wield = {name = "nc_luxgate:block_ilmenite"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_lode:form", empty = true}, + replace = modname .. ":shelf_ilmenite" + }, + } + }) diff --git a/plumbum.lua b/plumbum.lua new file mode 100644 index 0000000..16c8f09 --- /dev/null +++ b/plumbum.lua @@ -0,0 +1,49 @@ +-- LUALOCALS < --------------------------------------------------------- +local minetest, nodecore + = minetest, nodecore +-- LUALOCALS > --------------------------------------------------------- + +local modname = minetest.get_current_modname() + +local form = "nc_optics_glass_edges.png^[colorize:plum:100^(nc_lode_annealed.png^[mask:nc_optics_tank_mask.png)" + +local plum = "(nc_optics_glass_glare.png^[colorize:plum:100)^(" .. form .. ")" + +minetest.register_node(modname .. ":shelf_plum", { + description = "Plum Glass Case", + tiles = {plum, plum, form}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + cracky = 3, + visinv = 1, + storebox = 2, + totable = 1, + scaling_time = 50, + silica = 1, + silica_clear = 1, + lux_absorb = 50, + }, + paramtype = "light", + sounds = nodecore.sounds("nc_optics_glassy"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_plum" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "assemble plum glass case", + action = "stackapply", + indexkeys = {"nc_lode:form"}, + wield = {name = "wc_plumbum:glass"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_lode:form", empty = true}, + replace = modname .. ":shelf_plum" + }, + } + }) diff --git a/thorns.lua b/thorns.lua new file mode 100644 index 0000000..f82dc03 --- /dev/null +++ b/thorns.lua @@ -0,0 +1,49 @@ +-- LUALOCALS < --------------------------------------------------------- +local minetest, nodecore + = minetest, nodecore +-- LUALOCALS > --------------------------------------------------------- + +local modname = minetest.get_current_modname() + +local bark = "nc_tree_tree_side.png^[mask:nc_api_storebox_frame.png" + +local thorn = "wc_naturae_thornbriar.png^(" .. bark .. ")" + +minetest.register_node(modname .. ":shelf_thorns", { + description = "Thorny Basket", + tiles = {thorn, thorn, bark}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + snappy = 1, + visinv = 1, + flammable = 2, + fire_fuel = 3, + storebox = 1, + totable = 1, + scaling_time = 50, + damage_touch = 1 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_terrain_swishy"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_thorns" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "assemble thorny basket", + action = "stackapply", + indexkeys = {"nc_woodwork:form"}, + wield = {name = "nc_tree:stick"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_woodwork:form", empty = true}, + replace = modname .. ":shelf_thorns" + }, + } + })