diff --git a/mods/ITEMS/mcl_amethyst/init.lua b/mods/ITEMS/mcl_amethyst/init.lua new file mode 100644 index 000000000..af32cf0e0 --- /dev/null +++ b/mods/ITEMS/mcl_amethyst/init.lua @@ -0,0 +1,120 @@ +local S = minetest.get_translator(minetest.get_current_modname()) + +-- Amethyst block +minetest.register_node("mcl_amethyst:amethyst_block",{ + description = S("Block of Amethyst"), + tiles = {"amethyst_block.png"}, + _mcl_hardness = 1.5, + _mcl_blast_resistance = 1.5, + groups = { + pickaxey = 1, + building_block = 1, + }, + sounds = mcl_sounds.node_sound_glass_defaults(), + is_ground_content = true, + stack_max = 64, + _doc_items_longdesc = S("The Block of Anethyst is a decoration block creft from amethyst shards."), +}) + +-- (WIP!) Budding Amethyst +minetest.register_node("mcl_amethyst:budding_amethyst_block",{ + description = S("Budding Amethyst"), + tiles = {"budding_amethyst.png"}, + drop = "", + _mcl_hardness = 1.5, + _mcl_blast_resistance = 1.5, + groups = { + pickaxey = 1, + building_block = 1, + dig_by_piston = 1, + }, + sounds = mcl_sounds.node_sound_glass_defaults(), + is_ground_content = true, + stack_max = 64, + _doc_items_longdesc = S("The Budding Anethyst can grow amethyst"), +}) +mcl_wip.register_wip_item("mcl_amethyst:budding_amethyst_block") + +-- Amethyst Shard +minetest.register_craftitem("mcl_amethyst:amethyst_shard",{ + description = S("Amethyst Shard"), + inventory_image = "amethyst_shard.png", + stack_max = 64, + groups = { + craftitem = 1, + }, + _doc_items_longdesc = S("An amethyst shard is a crystalline mineral."), +}) + +-- Calcite +minetest.register_node("mcl_amethyst:calcite",{ + description = S("Calcite"), + tiles = {"calcite.png"}, + _mcl_hardness = 0.75, + _mcl_blast_resistance = 0.75, + groups = { + pickaxey = 1, + building_block = 1, + }, + sounds = mcl_sounds.node_sound_stone_defaults(), + is_ground_content = true, + stack_max = 64, + _doc_items_longdesc = S("Calcite can be found as part of amethyst geodes."), +}) + +-- Tinied Glass +minetest.register_node("mcl_amethyst:tinted_glass",{ + description = S("Tinted Glass"), + tiles = {"tinted_glass.png"}, + _mcl_hardness = 0.3, + _mcl_blast_resistance = 0.3, + drawtype = "glasslike", + use_texture_alpha = "clip", + sunlight_propagates = false, + groups = { + handy = 1, + building_block = 1, + deco_block = 1, + }, + sounds = mcl_sounds.node_sound_glass_defaults(), + is_ground_content = false, + stack_max = 64, + _doc_items_longdesc = S("Tinted Glass is a type of glass which blocks lights while it is visually transparent."), +}) + +-- Register Crafts +minetest.register_craft({ + output = "mcl_amethyst:amethyst_block", + recipe = { + {"mcl_amethyst:amethyst_shard","mcl_amethyst:amethyst_shard",}, + {"mcl_amethyst:amethyst_shard","mcl_amethyst:amethyst_shard",}, + }, +}) + +minetest.register_craft({ + output = "mcl_amethyst:tinted_glass", + recipe = { + {"","mcl_amethyst:amethyst_shard",""}, + {"mcl_amethyst:amethyst_shard","mcl_core:glass","mcl_amethyst:amethyst_shard",}, + {"","mcl_amethyst:amethyst_shard",""}, + }, +}) + +if minetest.get_modpath("mcl_spyglass") then + minetest.clear_craft({output = "mcl_spyglass:spyglass",}) + local function craft_spyglass(ingot) + minetest.register_craft({ + output = "mcl_spyglass:spyglass", + recipe = { + {"mcl_amethyst:amethyst_shard"}, + {ingot}, + {ingot}, + } + }) + end + if minetest.get_modpath("mcl_copper") then + craft_spyglass("mcl_copper:copper_ingot") + else + craft_spyglass("mcl_core:iron_ingot") + end +end diff --git a/mods/ITEMS/mcl_amethyst/mod.conf b/mods/ITEMS/mcl_amethyst/mod.conf new file mode 100644 index 000000000..ccbcbb430 --- /dev/null +++ b/mods/ITEMS/mcl_amethyst/mod.conf @@ -0,0 +1,5 @@ +name = mcl_amethyst +author = Emojiminetest +description = Amethyst related stuff for MCL5 +depends = mcl_init, mcl_core, mcl_wip +optional_depends = mcl_spyglass, mcl_copper diff --git a/mods/ITEMS/mcl_amethyst/screenshot.png b/mods/ITEMS/mcl_amethyst/screenshot.png new file mode 100644 index 000000000..4aa3a5676 Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/screenshot.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/LICENSE.txt b/mods/ITEMS/mcl_amethyst/textures/LICENSE.txt new file mode 100644 index 000000000..f0993b6ce --- /dev/null +++ b/mods/ITEMS/mcl_amethyst/textures/LICENSE.txt @@ -0,0 +1 @@ +Nova_Wostra Creative Commons Attribution-Share Alike 4.0 International License https://creativecommons.org/licenses/by-sa/4.0/ diff --git a/mods/ITEMS/mcl_amethyst/textures/amethyst_block.png b/mods/ITEMS/mcl_amethyst/textures/amethyst_block.png new file mode 100644 index 000000000..bc172f2a0 Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/amethyst_block.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/amethyst_cluster.png b/mods/ITEMS/mcl_amethyst/textures/amethyst_cluster.png new file mode 100644 index 000000000..1097d97b1 Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/amethyst_cluster.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/amethyst_cluster_block.png b/mods/ITEMS/mcl_amethyst/textures/amethyst_cluster_block.png new file mode 100644 index 000000000..7ea932bf8 Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/amethyst_cluster_block.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/amethyst_shard.png b/mods/ITEMS/mcl_amethyst/textures/amethyst_shard.png new file mode 100644 index 000000000..0d718c47a Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/amethyst_shard.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/budding_amethyst.png b/mods/ITEMS/mcl_amethyst/textures/budding_amethyst.png new file mode 100644 index 000000000..6dee8ee9b Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/budding_amethyst.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/calcite.png b/mods/ITEMS/mcl_amethyst/textures/calcite.png new file mode 100644 index 000000000..48e3ce5d9 Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/calcite.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/large_amethyst_bud.png b/mods/ITEMS/mcl_amethyst/textures/large_amethyst_bud.png new file mode 100644 index 000000000..5c7309434 Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/large_amethyst_bud.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/medium_amethyst_bud.png b/mods/ITEMS/mcl_amethyst/textures/medium_amethyst_bud.png new file mode 100644 index 000000000..5a54f63dc Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/medium_amethyst_bud.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/small_amethyst_bud.png b/mods/ITEMS/mcl_amethyst/textures/small_amethyst_bud.png new file mode 100644 index 000000000..7a414235b Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/small_amethyst_bud.png differ diff --git a/mods/ITEMS/mcl_amethyst/textures/tinted_glass.png b/mods/ITEMS/mcl_amethyst/textures/tinted_glass.png new file mode 100644 index 000000000..18e797789 Binary files /dev/null and b/mods/ITEMS/mcl_amethyst/textures/tinted_glass.png differ