Page MenuHome1F616EMO Bugtracker

No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None
diff --git a/basic_materials_mod/init.lua b/basic_materials_mod/init.lua
index 32e2c9a..8df3ed1 100644
--- a/basic_materials_mod/init.lua
+++ b/basic_materials_mod/init.lua
@@ -1,93 +1,97 @@
-- twi_mods/basic_materials_mod/init.lua
-- Basic Materials Modifications
--[[
Copyright (C) 2024 1F616EMO
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
]]
local S = minetest.get_translator("basic_materials_mod")
-- Eliminate the need of padlocks, use steel ingot instead
minetest.register_alias_force("basic_materials:padlock", "default:steel_ingot")
minetest.clear_craft({
output = "basic_materials:padlock 2",
recipe = {
{ "basic_materials:steel_bar" },
{ "default:steel_ingot" },
{ "default:steel_ingot" },
},
})
+minetest.override_item("basic_materials:oil_extract", {
+ inventory_image = "twi_oil_extract.png", -- From pipeworks not homedecor
+})
+
-- Remove the intermediate process of oil -> paraffin -> plastic
minetest.register_alias_force("basic_materials:paraffin", "basic_materials:plastic_sheet")
minetest.clear_craft({
type = "cooking",
output = "basic_materials:plastic_sheet",
recipe = "basic_materials:paraffin",
})
minetest.clear_craft({
type = "cooking",
output = "basic_materials:paraffin",
recipe = "basic_materials:oil_extract",
})
minetest.register_craft({
type = "cooking",
output = "basic_materials:plastic_sheet",
recipe = "basic_materials:oil_extract",
cooktime = 6, -- Double the original
})
minetest.override_item("basic_materials:oil_extract", {
_doc_items_longdesc = S("Oil extracted from leaves."),
_doc_items_usagehelp = S("Crafted from 6 leaves. This can be processed into plastic by smelting.")
})
minetest.override_item("basic_materials:plastic_sheet", {
_doc_items_longdesc = S("Plastic for machine crafting."),
_doc_items_usagehelp = S("Produced by smelting oil extracts. This is useful in crafting high-tech items.")
})
-- Remove the need of wire spool
local wire_ingot_pair = {
-- default
["basic_materials:steel_wire"] = "default:steel_ingot",
["basic_materials:copper_wire"] = "default:copper_ingot",
["basic_materials:gold_wire"] = "default:gold_ingot",
-- technic
["basic_materials:stainless_steel_wire"] = "technic:stainless_steel_ingot",
-- moreores
["basic_materials:silver_wire"] = "moreores:silver_ingot",
}
minetest.register_alias_force("basic_materials:empty_spool", "")
minetest.clear_craft({
output = "basic_materials:empty_spool 3",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "", "basic_materials:plastic_sheet", "" },
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
},
})
for wire, ingot in pairs(wire_ingot_pair) do
minetest.register_alias_force(wire, ingot)
minetest.clear_craft({
output = wire .. " 2",
type = "shapeless",
recipe = {
ingot,
"basic_materials:empty_spool",
"basic_materials:empty_spool",
},
})
end
diff --git a/basic_materials_mod/textures/twi_oil_extract.png b/basic_materials_mod/textures/twi_oil_extract.png
new file mode 100644
index 0000000..b945a9e
Binary files /dev/null and b/basic_materials_mod/textures/twi_oil_extract.png differ

File Metadata

Mime Type
text/x-diff
Expires
Thu, Apr 16, 12:07 PM (1 d, 12 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f4/1f/c28f39846769522b195c3e08f048
Default Alt Text
(4 KB)

Event Timeline