├── LICENSE.txt ├── README.txt ├── init.lua ├── locale ├── quartz.es.tr ├── quartz.fr.tr ├── quartz.pt_BR.tr └── template.txt ├── mod.conf ├── screenshot.png ├── settings.txt └── textures ├── quartz_block.png ├── quartz_chiseled.png ├── quartz_crystal_full.png ├── quartz_crystal_piece.png ├── quartz_ore.png ├── quartz_pillar_side.png ├── quartz_pillar_side_horizontal.png └── quartz_pillar_top.png /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 EvergreenTree 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | ___ _ __ __ _ 2 | / _ \ _ _ __ _ _ __| |_ ____ | \/ | ___ __| | 3 | | | | | | | |/ _` | '__| __|_ / | |\/| |/ _ \ / _` | 4 | | |_| | |_| | (_| | | | |_ / / | | | | (_) | (_| | 5 | \__\_\\__,_|\__,_|_| \__/___| |_| |_|\___/ \__,_| 6 | 7 | This mod adds quartz ore and some decorative blocks to minetest. 8 | 9 | Version: 1.0.0 10 | License: MIT (see LICENSE.txt) 11 | 12 | Dependencies: 13 | default (found in minetest_game) 14 | stairs (found in minetest_game) 15 | moreblocks or stairsplus (optional, for stairsplus support) 16 | 17 | Please report bugs at the GitHub issue tracker: 18 | https://github.com/minetest-mods/quartz/issues/ 19 | 20 | Crafting: 21 | 22 | Quartz Block: 23 | c = quartz crystal x = nothing 24 | 25 | x|x|x 26 | ----- 27 | c|c|x 28 | ----- 29 | c|c|x 30 | 31 | Quartz Pillar: 32 | q = quartz block x = nothing 33 | 34 | x|x|x 35 | ----- 36 | x|q|x 37 | ----- 38 | x|x|x 39 | 40 | 41 | Quartz Slab: 42 | q = quartz block x = nothing 43 | 44 | x|x|x 45 | ----- 46 | x|x|x 47 | ----- 48 | q|q|q 49 | 50 | Quartz Stairs: 51 | q = quartz block x = nothing 52 | 53 | q|x|x 54 | q|q|x 55 | q|q|q 56 | 57 | Quartz Pillar Slab: 58 | q = quartz pillar x = nothing 59 | 60 | x|x|x 61 | ----- 62 | x|x|x 63 | ----- 64 | q|q|q 65 | 66 | Chiseled Quartz: 67 | q = quartz slab x = nothing 68 | 69 | x|x|x 70 | ----- 71 | x|q|x 72 | ----- 73 | x|q|x 74 | 75 | Quartz Crystal Piece (usless as of now): 76 | c = quartz crystal x = nothing 77 | 78 | x|x|x 79 | ----- 80 | x|c|x 81 | ----- 82 | x|x|x 83 | 84 | If you have stairsplus (or moreblocks) installed, you will be able to use 85 | circular saws to cut quartz blocks. 86 | -------------------------------------------------------------------------------- /init.lua: -------------------------------------------------------------------------------- 1 | local settings = Settings(minetest.get_modpath("quartz").."/settings.txt") 2 | 3 | local S = minetest.get_translator("quartz") 4 | 5 | -- 6 | -- Item Registration 7 | -- 8 | 9 | -- Quartz Crystal 10 | minetest.register_craftitem("quartz:quartz_crystal", { 11 | description = S("Quartz Crystal"), 12 | inventory_image = "quartz_crystal_full.png", 13 | }) 14 | minetest.register_craftitem("quartz:quartz_crystal_piece", { 15 | description = S("Quartz Crystal Piece"), 16 | inventory_image = "quartz_crystal_piece.png", 17 | }) 18 | 19 | -- 20 | -- Node Registration 21 | -- 22 | 23 | -- Ore 24 | minetest.register_node("quartz:quartz_ore", { 25 | description = S("Quartz Ore"), 26 | tiles = {"default_stone.png^quartz_ore.png"}, 27 | groups = {cracky=3, stone=1}, 28 | drop = 'quartz:quartz_crystal', 29 | sounds = default.node_sound_stone_defaults(), 30 | }) 31 | 32 | minetest.register_ore({ 33 | ore_type = "scatter", 34 | ore = "quartz:quartz_ore", 35 | wherein = "default:stone", 36 | clust_scarcity = 10*10*10, 37 | clust_num_ores = 6, 38 | clust_size = 5, 39 | y_min = -31000, 40 | y_max = -5, 41 | }) 42 | 43 | -- Quartz Block 44 | minetest.register_node("quartz:block", { 45 | description = S("Quartz Block"), 46 | tiles = {"quartz_block.png"}, 47 | groups = {cracky=3, oddly_breakable_by_hand=1}, 48 | sounds = default.node_sound_glass_defaults(), 49 | }) 50 | 51 | -- Chiseled Quartz 52 | minetest.register_node("quartz:chiseled", { 53 | description = S("Chiseled Quartz"), 54 | tiles = {"quartz_chiseled.png"}, 55 | groups = {cracky=3, oddly_breakable_by_hand=1}, 56 | sounds = default.node_sound_glass_defaults(), 57 | }) 58 | 59 | -- Quartz Pillar 60 | minetest.register_node("quartz:pillar", { 61 | description = S("Quartz Pillar"), 62 | paramtype2 = "facedir", 63 | tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", 64 | "quartz_pillar_side.png"}, 65 | groups = {cracky=3, oddly_breakable_by_hand=1}, 66 | sounds = default.node_sound_glass_defaults(), 67 | on_place = minetest.rotate_node 68 | }) 69 | 70 | -- Stairs & Slabs 71 | stairs.register_stair_and_slab("quartzblock", "quartz:block", 72 | {cracky=3, oddly_breakable_by_hand=1}, 73 | {"quartz_block.png"}, 74 | S("Quartz Stair"), 75 | S("Quartz Slab"), 76 | default.node_sound_glass_defaults(), 77 | nil, 78 | S("Inner Quartz Stair"), 79 | S("Outer Quartz Stair") 80 | ) 81 | 82 | stairs.register_stair_and_slab("quartzstair", "quartz:pillar", 83 | {cracky=3, oddly_breakable_by_hand=1}, 84 | {"quartz_pillar_top.png", "quartz_pillar_top.png", 85 | "quartz_pillar_side.png"}, 86 | S("Quartz Pillar Stair"), 87 | S("Quartz Pillar Slab"), 88 | default.node_sound_glass_defaults(), 89 | nil, 90 | S("Inner Quartz Pillar Stair"), 91 | S("Outer Quartz Pillar Stair") 92 | ) 93 | 94 | -- 95 | -- Crafting 96 | -- 97 | 98 | -- Quartz Crystal Piece 99 | minetest.register_craft({ 100 | output = '"quartz:quartz_crystal_piece" 3', 101 | recipe = { 102 | {'quartz:quartz_crystal'} 103 | } 104 | }) 105 | 106 | -- Quartz Block 107 | minetest.register_craft({ 108 | output = '"quartz:block" 4', 109 | recipe = { 110 | {'quartz:quartz_crystal', 'quartz:quartz_crystal', ''}, 111 | {'quartz:quartz_crystal', 'quartz:quartz_crystal', ''}, 112 | {'', '', ''} 113 | } 114 | }) 115 | 116 | -- Chiseled Quartz 117 | minetest.register_craft({ 118 | output = 'quartz:chiseled 4', 119 | recipe = { 120 | {'quartz:block', 'quartz:block', ''}, 121 | {'quartz:block', 'quartz:block', ''}, 122 | {'', '', ''}, 123 | } 124 | }) 125 | 126 | -- Quartz Pillar 127 | minetest.register_craft({ 128 | output = 'quartz:pillar 2', 129 | recipe = { 130 | {'quartz:block', '', ''}, 131 | {'quartz:block', '', ''}, 132 | {'', '', ''}, 133 | } 134 | }) 135 | 136 | -- 137 | -- ABMS 138 | -- 139 | 140 | local dirs2 = {12, 9, 18, 7, 12} 141 | 142 | -- Replace all instances of the horizontal quartz pillar with the 143 | minetest.register_abm({ 144 | nodenames = {"quartz:pillar_horizontal"}, 145 | interval = 1, 146 | chance = 1, 147 | action = function(pos, node, active_object_count, active_object_count_wider) 148 | local fdir = node.param2 or 0 149 | nfdir = dirs2[fdir+1] 150 | minetest.add_node(pos, {name = "quartz:pillar", param2 = nfdir}) 151 | end, 152 | }) 153 | 154 | -- 155 | -- Compatibility with stairsplus 156 | -- 157 | 158 | if minetest.global_exists("stairsplus") then 159 | stairsplus:register_all("quartz", "block", "quartz:block", { 160 | description = "Quartz Block", 161 | tiles = {"quartz_block.png"}, 162 | groups = {cracky=3, oddly_breakable_by_hand=1}, 163 | sounds = default.node_sound_glass_defaults() 164 | }) 165 | 166 | stairsplus:register_all("quartz", "chiseled", "quartz:chiseled", { 167 | description = "Chiseled Quartz", 168 | tiles = {"quartz_chiseled.png"}, 169 | groups = {cracky=3, oddly_breakable_by_hand=1}, 170 | sounds = default.node_sound_glass_defaults() 171 | }) 172 | 173 | stairsplus:register_all("quartz", "pillar", "quartz:pillar", { 174 | description = "Quartz Pillar", 175 | tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", 176 | "quartz_pillar_side.png"}, 177 | groups = {cracky=3, oddly_breakable_by_hand=1}, 178 | sounds = default.node_sound_glass_defaults() 179 | }) 180 | end 181 | 182 | -- 183 | -- Deprecated 184 | -- 185 | 186 | if settings:get_bool("ENABLE_HORIZONTAL_PILLAR") then 187 | -- Quartz Pillar (horizontal) 188 | minetest.register_node("quartz:pillar_horizontal", { 189 | description = "Quartz Pillar Horizontal", 190 | tiles = {"quartz_pillar_side.png", "quartz_pillar_side.png", 191 | "quartz_pillar_side.png^[transformR90", 192 | "quartz_pillar_side.png^[transformR90", "quartz_pillar_top.png", 193 | "quartz_pillar_top.png"}, 194 | paramtype2 = "facedir", 195 | drop = 'quartz:pillar', 196 | groups = {cracky=3, oddly_breakable_by_hand=1, 197 | not_in_creative_inventory=1}, 198 | sounds = default.node_sound_glass_defaults(), 199 | }) 200 | end 201 | -------------------------------------------------------------------------------- /locale/quartz.es.tr: -------------------------------------------------------------------------------- 1 | # textdomain: quartz 2 | 3 | 4 | ### init.lua ### 5 | 6 | Chiseled Quartz=Cuarzo cincelado 7 | Inner Quartz Pillar Stair= 8 | Inner Quartz Stair= 9 | Outer Quartz Pillar Stair= 10 | Outer Quartz Stair= 11 | Quartz Block=Bloque de cuarzo 12 | Quartz Crystal=Cristal de cuarzo 13 | Quartz Crystal Piece=Trozo de cristal de cuarzo 14 | Quartz Ore=Mineral de cuarzo 15 | Quartz Pillar=Pilar de cuarzo 16 | Quartz Pillar Slab=Losa de pilar de cuarzo 17 | Quartz Pillar Stair=Escaleras de pilar de cuarzo 18 | Quartz Slab=Losa de cuarzo 19 | Quartz Stair=Escaleras de cuarzo 20 | -------------------------------------------------------------------------------- /locale/quartz.fr.tr: -------------------------------------------------------------------------------- 1 | # textdomain: quartz 2 | 3 | 4 | ### init.lua ### 5 | 6 | Chiseled Quartz=Quartz ciselé 7 | Inner Quartz Pillar Stair=Escalier intérieur en pilier en quartz 8 | Inner Quartz Stair=Escalier intérieur en quartz 9 | Outer Quartz Pillar Stair=Escalier extérieur en pilier de quartz 10 | Outer Quartz Stair=Escalier extérieur en quartz 11 | Quartz Block=Bloc de quartz 12 | Quartz Crystal=Cristal de quartz 13 | Quartz Crystal Piece=Morceau de cristal de quartz 14 | Quartz Ore=Minerai de quartz 15 | Quartz Pillar=Pilier en quartz 16 | Quartz Pillar Slab=Dalle en pilier en quartz 17 | Quartz Pillar Stair=Escalier en pilier en quartz 18 | Quartz Slab=Dalle en quartz 19 | Quartz Stair=Escalier en quartz 20 | -------------------------------------------------------------------------------- /locale/quartz.pt_BR.tr: -------------------------------------------------------------------------------- 1 | # textdomain: quartz 2 | 3 | 4 | ### init.lua ### 5 | 6 | Chiseled Quartz=Quartzo Cinzelado 7 | Inner Quartz Pillar Stair= 8 | Inner Quartz Stair= 9 | Outer Quartz Pillar Stair= 10 | Outer Quartz Stair= 11 | Quartz Block=Bloco de Quartzo 12 | Quartz Crystal=Cristal de Quartzo 13 | Quartz Crystal Piece=Pedaço de Cristal de Quartzo 14 | Quartz Ore=Minério de Quartzo 15 | Quartz Pillar=Pilar de Quartzo 16 | Quartz Pillar Slab=Laje de Pilar de Quartzo 17 | Quartz Pillar Stair=Escada de Pilar de Quartzo 18 | Quartz Slab=Laje de quartzo 19 | Quartz Stair=Escada de quartzo 20 | -------------------------------------------------------------------------------- /locale/template.txt: -------------------------------------------------------------------------------- 1 | # textdomain: quartz 2 | 3 | 4 | ### init.lua ### 5 | 6 | Chiseled Quartz= 7 | Inner Quartz Pillar Stair= 8 | Inner Quartz Stair= 9 | Outer Quartz Pillar Stair= 10 | Outer Quartz Stair= 11 | Quartz Block= 12 | Quartz Crystal= 13 | Quartz Crystal Piece= 14 | Quartz Ore= 15 | Quartz Pillar= 16 | Quartz Pillar Slab= 17 | Quartz Pillar Stair= 18 | Quartz Slab= 19 | Quartz Stair= 20 | -------------------------------------------------------------------------------- /mod.conf: -------------------------------------------------------------------------------- 1 | name = quartz 2 | description = Adds quartz ore and some decorative quartz blocks. 3 | depends = default,stairs 4 | optional_depends = moreblocks,stairsplus 5 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/screenshot.png -------------------------------------------------------------------------------- /settings.txt: -------------------------------------------------------------------------------- 1 | # Set this to true to allow usage of the stairsplus mod in moreblocks 2 | 3 | ENABLE_STAIRSPLUS = false 4 | 5 | # This enables the old horizontal pillar block(deprecated, be sure to convert them back to normal pillars) 6 | 7 | ENABLE_HORIZONTAL_PILLAR = true 8 | -------------------------------------------------------------------------------- /textures/quartz_block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/textures/quartz_block.png -------------------------------------------------------------------------------- /textures/quartz_chiseled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/textures/quartz_chiseled.png -------------------------------------------------------------------------------- /textures/quartz_crystal_full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/textures/quartz_crystal_full.png -------------------------------------------------------------------------------- /textures/quartz_crystal_piece.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/textures/quartz_crystal_piece.png -------------------------------------------------------------------------------- /textures/quartz_ore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/textures/quartz_ore.png -------------------------------------------------------------------------------- /textures/quartz_pillar_side.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/textures/quartz_pillar_side.png -------------------------------------------------------------------------------- /textures/quartz_pillar_side_horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/textures/quartz_pillar_side_horizontal.png -------------------------------------------------------------------------------- /textures/quartz_pillar_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minetest-mods/quartz/85ada205031785ebd5879901836376cf47e1ae96/textures/quartz_pillar_top.png --------------------------------------------------------------------------------