summaryrefslogtreecommitdiff
path: root/glooptest/ore_module
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:00:20 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:10:04 -0400
commit888b0ebfec8c2eff9015163549a7e47443cb8665 (patch)
tree915080159bfaa6ba6e226087c7ce0e8d5464b518 /glooptest/ore_module
parentda66780a569712c23ae4f2996cfb4608a9f9d69d (diff)
downloaddreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.gz
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.bz2
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.xz
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.zip
"explode" all modpacks into their individual components
(you can't have a modpack buried inside a modpack)
Diffstat (limited to 'glooptest/ore_module')
-rw-r--r--glooptest/ore_module/api.lua152
-rw-r--r--glooptest/ore_module/init.lua630
2 files changed, 782 insertions, 0 deletions
diff --git a/glooptest/ore_module/api.lua b/glooptest/ore_module/api.lua
new file mode 100644
index 0000000..7cf35ab
--- /dev/null
+++ b/glooptest/ore_module/api.lua
@@ -0,0 +1,152 @@
+function glooptest.ore_module.set_tool_recipe(modname,type,material,name)
+ if type == "sword" then
+ minetest.register_craft({
+ recipe = {{material},{material},{"default:stick"}},
+ output = modname..":sword_"..name,
+ })
+ end
+ if type == "axe" then
+ minetest.register_craft({
+ recipe = {{material, material}, {material, "default:stick"}, {"","default:stick"}},
+ output = modname..":axe_"..name,
+ })
+ minetest.register_craft({
+ recipe = {{material, material}, {"default:stick", material}, {"default:stick", ""}},
+ output = modname..":axe_"..name,
+ })
+ end
+ if type == "pick" or type == "pickaxe" then
+ minetest.register_craft({
+ recipe = {{material, material, material}, {"","default:stick",""}, {"","default:stick",""}},
+ output = modname..":pick_"..name,
+ })
+ end
+ if type == "shovel" then
+ minetest.register_craft({
+ recipe = {{material},{"default:stick"},{"default:stick"}},
+ output = modname..":shovel_"..name,
+ })
+ end
+ if type == "handsaw" then
+ minetest.register_craft({
+ recipe = {{material, "default:stick"},{material, "default:stick"},{"", "default:stick"}},
+ output = modname..":handsaw_"..name,
+ })
+ minetest.register_craft({
+ recipe = {{"default:stick", material},{"default:stick", material},{"default:stick", ""}},
+ output = modname..":handsaw_"..name,
+ })
+ end
+ if type == "hammer" then
+ minetest.register_craft({
+ recipe = {{material, "default:stick", material}, {material, "default:stick", material}, {"", "default:stick", ""}},
+ output = modname..":hammer_"..name,
+ })
+ end
+end
+
+generation_ores = {}
+
+function glooptest.ore_module.register_ore(modname, name, desc, uses)
+ if uses.block ~= nil and uses.block.makes ~= false then
+ minetest.register_node(modname..":"..name.."block", {
+ description = desc.." Block",
+ tiles = {uses.block.texture},
+ is_ground_content = true,
+ light_source = uses.block.light or 0,
+ groups = uses.block.groups,
+ sounds = uses.block.sounds
+ })
+ if uses.block.fromingots == true and uses.ingot ~= nil then
+ minetest.register_craft({
+ output = modname..":"..name.."block",
+ recipe = {
+ {modname..":"..name.."_ingot", modname..":"..name.."_ingot", modname..":"..name.."_ingot"},
+ {modname..":"..name.."_ingot", modname..":"..name.."_ingot", modname..":"..name.."_ingot"},
+ {modname..":"..name.."_ingot", modname..":"..name.."_ingot", modname..":"..name.."_ingot"}
+ }
+ })
+ minetest.register_craft({
+ output = modname..":"..name.."_ingot 9",
+ recipe = {
+ {modname..":"..name.."block"}
+ }
+ })
+ end
+ end
+ if uses.ore ~= nil and uses.ore.makes ~= false then
+ minetest.register_node(modname..":mineral_"..name, {
+ description = desc.." Ore",
+ tiles = {uses.ore.texture.base.."^"..uses.ore.texture.overlay},
+ is_ground_content = true,
+ drop = uses.ore.drop,
+ light_source = uses.ore.light or 0,
+ groups = uses.ore.groups,
+ sounds = uses.ore.sounds
+ })
+ minetest.register_ore({
+ ore_type = "scatter",
+ ore = modname..":mineral_"..name,
+ wherein = uses.ore.generate.generate_inside_of,
+ clust_scarcity = uses.ore.generate.chunks_per_mapblock,
+ clust_num_ores = uses.ore.generate.max_blocks_per_chunk,
+ clust_size = uses.ore.generate.chunk_size,
+ y_min = uses.ore.generate.miny,
+ y_max = uses.ore.generate.maxy,
+ })
+ end
+ if uses.lump ~= nil and uses.lump.makes ~= false then
+ minetest.register_craftitem(modname..":"..name.."_"..uses.lump.name, {
+ description = desc.." "..uses.lump.desc,
+ inventory_image = uses.lump.texture,
+ })
+ end
+ if uses.ingot ~= nil and uses.ingot.makes ~= false then
+ minetest.register_craftitem(modname..":"..name.."_ingot", {
+ description = desc.." Ingot",
+ inventory_image = uses.ingot.texture,
+ })
+ if uses.ingot.smeltrecipe == true and uses.lump ~= nil then
+ minetest.register_craft({
+ type = "cooking",
+ output = modname..":"..name.."_ingot",
+ recipe = modname..":"..name.."_"..uses.lump.name,
+ })
+ end
+ end
+ if uses.tools ~= nil and uses.tools.make ~= nil then
+ if uses.tools.make.sword == true then
+ minetest.register_tool(modname..":sword_"..name, {
+ description = desc.." Sword",
+ inventory_image = uses.tools.texture.sword,
+ tool_capabilities = uses.tools.caps.sword,
+ })
+ glooptest.ore_module.set_tool_recipe(modname,"sword",modname..":"..name.."_ingot",name)
+ end
+ if uses.tools.make.axe == true then
+ minetest.register_tool(modname..":axe_"..name, {
+ description = desc.." Axe",
+ inventory_image = uses.tools.texture.axe,
+ tool_capabilities = uses.tools.caps.axe,
+ })
+ glooptest.ore_module.set_tool_recipe(modname,"axe",modname..":"..name.."_ingot",name)
+ end
+ if uses.tools.make.pick == true then
+ minetest.register_tool(modname..":pick_"..name, {
+ description = desc.." Pickaxe",
+ inventory_image = uses.tools.texture.pick,
+ tool_capabilities = uses.tools.caps.pick,
+ })
+ glooptest.ore_module.set_tool_recipe(modname,"pick",modname..":"..name.."_ingot",name)
+ end
+ if uses.tools.make.shovel == true then
+ minetest.register_tool(modname..":shovel_"..name, {
+ description = desc.." Shovel",
+ inventory_image = uses.tools.texture.shovel,
+ wield_image = uses.tools.texture.shovel.."^[transformR90",
+ tool_capabilities = uses.tools.caps.shovel,
+ })
+ glooptest.ore_module.set_tool_recipe(modname,"shovel",modname..":"..name.."_ingot",name)
+ end
+ end
+end
diff --git a/glooptest/ore_module/init.lua b/glooptest/ore_module/init.lua
new file mode 100644
index 0000000..bed4d5b
--- /dev/null
+++ b/glooptest/ore_module/init.lua
@@ -0,0 +1,630 @@
+glooptest.ore_module = {}
+glooptest.debug("MESSAGE","Loading Ore Module Now!")
+
+local stone_sounds = default.node_sound_stone_defaults()
+
+dofile(minetest.get_modpath("glooptest").."/ore_module/api.lua")
+
+-- HUGE NOTE HERE:
+-- I did not make the textures. celeron55/erlehmann made the textures which were licensed under CC-BY-SA, and then edited by me.
+-- The textures for non-gem ores are thus CC-BY-SA, with respect to celeron55/erlehmann
+-- Suck it, minetest community.
+
+glooptest.ore_module.register_ore("glooptest", "kalite", "Kalite", {
+ ore = {
+ makes = true,
+ drop = {
+ max_items = 4,
+ items = {
+ {
+ items = {'glooptest:kalite_lump'},
+ rarity = 5,
+ },
+ {
+ items = {'glooptest:kalite_lump'},
+ rarity = 2,
+ },
+ {
+ items = {'glooptest:kalite_lump 2'},
+ },
+ }
+ },
+ texture = {
+ base = "default_stone.png",
+ overlay = "gloopores_mineral_kalite.png",
+ },
+ groups = {cracky=3},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 9*9*9,
+ chunk_size = 6,
+ max_blocks_per_chunk = 7,
+ miny = -31000,
+ maxy = 10
+ },
+ },
+})
+
+minetest.register_craftitem("glooptest:kalite_lump", {
+ description = "Kalite Lump",
+ inventory_image = "gloopores_kalite_lump.png",
+ on_use = minetest.item_eat(1),
+})
+
+minetest.register_node("glooptest:kalite_torch", {
+ description = "Kalite Torch",
+ drawtype = "torchlike",
+ tiles = {
+ {name="gloopores_kalite_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
+ {name="gloopores_kalite_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
+ {name="gloopores_kalite_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
+ },
+ inventory_image = "gloopores_kalite_torch_on_floor.png",
+ wield_image = "gloopores_kalite_torch_on_floor.png",
+ paramtype = "light",
+ paramtype2 = "wallmounted",
+ sunlight_propagates = true,
+ walkable = false,
+ light_source = LIGHT_MAX-1,
+ selection_box = {
+ type = "wallmounted",
+ wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
+ wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
+ wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
+ },
+ groups = {choppy=2,dig_immediate=3},
+ legacy_wallmounted = true,
+ sounds = default.node_sound_defaults(),
+})
+
+minetest.register_craft({
+ output = "glooptest:kalite_torch 4",
+ recipe = {
+ {"glooptest:kalite_lump"},
+ {"default:stick"},
+ }
+})
+
+minetest.register_craft({
+ type = "fuel",
+ recipe = "glooptest:kalite_lump",
+ burntime = 30,
+})
+
+glooptest.ore_module.register_ore("glooptest", "alatro", "Alatro", {
+ ore = {
+ makes = true,
+ drop = "glooptest:alatro_lump",
+ texture = {
+ base = "default_stone.png",
+ overlay = "gloopores_mineral_alatro.png",
+ },
+ groups = {cracky=2},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 9*9*9,
+ chunk_size = 2,
+ max_blocks_per_chunk = 6,
+ miny = 0,
+ maxy = 256
+ },
+ },
+ lump = {
+ makes = true,
+ name = "lump",
+ desc = "Lump",
+ texture = "gloopores_alatro_lump.png"
+ },
+ ingot = {
+ makes = true,
+ texture = "gloopores_alatro_ingot.png",
+ smeltrecipe = true
+ },
+ block = {
+ makes = true,
+ texture = "gloopores_alatro_block.png",
+ groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
+ sounds = stone_sounds,
+ fromingots = true
+ },
+ tools = {
+ make = {
+ sword = true,
+ axe = true,
+ pick = true,
+ shovel = true
+ },
+ texture = {
+ sword = "gloopores_tool_alatrosword.png",
+ axe = "gloopores_tool_alatroaxe.png",
+ pick = "gloopores_tool_alatropick.png",
+ shovel = "gloopores_tool_alatroshovel.png"
+ },
+ caps = {
+ sword = {
+ full_punch_interval = 1.0,
+ max_drop_level = 0,
+ groupcaps={
+ fleshy={times={[2]=0.80, [3]=0.60}, uses=40, maxlevel=1},
+ snappy={times={[2]=0.80, [3]=0.60}, uses=40, maxlevel=1},
+ choppy={times={[3]=0.80}, uses=40, maxlevel=0}
+ },
+ damage_groups = {fleshy=5},
+ },
+ axe = {
+ full_punch_interval = 1.0,
+ max_drop_level = 0,
+ groupcaps = {
+ choppy = {times={[2]=0.65, [3]=0.40}, uses=40, maxlevel=1},
+ fleshy = {times={[2]=0.65, [3]=0.40}, uses=40, maxlevel=1}
+ },
+ damage_groups = {fleshy=3},
+ },
+ pick = {
+ full_punch_interval = 1.0,
+ max_drop_level = 0,
+ groupcaps = {
+ cracky = {times={[2]=0.65, [3]=0.40}, uses=40, maxlevel=1}
+ },
+ damage_groups = {fleshy=3},
+ },
+ shovel = {
+ full_punch_interval = 1.0,
+ max_drop_level = 0,
+ groupcaps = {
+ crumbly = {times={[2]=0.60, [3]=0.35}, uses=40, maxlevel=1}
+ },
+ damage_groups = {fleshy=3},
+ },
+ }
+ }
+})
+
+glooptest.ore_module.register_ore("glooptest", "talinite", "Talinite", {
+ ore = {
+ makes = true,
+ drop = "glooptest:talinite_lump",
+ texture = {
+ base = "default_stone.png",
+ overlay = "gloopores_mineral_talinite.png"
+ },
+ groups = {cracky=1},
+ sounds = stone_sounds,
+ light = 6,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 12*12*12,
+ chunk_size = 2,
+ max_blocks_per_chunk = 4,
+ miny = -31000,
+ maxy = -250
+ }
+ },
+ lump = {
+ makes = true,
+ name = "lump",
+ desc = "Lump",
+ texture = "gloopores_talinite_lump.png"
+ },
+ ingot = {
+ makes = true,
+ texture = "gloopores_talinite_ingot.png",
+ smeltrecipe = true
+ },
+ block = {
+ makes = true,
+ texture = "gloopores_talinite_block.png",
+ groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
+ sounds = stone_sounds,
+ light = 14,
+ fromingots = true
+ }
+})
+
+glooptest.ore_module.register_ore("glooptest", "akalin", "Akalin", {
+ ore = {
+ makes = true,
+ drop = "glooptest:akalin_lump",
+ texture = {
+ base = "default_desert_stone.png",
+ overlay = "gloopores_mineral_akalin.png"
+ },
+ groups = {cracky=3},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:desert_stone",
+ chunks_per_mapblock = 7*7*7,
+ chunk_size = 3,
+ max_blocks_per_chunk = 9,
+ miny = 0,
+ maxy = 256
+ }
+ },
+ lump = {
+ makes = true,
+ name = "lump",
+ desc = "Lump",
+ texture = "gloopores_akalin_lump.png"
+ },
+ ingot = {
+ makes = true,
+ texture = "gloopores_akalin_ingot.png",
+ smeltrecipe = true
+ },
+ block = {
+ makes = true,
+ texture = "gloopores_akalin_block.png",
+ groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
+ sounds = stone_sounds,
+ fromingots = true
+ }
+})
+
+glooptest.ore_module.register_ore("glooptest", "arol", "Arol", {
+ ore = {
+ makes = true,
+ drop = "glooptest:arol_lump",
+ texture = {
+ base = "default_stone.png",
+ overlay = "gloopores_mineral_arol.png"
+ },
+ groups = {cracky=1},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 10*10*10,
+ chunk_size = 2,
+ max_blocks_per_chunk = 2,
+ miny = -31000,
+ maxy = -20
+ }
+ },
+ lump = {
+ makes = true,
+ name = "lump",
+ desc = "Lump",
+ texture = "gloopores_arol_lump.png"
+ },
+ ingot = {
+ makes = true,
+ texture = "gloopores_arol_ingot.png",
+ smeltrecipe = true
+ },
+ tools = {
+ make = {
+ sword = true,
+ axe = true,
+ pick = true,
+ shovel = true
+ },
+ texture = {
+ sword = "gloopores_tool_arolsword.png",
+ axe = "gloopores_tool_arolaxe.png",
+ pick = "gloopores_tool_arolpick.png",
+ shovel = "gloopores_tool_arolshovel.png"
+ },
+ caps = {
+ sword = {
+ full_punch_interval = 0.5,
+ max_drop_level = 2,
+ groupcaps = {
+ fleshy = {times={[2]=1.30, [3]=1.10}, uses=300, maxlevel=2},
+ snappy = {times={[2]=1.30, [3]=1.10}, uses=300, maxlevel=2},
+ choppy = {times={[3]=1.60}, uses=300, maxlevel=1}
+ },
+ damage_groups = {fleshy=6},
+ },
+ axe = {
+ full_punch_interval = 0.5,
+ max_drop_level = 2,
+ groupcaps = {
+ choppy = {times={[1]=3.30, [2]=1.30, [3]=1.00}, uses=300, maxlevel=2},
+ fleshy = {times={[2]=1.60, [3]=1.00}, uses=300, maxlevel=2}
+ },
+ damage_groups = {fleshy=3},
+ },
+ pick = {
+ full_punch_interval = 0.5,
+ max_drop_level = 2,
+ groupcaps = {
+ cracky = {times={[1]=3.60, [2]=1.90, [3]=1.40}, uses=300, maxlevel=2}
+ },
+ damage_groups = {fleshy=3},
+ },
+ shovel = {
+ full_punch_interval = 0.5,
+ max_drop_level = 2,
+ groupcaps = {
+ crumbly = {times={[1]=2.70, [2]=1.45, [3]=0.85}, uses=300, maxlevel=2}
+ },
+ damage_groups = {fleshy=3},
+ }
+ }
+ }
+})
+
+glooptest.ore_module.register_ore("glooptest", "desert_iron", "Desert Iron", {
+ ore = {
+ makes = true,
+ drop = "default:iron_lump",
+ texture = {
+ base = "default_desert_stone.png",
+ overlay = "default_mineral_iron.png",
+ },
+ groups = {cracky=3},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:desert_stone",
+ chunks_per_mapblock = 7*7*7,
+ chunk_size = 2,
+ max_blocks_per_chunk = 3,
+ miny = 0,
+ maxy = 10
+ },
+ },
+})
+
+glooptest.ore_module.register_ore("glooptest", "desert_coal", "Desert Coal", {
+ ore = {
+ makes = true,
+ drop = "default:coal_lump",
+ texture = {
+ base = "default_desert_stone.png",
+ overlay = "default_mineral_coal.png",
+ },
+ groups = {cracky=3},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:desert_stone",
+ chunks_per_mapblock = 6*6*6,
+ chunk_size = 3,
+ max_blocks_per_chunk = 8,
+ miny = 0,
+ maxy = 30
+ },
+ },
+})
+
+-- gems
+
+glooptest.ore_module.register_ore("glooptest", "ruby", "Ruby", {
+ ore = {
+ makes = true,
+ drop = "glooptest:ruby_gem",
+ texture = {
+ base = "default_stone.png",
+ overlay = "glooptest_mineral_ruby.png",
+ },
+ groups = {cracky=1},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 15*15*15,
+ chunk_size = 5,
+ max_blocks_per_chunk = 5,
+ miny = -3000,
+ maxy = -30
+ },
+ },
+ block = {
+ makes = true,
+ texture = "glooptest_ruby_block.png",
+ groups = {bendy=3,cracky=2,level=1},
+ sounds = stone_sounds,
+ fromingots = false
+ }
+})
+
+minetest.register_craftitem("glooptest:ruby_gem", {
+ description = "Ruby",
+ inventory_image = "glooptest_gem_ruby.png",
+ groups = {glooptest_gem=1},
+})
+minetest.register_craft({
+ output = "glooptest:rubyblock",
+ recipe = {
+ {"glooptest:ruby_gem", "glooptest:ruby_gem", "glooptest:ruby_gem"},
+ {"glooptest:ruby_gem", "glooptest:ruby_gem", "glooptest:ruby_gem"},
+ {"glooptest:ruby_gem", "glooptest:ruby_gem", "glooptest:ruby_gem"}
+ }
+})
+minetest.register_craft({
+ output = "glooptest:ruby_gem 9",
+ recipe = {
+ {"glooptest:rubyblock"}
+ }
+})
+
+glooptest.ore_module.register_ore("glooptest", "sapphire", "Sapphire", {
+ ore = {
+ makes = true,
+ drop = "glooptest:sapphire_gem",
+ texture = {
+ base = "default_stone.png",
+ overlay = "glooptest_mineral_sapphire.png",
+ },
+ groups = {cracky=1},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 15*15*15,
+ chunk_size = 5,
+ max_blocks_per_chunk = 5,
+ miny = -3000,
+ maxy = -30
+ },
+ },
+ block = {
+ makes = true,
+ texture = "glooptest_sapphire_block.png",
+ groups = {bendy=3,cracky=2,level=1},
+ sounds = stone_sounds,
+ fromingots = false
+ }
+})
+
+minetest.register_craftitem("glooptest:sapphire_gem", {
+ description = "Sapphire",
+ inventory_image = "glooptest_gem_sapphire.png",
+ groups = {glooptest_gem=1},
+})
+minetest.register_craft({
+ output = "glooptest:sapphireblock",
+ recipe = {
+ {"glooptest:sapphire_gem", "glooptest:sapphire_gem", "glooptest:sapphire_gem"},
+ {"glooptest:sapphire_gem", "glooptest:sapphire_gem", "glooptest:sapphire_gem"},
+ {"glooptest:sapphire_gem", "glooptest:sapphire_gem", "glooptest:sapphire_gem"}
+ }
+})
+minetest.register_craft({
+ output = "glooptest:sapphire_gem 9",
+ recipe = {
+ {"glooptest:sapphireblock"}
+ }
+})
+
+glooptest.ore_module.register_ore("glooptest", "emerald", "Emerald", {
+ ore = {
+ makes = true,
+ drop = "glooptest:emerald_gem",
+ texture = {
+ base = "default_stone.png",
+ overlay = "glooptest_mineral_emerald.png",
+ },
+ groups = {cracky=1},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 15*15*15,
+ chunk_size = 4,
+ max_blocks_per_chunk = 4,
+ miny = -5000,
+ maxy = -70
+ },
+ },
+ block = {
+ makes = true,
+ texture = "glooptest_emerald_block.png",
+ groups = {bendy=3,cracky=2,level=1},
+ sounds = stone_sounds,
+ fromingots = false
+ }
+})
+
+minetest.register_craftitem("glooptest:emerald_gem", {
+ description = "Emerald",
+ inventory_image = "glooptest_gem_emerald.png",
+ groups = {glooptest_gem=1},
+})
+minetest.register_craft({
+ output = "glooptest:emeraldblock",
+ recipe = {
+ {"glooptest:emerald_gem", "glooptest:emerald_gem", "glooptest:emerald_gem"},
+ {"glooptest:emerald_gem", "glooptest:emerald_gem", "glooptest:emerald_gem"},
+ {"glooptest:emerald_gem", "glooptest:emerald_gem", "glooptest:emerald_gem"}
+ }
+})
+minetest.register_craft({
+ output = "glooptest:emerald_gem 9",
+ recipe = {
+ {"glooptest:emeraldblock"}
+ }
+})
+
+glooptest.ore_module.register_ore("glooptest", "topaz", "Topaz", {
+ ore = {
+ makes = true,
+ drop = "glooptest:topaz_gem",
+ texture = {
+ base = "default_stone.png",
+ overlay = "glooptest_mineral_topaz.png",
+ },
+ groups = {cracky=1},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 15*15*15,
+ chunk_size = 4,
+ max_blocks_per_chunk = 4,
+ miny = -5000,
+ maxy = -70
+ },
+ },
+ block = {
+ makes = true,
+ texture = "glooptest_topaz_block.png",
+ groups = {bendy=3,cracky=2,level=1},
+ sounds = stone_sounds,
+ fromingots = false
+ }
+})
+
+minetest.register_craftitem("glooptest:topaz_gem", {
+ description = "Topaz",
+ inventory_image = "glooptest_gem_topaz.png",
+ groups = {glooptest_gem=1},
+})
+minetest.register_craft({
+ output = "glooptest:topazblock",
+ recipe = {
+ {"glooptest:topaz_gem", "glooptest:topaz_gem", "glooptest:topaz_gem"},
+ {"glooptest:topaz_gem", "glooptest:topaz_gem", "glooptest:topaz_gem"},
+ {"glooptest:topaz_gem", "glooptest:topaz_gem", "glooptest:topaz_gem"}
+ }
+})
+minetest.register_craft({
+ output = "glooptest:topaz_gem 9",
+ recipe = {
+ {"glooptest:topazblock"}
+ }
+})
+
+glooptest.ore_module.register_ore("glooptest", "amethyst", "Amethyst", {
+ ore = {
+ makes = true,
+ drop = "glooptest:amethyst_gem",
+ texture = {
+ base = "default_stone.png",
+ overlay = "glooptest_mineral_amethyst.png",
+ },
+ groups = {cracky=1},
+ sounds = stone_sounds,
+ generate = {
+ generate_inside_of = "default:stone",
+ chunks_per_mapblock = 15*15*15,
+ chunk_size = 3,
+ max_blocks_per_chunk = 3,
+ miny = -31000,
+ maxy = -128
+ },
+ },
+ block = {
+ makes = true,
+ texture = "glooptest_amethyst_block.png",
+ groups = {bendy=3,cracky=2,level=1},
+ sounds = stone_sounds,
+ fromingots = false
+ }
+})
+
+minetest.register_craftitem("glooptest:amethyst_gem", {
+ description = "Amethyst",
+ inventory_image = "glooptest_gem_amethyst.png",
+ groups = {glooptest_gem=1},
+})
+minetest.register_craft({
+ output = "glooptest:amethystblock",
+ recipe = {
+ {"glooptest:amethyst_gem", "glooptest:amethyst_gem", "glooptest:amethyst_gem"},
+ {"glooptest:amethyst_gem", "glooptest:amethyst_gem", "glooptest:amethyst_gem"},
+ {"glooptest:amethyst_gem", "glooptest:amethyst_gem", "glooptest:amethyst_gem"}
+ }
+})
+minetest.register_craft({
+ output = "glooptest:amethyst_gem 9",
+ recipe = {
+ {"glooptest:amethystblock"}
+ }
+})