diff options
Diffstat (limited to 'extranodes/init.lua')
-rw-r--r-- | extranodes/init.lua | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/extranodes/init.lua b/extranodes/init.lua index eb54067..69cb820 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -3,6 +3,23 @@ -- Boilerplate to support localized strings if intllib mod is installed. local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end +-- some extras to the extras +local path = string.gsub(technic.modpath, "technic/technic", "technic/extranodes") +dofile(path.."/aspirin.lua") +dofile(path.."/trampoline.lua") +dofile(path.."/extratubes.lua") +dofile(path.."/extramesecons.lua") +dofile(path.."/lox.lua") + +if minetest.get_modpath("bakedclay") then + -- bring back them sticks + minetest.register_craft( { + type = "shapeless", + output = "default:stick", + recipe = {"default:dry_shrub"} + }) +end + if minetest.get_modpath("moreblocks") then -- register stairsplus/circular_saw nodes @@ -107,6 +124,7 @@ local iclip_def = { drawtype = "mesh", mesh = "technic_insulator_clip.obj", tiles = {"technic_insulator_clip.png"}, + paramtype2 = "facedir", is_ground_content = false, groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1 }, sounds = default.node_sound_stone_defaults(), @@ -185,3 +203,69 @@ minetest.register_craft({ { "technic:raw_latex", "default:fence_wood", "technic:raw_latex"}, } }) + +-- Artificial diamonds + +minetest.register_craftitem(":technic:diamond_seed", { + description = S("Diamond Seed"), + inventory_image = "technic_diamond_seed.png", +}) + +minetest.register_craft({ + type = "cooking", + output = "technic:diamond_seed", + recipe = "technic:graphite" +}) + +-- Cotton seed oil: fuel and fertilizer + +if minetest.get_modpath("farming") then + if minetest.get_modpath("bonemeal") then + minetest.register_craftitem(":technic:cottonseed_oil", { + description = S("Cottonseed Oil"), + inventory_image = "technic_cottonseed_oil.png", + on_use = function(itemstack, user, pointed_thing) + if pointed_thing.type ~= "node" then + return + end + if minetest.is_protected(pointed_thing.under, user:get_player_name()) then + return + end + if not is_creative(user:get_player_name()) then + itemstack:take_item() + end + bonemeal:on_use(pointed_thing.under, 4) + return itemstack + end, + }) + else + minetest.register_craftitem(":technic:cottonseed_oil", { + description = S("Cottonseed Oil"), + inventory_image = "technic_cottonseed_oil.png", + }) + end + + minetest.register_craft({ + type = "fuel", + recipe = "technic:cottonseed_oil", + burntime = 20, + }) + +end + + +-- -- Additional recipe for straw blocks out of straw mat from cottages (if present) +-- -- not to let the centifuge output go to waste, since farming:straw can be used with a saw... +-- +-- if minetest.get_modpath("cottages") and minetest.get_modpath("farming") then +-- minetest.register_craft({ +-- output = "farming:straw 2", +-- recipe = { +-- { "cottages:straw_mat", "cottages:straw_mat", "cottages:straw_mat" }, +-- { "cottages:straw_mat", "cottages:straw_mat", "cottages:straw_mat" }, +-- { "cottages:straw_mat", "cottages:straw_mat", "cottages:straw_mat" }, +-- } +-- }) +-- end + + |