Add files via upload
This commit is contained in:
parent
de125e5b04
commit
314e30de52
26
init.lua
Normal file
26
init.lua
Normal file
@ -0,0 +1,26 @@
|
||||
-- LUALOCALS < ---------------------------------------------------------
|
||||
local include, nodecore
|
||||
= include, nodecore
|
||||
-- LUALOCALS > ---------------------------------------------------------
|
||||
|
||||
include("wicker")
|
||||
include("thatch")
|
||||
include("floral")
|
||||
|
||||
include("crude")
|
||||
include("chromatic")
|
||||
|
||||
include("carton")
|
||||
|
||||
include("cauldron_annealed")
|
||||
include("cauldron_tempered")
|
||||
|
||||
include("hotbox")
|
||||
|
||||
include("ilmenite")
|
||||
include("plumbum")
|
||||
include("bamboo")
|
||||
include("thorns")
|
||||
include("adamant")
|
||||
include("battery")
|
||||
|
5
mod.conf
Normal file
5
mod.conf
Normal file
@ -0,0 +1,5 @@
|
||||
depends = nc_api_all, nc_woodwork, nc_flora, nc_tree, nc_optics, nc_lode, nc_igneous
|
||||
author = Winter94
|
||||
description = Adds More Storage Containers to NodeCore
|
||||
name = wc_storage
|
||||
|
49
thatch.lua
Normal file
49
thatch.lua
Normal file
@ -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 wick = "nc_flora_thatch.png^(" .. bark .. ")"
|
||||
|
||||
minetest.register_node(modname .. ":shelf_thatch", {
|
||||
description = "Rattan Basket",
|
||||
-- tiles = {bark, wick},
|
||||
tiles = {wick, wick, 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
|
||||
},
|
||||
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_thatch" then
|
||||
return nodecore.stack_get(pos)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
nodecore.register_craft({
|
||||
label = "assemble thatch basket",
|
||||
action = "stackapply",
|
||||
indexkeys = {"nc_woodwork:form"},
|
||||
wield = {name = "nc_flora:thatch"},
|
||||
consumewield = 1,
|
||||
nodes = {
|
||||
{
|
||||
match = {name = "nc_woodwork:form", empty = true},
|
||||
replace = modname .. ":shelf_thatch"
|
||||
},
|
||||
}
|
||||
})
|
49
wicker.lua
Normal file
49
wicker.lua
Normal file
@ -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 wick = "nc_flora_wicker.png^(" .. bark .. ")"
|
||||
|
||||
minetest.register_node(modname .. ":shelf_wicker", {
|
||||
description = "Wicker Basket",
|
||||
-- tiles = {bark, wick},
|
||||
tiles = {wick, wick, 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
|
||||
},
|
||||
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_wicker" then
|
||||
return nodecore.stack_get(pos)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
nodecore.register_craft({
|
||||
label = "assemble wicker basket",
|
||||
action = "stackapply",
|
||||
indexkeys = {"nc_woodwork:form"},
|
||||
wield = {name = "nc_flora:wicker"},
|
||||
consumewield = 1,
|
||||
nodes = {
|
||||
{
|
||||
match = {name = "nc_woodwork:form", empty = true},
|
||||
replace = modname .. ":shelf_wicker"
|
||||
},
|
||||
}
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user