Merge remote-tracking branch 'zefram/zefram/centrifuge'

This commit is contained in:
Vanessa Ezekowitz
2014-07-30 15:36:27 -04:00
46 changed files with 273 additions and 64 deletions

View File

@ -0,0 +1,15 @@
technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf")
local conf_table = technic.config:to_table()
local defaults = {
enable_granite_generation = "true",
enable_marble_generation = "true",
enable_rubber_tree_generation = "true",
}
for k, v in pairs(defaults) do
if conf_table[k] == nil then
technic.config:set(k, v)
end
end

View File

@ -1,11 +1,19 @@
local S = technic.worldgen.gettext
minetest.register_craftitem(":technic:uranium", {
description = S("Uranium"),
inventory_image = "technic_uranium.png",
minetest.register_craftitem(":technic:uranium_lump", {
description = S("Uranium Lump"),
inventory_image = "technic_uranium_lump.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_alias("technic:uranium", "technic:uranium_lump")
minetest.register_craftitem(":technic:uranium_ingot", {
description = S("Uranium Ingot"),
inventory_image = "technic_uranium_ingot.png",
on_place_on_ground = minetest.craftitem_place_item,
groups = {uranium_ingot=1},
})
minetest.register_craftitem(":technic:chromium_lump", {
description = S("Chromium Lump"),
@ -74,7 +82,7 @@ local function register_block(block, ingot)
})
end
register_block("technic:uranium_block", "technic:uranium")
register_block("technic:uranium_block", "technic:uranium_ingot")
register_block("technic:chromium_block", "technic:chromium_ingot")
register_block("technic:zinc_block", "technic:zinc_ingot")
register_block("technic:brass_block", "technic:brass_ingot")
@ -94,6 +102,12 @@ minetest.register_craft({
output = "technic:chromium_ingot",
})
minetest.register_craft({
type = 'cooking',
recipe = "technic:uranium_lump",
output = "technic:uranium_ingot",
})
minetest.register_craft({
type = 'cooking',
recipe = minetest.registered_aliases["technic:wrought_iron_ingot"],

View File

@ -1,4 +1,3 @@
default
technic
intllib?
mg?

View File

@ -1,5 +1,6 @@
local modpath = minetest.get_modpath("technic_worldgen")
technic = technic or {}
technic.worldgen = {}
if intllib then
technic.worldgen.gettext = intllib.Getter()
@ -7,6 +8,7 @@ else
technic.worldgen.gettext = function(s) return s end
end
dofile(modpath.."/config.lua")
dofile(modpath.."/nodes.lua")
dofile(modpath.."/oregen.lua")
dofile(modpath.."/crafts.lua")

View File

@ -3,7 +3,8 @@
# by Xanthin
## crafts.lua
Uranium = Uran
Uranium Lump = Uranklumpen
Uranium Ingot = Uranbarren
Chromium Lump = Chromklumpen
Chromium Ingot = Chrombarren
Zinc Lump = Zinkklumpen

View File

@ -2,7 +2,8 @@
# technic_worldgen translation template
###crafts.lua
Uranium =
Uranium Lump =
Uranium Ingot =
Chromium Lump =
Chromium Ingot =
Zinc Lump =

View File

@ -7,7 +7,7 @@ minetest.register_node( ":technic:mineral_uranium", {
is_ground_content = true,
groups = {cracky=3, radioactive=1},
sounds = default.node_sound_stone_defaults(),
drop = 'craft "technic:uranium" 1',
drop = 'craft "technic:uranium_lump" 1',
})
minetest.register_node( ":technic:mineral_chromium", {
@ -56,7 +56,7 @@ minetest.register_node(":technic:uranium_block", {
description = S("Uranium Block"),
tiles = { "technic_uranium_block.png" },
is_ground_content = true,
groups = {cracky=1, level=2, radioactive=3},
groups = {uranium_block=1, cracky=1, level=2, radioactive=3},
sounds = default.node_sound_stone_defaults()
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

View File

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 352 B