123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- -- Renew mod for Minetest
- -- Copyright © 2018 Alex Yst <https://y.st./>
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU Lesser General Public
- -- License as published by the Free Software Foundation; either
- -- version 2.1 of the License, or (at your option) any later version.
- -- This software is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- -- Lesser General Public License for more details.
- -- You should have received a copy of the GNU Lesser General Public
- -- License along with this program. If not, see
- -- <https://www.gnu.org./licenses/>.
- -- This file contains numbers from the ore-spawning code from Minetest
- -- Game's default mod. That code is copyright Perttu "celeron55" Ahola
- -- <celeron55@gmail.com>, and was likewise released under the GNU
- -- LGPLv2.1+.
- minetest.register_node("renew:obsidian_shard", {
- -- description = "Obsidian Ore",
- tiles = {"default_stone.png^renew-mineral_obsidian.png"},
- groups = {cracky = 1},
- drop = "default:obsidian_shard",
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_ore({
- ore_type = "scatter",
- ore = "renew:obsidian_shard",
- wherein = "default:stone",
- clust_scarcity = 15 * 15 * 15,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = 1025,
- y_max = 31000,
- })
- minetest.register_ore({
- ore_type = "scatter",
- ore = "renew:obsidian_shard",
- wherein = "default:stone",
- clust_scarcity = 17 * 17 * 17,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = -255,
- y_max = -128,
- })
- minetest.register_ore({
- ore_type = "scatter",
- ore = "renew:obsidian_shard",
- wherein = "default:stone",
- clust_scarcity = 15 * 15 * 15,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = -31000,
- y_max = -256,
- })
|