From 39b046ef4da5f1a49bdb393cf81300ba4c00ea65 Mon Sep 17 00:00:00 2001 From: wintersknight94 <62315647+wintersknight94@users.noreply.github.com> Date: Sat, 15 Jan 2022 12:57:50 -0600 Subject: [PATCH] Attempt to upload before storm kills signal str --- adamant.lua | 127 ++++++++++++++++++- bamboo.lua | 42 ++++++- barrel.lua | 150 +++++++++++++++++++++++ barrel_lode.lua | 194 ++++++++++++++++++++++++++++++ battery.lua | 5 +- textures/wc_storage_band_mask.png | Bin 0 -> 106 bytes textures/wc_storage_knob_mask.png | Bin 0 -> 100 bytes 7 files changed, 509 insertions(+), 9 deletions(-) create mode 100644 barrel.lua create mode 100644 barrel_lode.lua create mode 100644 textures/wc_storage_band_mask.png create mode 100644 textures/wc_storage_knob_mask.png diff --git a/adamant.lua b/adamant.lua index c5e803e..4059eb2 100644 --- a/adamant.lua +++ b/adamant.lua @@ -7,11 +7,40 @@ local modname = minetest.get_current_modname() local form = "nc_lode_annealed.png^[mask:nc_api_storebox_frame.png" -local frost = "wc_adamant.png^(" .. form .. ")" +local grate = "nc_lode_annealed.png^[mask:nc_lode_shelf_base.png" + +local adamant = "wc_adamant.png^(" .. form .. ")" + +local lambent = "wc_adamant.png^((nc_lux_base.png^[mask:nc_lode_mask_molten.png)^[opacity:75)^(" .. form .. ")" + +local bottom = "wc_adamant.png^(nc_lux_base.png^[opacity:75)^(" .. form .. ")" minetest.register_node(modname .. ":shelf_adamant", { + description = "Adamant Shelf", + tiles = {form, adamant, grate}, + 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 + }) + +minetest.register_node(modname .. ":shelf_adamant_cauldron", { description = "Adamant Cauldron", - tiles = {frost, frost, form}, + tiles = {adamant, adamant, form}, selection_box = nodecore.fixedbox(), collision_box = nodecore.fixedbox(), groups = { @@ -26,12 +55,74 @@ minetest.register_node(modname .. ":shelf_adamant", { 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 + if minetest.get_node(pos).name == modname .. ":shelf_adamant_cauldron" then return nodecore.stack_get(pos) end end }) + +minetest.register_node(modname .. ":shelf_adamant_lux", { + description = "Lambent Adamant Cauldron", + tiles = {lambent, bottom, form}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + cracky = 5, + visinv = 1, + storebox = 4, + totable = 1, + scaling_time = 50, + lux_emit = 1 + }, + paramtype = "light", + light_source = 4, + 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_lux" then + return nodecore.stack_get(pos) + end + end + }) + +minetest.register_node(modname .. ":luxlamp", { + description = "Adamant Luxlamp", + tiles = {bottom}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + cracky = 5, + visinv = 1, + totable = 1, + scaling_time = 50, + lux_emit = 10 + }, + paramtype = "light", + light_source = 16, + 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 .. ":luxlamp" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "assemble adamant shelf", + action = "stackapply", + indexkeys = {"nc_lode:form"}, + wield = {name = "wc_adamant:shard"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_lode:form", empty = true}, + replace = modname .. ":shelf_adamant" + }, + } + }) + nodecore.register_craft({ label = "assemble adamant cauldron", action = "stackapply", @@ -41,7 +132,35 @@ nodecore.register_craft({ nodes = { { match = {name = "nc_lode:form", empty = true}, - replace = modname .. ":shelf_adamant" + replace = modname .. ":shelf_adamant_cauldron" + }, + } + }) + +nodecore.register_craft({ + label = "assemble lambent cauldron", + action = "stackapply", + indexkeys = {"nc_lode:form"}, + wield = {name = "wc_adamant:block_infused"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_lode:form", empty = true}, + replace = modname .. ":shelf_adamant_lux" + }, + } + }) + +nodecore.register_craft({ + label = "assemble adamant luxlamp", + action = "stackapply", + indexkeys = {modname.. ":shelf_adamant_lux"}, + wield = {name = "nc_optics:prism"}, + consumewield = 1, + nodes = { + { + match = {name = modname.. ":shelf_adamant_lux", empty = true}, + replace = modname .. ":luxlamp" }, } }) diff --git a/bamboo.lua b/bamboo.lua index 56bd853..5a341b5 100644 --- a/bamboo.lua +++ b/bamboo.lua @@ -9,7 +9,7 @@ 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", { +minetest.register_node(modname .. ":shelf_bamboo_basket", { description = "Bamboo Basket", tiles = {bamboo, bamboo, bark}, selection_box = nodecore.fixedbox(), @@ -32,9 +32,33 @@ minetest.register_node(modname .. ":shelf_bamboo", { end end }) + +minetest.register_node(modname .. ":shelf_bamboo", { + description = "Bamboo Shelf", + tiles = {bark, bamboo}, + 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", + label = "assemble bamboo shelf", action = "stackapply", indexkeys = {"nc_woodwork:form"}, wield = {name = "wc_naturae:bamboo_pole"}, @@ -46,3 +70,17 @@ nodecore.register_craft({ }, } }) + +nodecore.register_craft({ + label = "assemble bamboo basket", + action = "stackapply", + indexkeys = {modname.. ":shelf_bamboo"}, + wield = {name = "wc_naturae:bamboo_pole"}, + consumewield = 1, + nodes = { + { + match = {name = modname.. ":shelf_bamboo", empty = true}, + replace = modname .. ":shelf_bamboo_basket" + }, + } + }) diff --git a/barrel.lua b/barrel.lua new file mode 100644 index 0000000..1be2179 --- /dev/null +++ b/barrel.lua @@ -0,0 +1,150 @@ +-- LUALOCALS < --------------------------------------------------------- +local minetest, nodecore + = minetest, nodecore +-- LUALOCALS > --------------------------------------------------------- + +local modname = minetest.get_current_modname() + +local bark = "nc_tree_tree_top.png^[mask:nc_api_storebox_frame.png" + +local wood = "nc_tree_tree_side.png^(" .. bark .. ")" + +local knob = "nc_tree_tree_side.png^[mask:" ..modname.. "_knob_mask.png" + +local lid = "nc_woodwork_plank.png^(" .. bark .. ")^(" .. knob .. ")" + +local water = "nc_terrain_water.png^[verticalframe:32:8" + +local top = "(" ..water.. ")^(" ..bark.. ")" + +minetest.register_node(modname .. ":shelf_wood_barrel", { + description = "Wooden Barrel", + tiles = {wood, wood, bark}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + snappy = 1, + visinv = 1, + flammable = 2, + fire_fuel = 10, + storebox = 1, + totable = 1, + scaling_time = 50 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_tree_woody"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_wood_barrel" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "assemble wooden barrel", + action = "stackapply", + indexkeys = {"nc_woodwork:form"}, + wield = {name = "nc_tree:log"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_woodwork:form", empty = true}, + replace = modname .. ":shelf_wood_barrel" + }, + } + }) + +minetest.register_node(modname .. ":shelf_wood_barrel_lid", { + description = "Closed Wooden Barrel", + tiles = {wood, wood, lid}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + snappy = 1, + visinv = 1, + flammable = 10, + fire_fuel = 3, + storebox = 1, + totable = 1, + scaling_time = 45 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_tree_woody"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_wood_barrel_lid" then + return nodecore.stack_get(pos) + end + end + }) + +minetest.register_node(modname .. ":shelf_water_barrel", { + description = "Water Barrel", + tiles = {wood, wood, top}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + snappy = 1, + visinv = 1, + flammable = 30, + fire_fuel = 3, + storebox = 1, + totable = 1, + scaling_time = 45, + coolant = 1, + moist = 1 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_tree_woody"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_water_barrel" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "put lid on wooden barrel", + action = "stackapply", + indexkeys = {"wc_storage:shelf_wood_barrel"}, + wield = {name = "nc_woodwork:plank"}, --"nc_woodwork:toolhead_mallet" causes unsolved duplication bug + consumewield = 1, + nodes = { + { + match = {name = "wc_storage:shelf_wood_barrel", empty = true}, + replace = modname .. ":shelf_wood_barrel_lid" + }, + } + }) + +nodecore.register_craft({ + label = "fill water barrel", + action = "stackapply", + indexkeys = {"wc_storage:shelf_wood_barrel"}, + wield = {name = "nc_sponge:sponge_wet"}, + consumewield = 1, + nodes = { + { + match = {name = "wc_storage:shelf_wood_barrel", empty = true}, + replace = modname .. ":shelf_water_barrel" + }, + } + }) + +nodecore.register_craft({ + label = "remove lid from wooden barrel", + action = "pummel", + indexkeys = {modname.. ":shelf_wood_barrel_lid"}, + toolgroups = {choppy = 2}, + nodes = { + { + match = {name = modname.. ":shelf_wood_barrel_lid", empty = true}, + replace = modname .. ":shelf_wood_barrel" + }, + }, + items = { + {name = "nc_woodwork:toolhead_mallet", count = 1} + } + }) diff --git a/barrel_lode.lua b/barrel_lode.lua new file mode 100644 index 0000000..15844e9 --- /dev/null +++ b/barrel_lode.lua @@ -0,0 +1,194 @@ +-- 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 band = "nc_lode_annealed.png^[mask:" ..modname.. "_band_mask.png" + +local wood = "nc_tree_tree_side.png^(" .. band .. ")" + +local open = "nc_tree_tree_side.png^(" .. form .. ")" + +local knob = "nc_lode_annealed.png^[mask:" ..modname.. "_knob_mask.png" + +local lid = "nc_woodwork_plank.png^(" .. form .. ")^(" .. knob .. ")" + +local water = "nc_terrain_water.png^[verticalframe:32:8" + +local top = "(" ..water.. ")^(" ..form.. ")" + + +minetest.register_node(modname .. ":shelf_lode_barrel", { + description = "Reinforced Wooden Barrel", + tiles = {wood, open, form}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + snappy = 1, + visinv = 1, + flammable = 20, + fire_fuel = 8, + storebox = 2, + totable = 1, + scaling_time = 50 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_tree_woody"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_lode_barrel" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "assemble reinforced barrel", + action = "stackapply", + indexkeys = {"nc_lode:form"}, + wield = {name = "nc_tree:log"}, + consumewield = 1, + nodes = { + { + match = {name = "nc_lode:form", empty = true}, + replace = modname .. ":shelf_lode_barrel" + }, + } + }) + +minetest.register_node(modname .. ":shelf_lode_barrel_lid", { + description = "Closed Reinforced Wooden Barrel", + tiles = {wood, wood, lid}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + snappy = 1, + visinv = 1, + flammable = 25, + fire_fuel = 8, + storebox = 2, + totable = 1, + scaling_time = 45 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_tree_woody"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_lode_barrel_lid" then + return nodecore.stack_get(pos) + end + end + }) + +minetest.register_node(modname .. ":shelf_lode_barrel_sealed", { + description = "Sealed Reinforced Wooden Barrel", + tiles = {wood, wood, lid}, + color = "gray", + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + snappy = 1, + visinv = 1, + flammable = 15, + fire_fuel = 8, + storebox = 2, + totable = 1, + scaling_time = 50 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_tree_woody"), + storebox_access = function(pt) return nil end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_lode_barrel_sealed" then + return nodecore.stack_get(pos) + end + end + }) + +minetest.register_node(modname .. ":shelf_lode_barrel_water", { + description = "Reinforced Water Barrel", + tiles = {wood, wood, top}, + selection_box = nodecore.fixedbox(), + collision_box = nodecore.fixedbox(), + groups = { + snappy = 1, + visinv = 1, + flammable = 35, + fire_fuel = 3, + storebox = 1, + totable = 1, + scaling_time = 45, + coolant = 1, + moist = 1 + }, + paramtype = "light", + sounds = nodecore.sounds("nc_tree_woody"), + storebox_access = function(pt) return pt.above.y > pt.under.y end, + on_ignite = function(pos) + if minetest.get_node(pos).name == modname .. ":shelf_lode_barrel_water" then + return nodecore.stack_get(pos) + end + end + }) + +nodecore.register_craft({ + label = "put lid on reinforced barrel", + action = "stackapply", + indexkeys = {"wc_storage:shelf_lode_barrel"}, + wield = {name = "nc_woodwork:plank"}, --"nc_woodwork:toolhead_mallet" causes unsolved duplication bug + consumewield = 1, + nodes = { + { + match = {name = "wc_storage:shelf_lode_barrel", empty = true}, + replace = modname .. ":shelf_lode_barrel_lid" + }, + } + }) + +nodecore.register_craft({ + label = "remove lid from reinforced barrel", + action = "pummel", + indexkeys = {modname.. ":shelf_lode_barrel_lid"}, + toolgroups = {choppy = 2}, + nodes = { + { + match = {name = modname.. ":shelf_lode_barrel_lid", empty = true}, + replace = modname .. ":shelf_lode_barrel" + }, + }, + items = { + {name = "nc_woodwork:toolhead_mallet", count = 1} + } + }) + +nodecore.register_craft({ + label = "fill reinforced water barrel", + action = "stackapply", + indexkeys = {"wc_storage:shelf_lode_barrel"}, + wield = {name = "nc_sponge:sponge_wet"}, + consumewield = 1, + nodes = { + { + match = {name = "wc_storage:shelf_lode_barrel", empty = true}, + replace = modname .. ":shelf_lode_barrel_water" + }, + } + }) + +nodecore.register_craft({ + label = "seal reinforced barrel", + action = "stackapply", + indexkeys = {"wc_storage:shelf_lode_barrel_lid"}, + wield = {name = "nc_fire:coal8"}, + consumewield = 1, + nodes = { + { + match = {name = "wc_storage:shelf_lode_barrel_lid", empty = true}, + replace = modname .. ":shelf_lode_barrel_sealed" + }, + } + }) diff --git a/battery.lua b/battery.lua index ec86fdd..3d33b4a 100644 --- a/battery.lua +++ b/battery.lua @@ -11,15 +11,14 @@ local side = "nc_lode_annealed.png^(" .. form .. ")" local acid = "wc_meltdown_corrosive.png^(" ..form.. ")" -minetest.register_node(modname .. ":shelf_acid", { +minetest.register_node(modname .. ":battery", { description = "Corrosive Battery", - tiles = {side, side, acid}, + tiles = {acid, side, side}, selection_box = nodecore.fixedbox(), collision_box = nodecore.fixedbox(), groups = { cracky = 4, visinv = 1, - storebox = 2, totable = 1, scaling_time = 50, corrosive = 1, diff --git a/textures/wc_storage_band_mask.png b/textures/wc_storage_band_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..6771927a245c55be30f48d6dd0eeb8e1b8245132 GIT binary patch literal 106 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`EX7WqAsj$Z!;#Vf