Imported from trollstream "ContentDB"
commit
3c7f0142cf
|
@ -0,0 +1,14 @@
|
|||
zlib license
|
||||
============
|
||||
|
||||
Copyright (c) 2015 Calinou and contributors
|
||||
|
||||
**This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.**
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
||||
|
||||
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
||||
|
||||
3. This notice may not be removed or altered from any source distribution.
|
|
@ -0,0 +1 @@
|
|||
default
|
|
@ -0,0 +1,61 @@
|
|||
--[[
|
||||
=====================================================================
|
||||
** Meze **
|
||||
By Calinou.
|
||||
|
||||
Copyright (c) 2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
=====================================================================
|
||||
--]]
|
||||
|
||||
-- Map generation
|
||||
-- ==============
|
||||
|
||||
MEZE_FREQUENCY = 32 * 32 * 32
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "meze:meze",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = MEZE_FREQUENCY,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "meze:meze",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = MEZE_FREQUENCY,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
|
||||
local function die_later(digger)
|
||||
digger:set_hp(0)
|
||||
end
|
||||
|
||||
minetest.register_node("meze:meze", {
|
||||
description = "Meze Block",
|
||||
tiles = {"meze_meze_block.png"},
|
||||
is_ground_content = true,
|
||||
drop = "",
|
||||
groups = {cracky = 1, level = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
on_dig = function(pos, node, digger)
|
||||
if digger and minetest.setting_getbool("enable_damage") and not minetest.setting_getbool("creative_mode") then
|
||||
minetest.after(3, die_later, digger)
|
||||
minetest.chat_send_player(digger:get_player_name(), "You feel like you did a mistake.")
|
||||
minetest.node_dig(pos, node, digger)
|
||||
elseif digger then
|
||||
minetest.node_dig(pos, node, digger)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_alias("default:meze_block", "meze:meze")
|
Binary file not shown.
After Width: | Height: | Size: 303 B |
Loading…
Reference in New Issue