summaryrefslogtreecommitdiff
path: root/moreores
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-16 18:12:21 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-16 18:12:21 -0400
commit75e0a665ce2a45e1158a427d3f70f854f5f4d5a8 (patch)
tree881209e2c8f7efcbce69482bc3caa19b4828e290 /moreores
parentb8cd2f723c7c9079e631d7a4078862ff47b24915 (diff)
downloaddreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar
dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.gz
dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.bz2
dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.xz
dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.zip
Updated several mods for Minetest 0.4.16
castles modpack, areas, biome_lib, blox, boost_cart, plantlife modpack caverealms, coloredwood, concrete, currency, farming redo, home decor, ilights, mesecons, moreores, pipeworks, signs_lib, technic, unified inventory unified bricks, unified dyes, worldedit, and xban2
Diffstat (limited to 'moreores')
-rw-r--r--moreores/init.lua57
-rw-r--r--moreores/mg.lua30
2 files changed, 52 insertions, 35 deletions
diff --git a/moreores/init.lua b/moreores/init.lua
index 34c9a0e..da4409f 100644
--- a/moreores/init.lua
+++ b/moreores/init.lua
@@ -10,6 +10,11 @@ Licensed under the zlib license. See LICENSE.md for more information.
moreores = {}
+local default_tin = false
+if minetest.registered_items["default:tin_ingot"] then
+ default_tin = true
+end
+
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
@@ -266,17 +271,6 @@ local oredefs = {
full_punch_interval = 1.0,
damage_groups = {fleshy = 6},
},
- tin = {
- description = "Tin",
- makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
- oredef = {clust_scarcity = moreores.tin_chunk_size * moreores.tin_chunk_size * moreores.tin_chunk_size,
- clust_num_ores = moreores.tin_ore_per_chunk,
- clust_size = moreores.tin_chunk_size,
- y_min = moreores.tin_min_depth,
- y_max = moreores.tin_max_depth
- },
- tools = {},
- },
mithril = {
description = "Mithril",
makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
@@ -311,6 +305,20 @@ local oredefs = {
}
}
+if not default_tin then
+ oredefs.tin = {
+ description = "Tin",
+ makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
+ oredef = {clust_scarcity = moreores.tin_chunk_size * moreores.tin_chunk_size * moreores.tin_chunk_size,
+ clust_num_ores = moreores.tin_ore_per_chunk,
+ clust_size = moreores.tin_chunk_size,
+ y_min = moreores.tin_min_depth,
+ y_max = moreores.tin_max_depth
+ },
+ tools = {},
+ }
+end
+
for orename,def in pairs(oredefs) do
add_ore(modname, def.description, orename, def)
end
@@ -325,16 +333,23 @@ minetest.register_craft({
}
})
--- Bronze has some special cases, because it is made from copper and tin:
-minetest.register_craft( {
- type = "shapeless",
- output = "default:bronze_ingot 3",
- recipe = {
- "moreores:tin_ingot",
- "default:copper_ingot",
- "default:copper_ingot",
- }
-})
+if default_tin then
+ minetest.register_alias("moreores:mineral_tin", "default:stone_with_tin")
+ minetest.register_alias("moreores:tin_lump", "default:tin_lump")
+ minetest.register_alias("moreores:tin_ingot", "default:tin_ingot")
+ minetest.register_alias("moreores:tin_block", "default:tinblock")
+else
+ -- Bronze has some special cases, because it is made from copper and tin:
+ minetest.register_craft( {
+ type = "shapeless",
+ output = "default:bronze_ingot 3",
+ recipe = {
+ "moreores:tin_ingot",
+ "default:copper_ingot",
+ "default:copper_ingot",
+ }
+ })
+end
-- Unique node:
minetest.register_node("moreores:copper_rail", {
diff --git a/moreores/mg.lua b/moreores/mg.lua
index 8c53456..6551ae5 100644
--- a/moreores/mg.lua
+++ b/moreores/mg.lua
@@ -5,20 +5,22 @@ Copyright (c) 2011-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
-mg.register_ore({
- name = "moreores:mineral_tin",
- wherein = "default:stone",
- seeddiff = 8,
- maxvdistance = 10.5,
- maxheight = 8,
- seglenghtn = 15,
- seglenghtdev = 6,
- segincln = 0,
- segincldev = 0.6,
- turnangle = 57,
- forkturnangle = 57,
- numperblock = 2
-})
+if not minetest.registered_items["default:tin_ingot"] then
+ mg.register_ore({
+ name = "moreores:mineral_tin",
+ wherein = "default:stone",
+ seeddiff = 8,
+ maxvdistance = 10.5,
+ maxheight = 8,
+ seglenghtn = 15,
+ seglenghtdev = 6,
+ segincln = 0,
+ segincldev = 0.6,
+ turnangle = 57,
+ forkturnangle = 57,
+ numperblock = 2
+ })
+end
mg.register_ore({
name = "moreores:mineral_silver",