summaryrefslogtreecommitdiff
path: root/mg.lua
diff options
context:
space:
mode:
authorThomas--S <Thomas--S@users.noreply.github.com>2017-05-20 14:40:04 +0200
committerHugo Locurcio <hugo.l@openmailbox.org>2017-05-20 14:40:04 +0200
commit73e99e7d66acca3f2be11a53a40ab3b9b9694dd9 (patch)
treeab554907fc074dd97e41caccac7462e34460e751 /mg.lua
parent0842b4fec4641d9e4f538361dc153abb3c4f8fe1 (diff)
Tin is now in Minetest Game (#18)
Diffstat (limited to 'mg.lua')
-rw-r--r--mg.lua30
1 files changed, 16 insertions, 14 deletions
diff --git a/mg.lua b/mg.lua
index 8c53456..6551ae5 100644
--- a/mg.lua
+++ b/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",