commit 4b5b341839b9c964e3f7d75dfe2f1ea3556adca4 Author: NO11 Date: Sat Mar 27 14:45:19 2021 +0100 Adds Nether Gold Ore diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..edd21d8 --- /dev/null +++ b/depends.txt @@ -0,0 +1,4 @@ +mcl_nether +mcl_core +mcl_biomes +mcl_sounds \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..82513c9 --- /dev/null +++ b/init.lua @@ -0,0 +1,46 @@ +minetest.register_node("mcl_nether_gold:nether_gold_ore", { + description = ("Nether Gold Ore"), + _doc_items_longdesc = ("Nether gold ore is an ore containing nether gold. It is commonly found around netherrack in the Nether."), + stack_max = 64, + tiles = {"mcl_nether_gold_ore.png"}, + is_ground_content = true, + groups = {pickaxey=1, building_block=1, material_stone=1, xp=0}, + drop = { + max_items = 1, + items = { + {items = {'mcl_core:gold_nugget 6'},rarity = 5}, + {items = {'mcl_core:gold_nugget 5'},rarity = 5}, + {items = {'mcl_core:gold_nugget 4'},rarity = 5}, + {items = {'mcl_core:gold_nugget 3'},rarity = 5}, + {items = {'mcl_core:gold_nugget 2'}}, + } + }, + sounds = mcl_sounds.node_sound_stone_defaults(), + _mcl_blast_resistance = 3, + _mcl_hardness = 3, + _mcl_silk_touch_drop = true, + _mcl_fortune_drop = mcl_core.fortune_drop_ore +}) + +if minetest.settings:get_bool("mcl_generate_ores", true) then + minetest.register_ore({ + ore_type = "scatter", + ore = "mcl_nether_gold:nether_gold_ore", + wherein = {"mcl_nether:netherrack", "mcl_core:stone"}, + clust_scarcity = 850, + clust_num_ores = 4, -- MC cluster amount: 4-10 + clust_size = 3, + y_min = mcl_vars.mg_nether_min, + y_max = mcl_vars.mg_nether_max, + }) + minetest.register_ore({ + ore_type = "scatter", + ore = "mcl_nether_gold:nether_gold_ore", + wherein = {"mcl_nether:netherrack", "mcl_core:stone"}, + clust_scarcity = 1650, + clust_num_ores = 8, -- MC cluster amount: 4-10 + clust_size = 4, + y_min = mcl_vars.mg_nether_min, + y_max = mcl_vars.mg_nether_max, + }) +end \ No newline at end of file diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..8ee4241 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name = mcl_nether_gold \ No newline at end of file diff --git a/textures/mcl_nether_gold_ore.png b/textures/mcl_nether_gold_ore.png new file mode 100644 index 0000000..2c47167 Binary files /dev/null and b/textures/mcl_nether_gold_ore.png differ