]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/main/nodes.lua
Complete minecart logic - for now
[Crafter.git] / mods / main / nodes.lua
index 9caf83b850f59d7147a4366f785c1eff9efa49b1..cdf328011651e89f5979e2d8046774f7eff39ea6 100644 (file)
@@ -10,11 +10,16 @@ minetest.register_node("main:stone", {
 
 local ores = {"coal","iron","gold","diamond"}
 for id,ore in pairs(ores) do
+       local drop = "main:"..ore.."ore"
+       if ore == "diamond" then drop = "main:diamond" elseif ore == "coal" then drop = "main:coal" end
+       
        minetest.register_node("main:"..ore.."ore", {
                description = ore:gsub("^%l", string.upper).." Ore",
                tiles = {"stone.png^"..ore.."ore.png"},
                groups = {stone = id, hard = id, pickaxe = 1, hand = 4},
                sounds = main.stoneSound(),
+               --light_source = 14,--debugging ore spawn
+               drop = drop,
        })
 end