small modifications

This commit is contained in:
ademant 2023-06-06 18:57:24 +00:00
parent 321c25a03f
commit 85176eb3cd
3 changed files with 16 additions and 4 deletions

View File

@ -1,8 +1,12 @@
-- craft raw oil lamp enclosures by using 8 clump of clay
-- this raw enclosure has to be burned to be stable
minetest.register_craft({
output = "oillamps:oillampraw 8",
recipe = {{"default:clay_lump","default:clay_lump","default:clay_lump"},{"default:clay_lump","","default:clay_lump"},{"default:clay_lump","default:clay_lump","default:clay_lump"}},
})
-- create a usable oil lamp by burning raw enclosures
minetest.register_craft({
output = "oillamps:oillampempty 1",
type = "cooking",
@ -15,6 +19,7 @@ minetest.register_craft({
recipe = {{"group:seed","group:seed"},{"group:seed","group:seed"}},
})
-- fill an empty oil lamp with oil extract
minetest.register_craft({
recipe = {{"basic_materials:oil_extract"},{"oillamps:oillampempty"}},
output = "oillamps:oillamp 1",

View File

@ -1,8 +1,15 @@
oillamps = {}
oillamps.mod = { author = "Andreas Demant" }
oillamps.modpath = minetest.get_modpath("oillamps")
oillamps = {
mod = {author = "Andreas Demant"},
modpath = minetest.get_modpath("oillamps"),
modname = minetest.get_current_modname(),
}
minetest.log("action", "[MOD]"..oillamps.modname.." -- start loading ")
dofile(oillamps.modpath .. "/nodes.lua")
dofile(oillamps.modpath .. "/craftitems.lua")
dofile(oillamps.modpath .. "/crafts.lua")
minetest.log("action", "[MOD]"..oillamps.modname.." -- end loading ")