* convert to `minetest.get_translator` * fix material translation * fix material translation * Revert "fix material translation" This reverts commit 35d0979d5828f481b6e53c04f20739983ba35087. * update */locale/* * `S("Chernobylite Block")` * restore non-breaking spaces * fix technic_chests/spec/api_spec.lua * fix S(...) * update technic/locale/ * update german translations * fix placeholder `%s` in *.zh_CN.tr translations
35 lines
1.2 KiB
Lua
35 lines
1.2 KiB
Lua
|
|
local modpath = minetest.get_modpath("technic_worldgen")
|
|
|
|
technic = rawget(_G, "technic") or {}
|
|
technic.worldgen = {
|
|
gettext = minetest.get_translator(minetest.get_current_modname())
|
|
}
|
|
|
|
dofile(modpath.."/config.lua")
|
|
dofile(modpath.."/nodes.lua")
|
|
dofile(modpath.."/oregen.lua")
|
|
dofile(modpath.."/crafts.lua")
|
|
dofile(modpath.."/overrides.lua")
|
|
|
|
-- Rubber trees, moretrees also supplies these
|
|
if not minetest.get_modpath("moretrees") then
|
|
dofile(modpath.."/rubber.lua")
|
|
else
|
|
-- Older versions of technic provided rubber trees regardless
|
|
minetest.register_alias("technic:rubber_sapling", "moretrees:rubber_tree_sapling")
|
|
minetest.register_alias("technic:rubber_tree_empty", "moretrees:rubber_tree_trunk_empty")
|
|
end
|
|
|
|
-- mg suppport
|
|
if minetest.get_modpath("mg") then
|
|
dofile(modpath.."/mg.lua")
|
|
end
|
|
|
|
minetest.register_alias("technic:wrought_iron_ingot", "default:steel_ingot")
|
|
minetest.register_alias("technic:uranium", "technic:uranium_lump")
|
|
minetest.register_alias("technic:wrought_iron_block", "default:steelblock")
|
|
minetest.register_alias("technic:diamond_block", "default:diamondblock")
|
|
minetest.register_alias("technic:diamond", "default:diamond")
|
|
minetest.register_alias("technic:mineral_diamond", "default:stone_with_diamond")
|