Bugfix Marathon - Didnt Denote

This commit is contained in:
wintersknight94 2024-09-12 11:50:58 -05:00 committed by GitHub
parent 75acb38c66
commit c14710469d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 147 additions and 94 deletions

View File

@ -48,6 +48,7 @@ minetest.register_node(modname .. ":shelf_wood_barrel", {
fire_fuel = 10,
storebox = 1,
totable = 1,
basketable = 1,
scaling_time = 50
},
paramtype = "light",

View File

@ -2,15 +2,26 @@
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.. ")"
------------------------------------------------------------------------
local function findacid(pos)
return nodecore.find_nodes_around(pos, "group:caustic_fluid")
end
------------------------------------------------------------------------
local function soakup(pos)
local any
for _, p in pairs(findacid(pos)) do
nodecore.node_sound(p, "dig")
minetest.remove_node(p)
any = true
end
return any
end
-- ================================================================== --
minetest.register_node(modname .. ":battery", {
description = "Corrosive Battery",
tiles = {acid, side, side},
@ -25,12 +36,44 @@ minetest.register_node(modname .. ":battery", {
},
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)
})
-- ================================================================== --
minetest.register_abm({
label = "fill cauldron with acid",
interval = 1,
chance = 10,
nodenames = {modname .. ":shelf_cauldron_annealed"},
neighbors = {"group:caustic_fluid"},
action = function(pos)
if soakup(pos) then
nodecore.set_loud(pos, {name = modname .. ":battery"})
return nodecore.fallcheck(pos)
end
end
})
nodecore.register_aism({
label = "stack fill acid cauldron",
interval = 1,
chance = 10,
itemnames = {modname .. ":shelf_cauldron_annealed"},
action = function(stack, data)
if data.pos and soakup(data.pos) then
local taken = stack:take_item(1)
taken:set_name(modname .. ":battery")
if data.inv then taken = data.inv:add_item("main", taken) end
if not taken:is_empty() then nodecore.item_eject(data.pos, taken) end
return stack
end
end
})
-- ================================================================== --
nodecore.register_ambiance({
label = "battery ambiance",
nodenames = {modname.. ":battery"},
neighbors = {"air"},
interval = 20,
chance = 20,
sound_name = "nc_terrain_bubbly",
sound_gain = 0.2
})

View File

@ -63,16 +63,16 @@ minetest.register_node(modname .. ":shelf_cats_barrel", {
})
--nodecore.register_craft({
-- label = "assemble litter basket",
-- action = "stackapply",
-- indexkeys = {modname.. ":shelf_thatch"},
-- wield = {name = "nc_concrete:aggregate"},
-- consumewield = 1,
-- nodes = {
-- {
-- match = {name = modname.. ":shelf_thatch", empty = true},
-- replace = modname .. ":shelf_catbox"
-- },
-- }
-- })
nodecore.register_craft({
label = "assemble litter basket",
action = "stackapply",
indexkeys = {modname.. ":shelf_thatch"},
wield = {name = "nc_concrete:aggregate"},
consumewield = 1,
nodes = {
{
match = {name = modname.. ":shelf_thatch", empty = true},
replace = modname .. ":shelf_catbox"
},
}
})

View File

@ -21,6 +21,7 @@ minetest.register_node(modname .. ":flowerpot", {
flammable = 30,
fire_fuel = 6,
totable = 1,
basketable = 1,
scaling_time = 60,
moist = 1,
soil = 3

View File

@ -21,6 +21,7 @@ minetest.register_node(modname .. ":composter", {
flammable = 30,
fire_fuel = 6,
totable = 1,
basketable = 1,
scaling_time = 60,
moist = 1,
soil = 4,

View File

@ -25,7 +25,7 @@ include("shelf_lode") --NodeCore Alpha
include("powderkeg") --NodeCore Alpha
include("hotbox") --NodeCore Alpha
if minetest.get_modpath("nc_pummine") then
if minetest.get_modpath("nc_pummine") or minetest.get_modpath("wc_vulcan") then
include("pumice")
include("shrapnel")
end

View File

@ -1,6 +1,8 @@
depends = nc_api_all, nc_woodwork, nc_flora, nc_tree, nc_optics, nc_lode, nc_igneous, nc_lux
optional_depends = nc_cats, nc_luxgate, nc_sharks, euthamia, yctie, nc_pummine, nc_pumbob, wc_adamant, wc_naturae, wc_plumbum, wc_quicksilver, wc_meltdown
author = Winter94
description = Adds More Storage Containers to NodeCore
name = wc_storage
depends = nc_api_all, nc_woodwork, nc_flora, nc_tree, nc_optics, nc_lode, nc_igneous, nc_lux, wc_basket
optional_depends = nc_cats, nc_luxgate, nc_sharks, euthamia, yctie, nc_pummine, nc_pumbob, wc_adamant, wc_naturae, wc_plumbum, wc_quicksilver, wc_meltdown
author = Winter94
description = Adds More Storage Containers to NodeCore
name = wc_storage
title = NC More Storage

View File

@ -7,38 +7,34 @@ local modname = minetest.get_current_modname()
local form = "nc_optics_glass_edges.png^(nc_tree_tree_side.png^[mask:nc_optics_tank_mask.png)"
local glass = "nc_optics_glass_glare.png^(" .. form .. ")"
local glass = "nc_optics_glass_glare.png" --^(" .. form .. ")"
local sponge = "nc_sponge.png^nc_sponge_living.png^(nc_terrain_water.png^[opacity:96)"
local side = "("..sponge..")^("..glass..")^("..form..")"
local side = "("..sponge..")^("..glass..")" --^("..form..")"
minetest.register_node(modname .. ":shelf_sponge", {
description = "Aquarium",
tiles = {side},
selection_box = nodecore.fixedbox(),
collision_box = nodecore.fixedbox(),
groups = {
cracky = 3,
totable = 1,
scaling_time = 60,
silica = 1,
silica_clear = 1,
moist = 1,
coolant = 1,
flammable = 60,
fire_fuel = 2
},
paramtype = "light",
sunlight_propagates = true,
air_pass = false,
sounds = nodecore.sounds("nc_optics_glassy"),
on_ignite = function(pos)
if minetest.get_node(pos).name == modname .. ":shelf_sponge" then
return nodecore.stack_get(pos)
end
end
})
description = "Aquarium",
tiles = {form, side},
drawtype = "glasslike_framed",
selection_box = nodecore.fixedbox(),
collision_box = nodecore.fixedbox(),
groups = {
cracky = 3,
totable = 1,
scaling_time = 60,
silica = 1,
silica_clear = 1,
moist = 1,
coolant = 1,
stack_as_node = 1,
},
paramtype = "light",
stack_max = 1,
sunlight_propagates = true,
air_pass = false,
sounds = nodecore.sounds("nc_optics_glassy")
})
nodecore.register_craft({
label = "assemble aquarium",

View File

@ -24,7 +24,7 @@ minetest.register_node(modname .. ":shelf_thorns", {
totable = 1,
basketable = 1,
scaling_time = 50,
damage_touch = 1
-- damage_touch = 1
},
paramtype = "light",
damage_per_second = 1,

View File

@ -39,46 +39,55 @@ temper("tempered", "Tempered", "nc_lode_tempered", false, 0)
temper("hot", "Glowing", "nc_lode_annealed", true, 0)
nodecore.register_craft({
label = "heat lode toolrack",
action = "cook",
touchgroups = {flame = 3},
duration = 30,
cookfx = true,
indexkeys = {"group:lode_toolrack"},
nodes = {
{
match = {groups = {lode_toolrack = true}},
replace = modname .. ":shelf_toolrack_hot"
}
label = "heat lode toolrack",
action = "cook",
touchgroups = {flame = 3},
duration = 30,
cookfx = true,
indexkeys = {"group:lode_toolrack"},
nodes = {
{
match = {groups = {lode_toolrack = true}},
replace = modname .. ":shelf_toolrack_hot"
}
})
}
})
nodecore.register_craft({
label = "assemble toolrack",
action = "stackapply",
indexkeys = {"nc_lode:form"},
wield = {name = "nc_lode:prill_annealed"},
consumewield = 1,
nodes = {
{
match = {name = "nc_lode:form", empty = true},
replace = modname .. ":shelf_toolrack_annealed"
},
}
})
label = "assemble toolrack",
action = "stackapply",
indexkeys = {"nc_lode:form"},
wield = {name = "nc_lode:prill_annealed"},
consumewield = 1,
nodes = {
{
match = {name = "nc_lode:form", empty = true},
replace = modname .. ":shelf_toolrack_annealed"
},
}
})
nodecore.register_craft({
label = "assemble tempered toolrack",
action = "stackapply",
indexkeys = {"nc_lode:form"},
wield = {name = "nc_lode:prill_tempered"},
consumewield = 1,
nodes = {
{
match = {name = "nc_lode:form", empty = true},
replace = modname .. ":shelf_toolrack_tempered"
},
}
})
label = "assemble tempered toolrack",
action = "stackapply",
indexkeys = {"nc_lode:form"},
wield = {name = "nc_lode:prill_tempered"},
consumewield = 1,
nodes = {
{
match = {name = "nc_lode:form", empty = true},
replace = modname .. ":shelf_toolrack_tempered"
},
}
})
nodecore.register_craft({
label = "disassemble toolrack",
action = "pummel",
duration = 4,
toolgroups = {choppy = 5},
indexkeys = {modname..":shelf_toolrack_annealed"},
nodes = {{match = {name = modname..":shelf_toolrack_annealed", empty = true}, replace = "nc_lode:form"}},
items = {{name = "nc_lode:prill_annealed", count = 1, scatter = 2}}
})