Attempt to upload before storm kills signal str

This commit is contained in:
wintersknight94 2022-01-15 12:57:50 -06:00 committed by GitHub
parent 5963ec00ae
commit 39b046ef4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 509 additions and 9 deletions

View File

@ -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"
},
}
})

View File

@ -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(),
@ -33,8 +33,32 @@ minetest.register_node(modname .. ":shelf_bamboo", {
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"
},
}
})

150
barrel.lua Normal file
View File

@ -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}
}
})

194
barrel_lode.lua Normal file
View File

@ -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"
},
}
})

View File

@ -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,

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B