Compare commits

...

10 Commits

Author SHA1 Message Date
AnyZeeAreOkay
6af99e83b3 Update config.lua 2019-06-02 10:09:23 +01:00
ezhh
2901b94402 Adjust icicle selection box 2018-09-28 17:43:46 +01:00
ezhh
89cf9320b2 Update readme links 2018-09-28 10:59:28 +01:00
ezhh
c73d131ea3 Remove useless and incorrect comments 2018-07-18 11:49:50 +01:00
ezhh
f283dd19b8 Add screenshot 2018-05-24 00:19:54 +01:00
ezhh
a050be9bcb Fix dungeon master spawning 2017-09-21 15:48:06 +01:00
ezhh
3f347bd4ae Add gem and spike aliases for compatibility. 2017-09-04 11:40:13 +01:00
Ezhh
0fe98347ed Enable moss/lichen/algae spreading (#17) 2017-08-23 22:56:17 +01:00
Ezhh
06f2aa117f Add stairs and slabs for obsidian brick (#16) 2017-06-10 14:04:57 +01:00
Ezhh
7ceb2822de Add attached_node group to plants and gems (#15) 2017-03-22 14:02:15 +10:00
10 changed files with 75 additions and 43 deletions

View File

@ -24,8 +24,8 @@ Contributors:
## Recommended Additions
- VanessaE's HDX texturepacks provide alternative textures. For example,
https://github.com/VanessaE/hdx-128.
- ethereal mod unlocks additional content (https://github.com/tenplus1/ethereal).
- mobs_monster mod allows Dungeon Masters to spawn in the Dungeon Master's Lair biome (https://github.com/tenplus1/mobs_monster).
- mobs_redo is required to run mobs_monster (https://github.com/tenplus1/mobs_redo).
https://gitlab.com/VanessaE/hdx-128.
- ethereal mod unlocks additional content (https://notabug.org/tenplus1/ethereal).
- mobs_monster mod allows Dungeon Masters to spawn in the Dungeon Master's Lair biome (https://notabug.org/tenplus1/mobs_monster).
- mobs_redo is required to run mobs_monster (https://notabug.org/tenplus1/mobs_redo).
- abritorch adds coloured torches made with caverealms items (https://github.com/Ezhh/abritorch).

View File

@ -1,4 +1,3 @@
local CONFIG_FILE_PREFIX = "caverealms."
caverealms.config = {}
@ -8,11 +7,11 @@ caverealms.config = {}
local function setting(stype, name, default)
local value
if stype == "bool" then
value = minetest.setting_getbool(CONFIG_FILE_PREFIX..name)
value = minetest.settings:get_bool(CONFIG_FILE_PREFIX..name)
elseif stype == "string" then
value = minetest.setting_get(CONFIG_FILE_PREFIX..name)
value = minetest.settings:get(CONFIG_FILE_PREFIX..name)
elseif stype == "number" then
value = tonumber(minetest.setting_get(CONFIG_FILE_PREFIX..name))
value = tonumber(minetest.settings:get(CONFIG_FILE_PREFIX..name))
end
if value == nil then
value = default
@ -52,4 +51,3 @@ setting("bool", "dm_spawn", true)
--Deep cave settings
setting("number", "deep_cave", -7000) -- upper limit

View File

@ -1,7 +1,3 @@
--CaveRealms crafting.lua
--CRAFT RECIPES--
--thin ice to water
minetest.register_craft({
output = "default:water_source",

View File

@ -1,3 +1,4 @@
default
stairs
ethereal?
mobs?

View File

@ -1,4 +1,3 @@
mobs:spawn({
name = "mobs_monster:dungeon_master",
nodes = {"caverealms:hot_cobble"},
@ -8,7 +7,6 @@ mobs:spawn({
active_object_count = 2,
max_height = -8000,
on_spawn = function(self, pos)
self = self:get_luaentity()
self.hp_max = 70
self.health = 70
self.damage = 5
@ -16,5 +14,3 @@ mobs:spawn({
self.dogshoot_switch = 0
end
})

View File

@ -1,7 +1,3 @@
--CaveRealms functions.lua
--FUNCTIONS--
local H_LAG = caverealms.config.h_lag --15 --max height for stalagmites
local H_LAC = caverealms.config.h_lac --20 --...stalactites
local H_CRY = caverealms.config.h_cry --9 --max height of glow crystals

View File

@ -1,10 +1,3 @@
-- caverealms v.0.8 by HeroOfTheWinds
-- original cave code modified from paramat's subterrain
-- For Minetest 0.4.8 stable
-- Depends default
-- License: code WTFPL
caverealms = {} --create a container for functions and constants
--grab a shorthand for the filepath of the mod

View File

@ -1,7 +1,3 @@
-- CaveRealms nodes.lua
--NODES--
--glowing crystal
minetest.register_node("caverealms:glow_crystal", {
description = "Glow Sapphire",
@ -151,7 +147,7 @@ minetest.register_node("caverealms:glow_gem", {
inventory_image = "caverealms_glow_gem.png",
wield_image = "caverealms_glow_gem.png",
is_ground_content = true,
groups = {cracky=3, oddly_breakable_by_hand=1},
groups = {cracky = 3, oddly_breakable_by_hand = 1, attached_node = 1},
sounds = default.node_sound_glass_defaults(),
light_source = 11,
paramtype = "light",
@ -172,7 +168,7 @@ minetest.register_node("caverealms:salt_gem", {
inventory_image = "caverealms_salt_gem.png",
wield_image = "caverealms_salt_gem.png",
is_ground_content = true,
groups = {cracky=3, oddly_breakable_by_hand=1},
groups = {cracky = 3, oddly_breakable_by_hand = 1, attached_node = 1},
sounds = default.node_sound_glass_defaults(),
light_source = 11,
paramtype = "light",
@ -193,7 +189,7 @@ minetest.register_node("caverealms:spike", {
inventory_image = "caverealms_spike.png",
wield_image = "caverealms_spike.png",
is_ground_content = true,
groups = {cracky=3, oddly_breakable_by_hand=1},
groups = {cracky = 3, oddly_breakable_by_hand = 1, attached_node = 1},
sounds = default.node_sound_stone_defaults(),
light_source = 3,
paramtype = "light",
@ -225,7 +221,7 @@ minetest.register_node("caverealms:icicle_up", {
visual_scale = 1.0,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
fixed = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5},
},
})
@ -246,7 +242,7 @@ minetest.register_node("caverealms:icicle_down", {
visual_scale = 1.0,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
fixed = {-0.5, 7/16, -0.5, 0.5, 0.5, 0.5},
},
})
@ -357,6 +353,25 @@ minetest.register_node("caverealms:glow_obsidian_brick_2", {
sounds = default.node_sound_stone_defaults(),
})
--Glow Obsidian Stairs/Slabs
stairs.register_stair_and_slab(
"glow_obsidian_brick",
"caverealms:glow_obsidian_brick",
{cracky = 1, level = 2},
{"caverealms_glow_obsidian_brick.png"},
"Glow Obsidian Brick Stair",
"Glow Obsidian Brick Slab",
default.node_sound_stone_defaults())
stairs.register_stair_and_slab(
"glow_obsidian_brick_2",
"caverealms:glow_obsidian_brick_2",
{cracky = 1, level = 2},
{"caverealms_glow_obsidian_brick_2.png"},
"Glow Obsidian Brick Stair",
"Glow Obsidian Brick Slab",
default.node_sound_stone_defaults())
--Glow Obsidian Glass
minetest.register_node("caverealms:glow_obsidian_glass", {
description = "Glow Obsidian Glass",
@ -488,5 +503,20 @@ minetest.register_node("caverealms:dm_statue", {
})
-- Compatibility: "caverealms:hanging_thin_ice" was removed 4-March-2017
-- Compatibility
minetest.register_alias("caverealms:hanging_thin_ice", "caverealms:thin_ice")
minetest.register_alias("caverealms:spike_2", "caverealms:spike")
minetest.register_alias("caverealms:spike_3", "caverealms:spike")
minetest.register_alias("caverealms:spike_4", "caverealms:spike")
minetest.register_alias("caverealms:spike_5", "caverealms:spike")
minetest.register_alias("caverealms:salt_gem_2", "caverealms:salt_gem")
minetest.register_alias("caverealms:salt_gem_3", "caverealms:salt_gem")
minetest.register_alias("caverealms:salt_gem_4", "caverealms:salt_gem")
minetest.register_alias("caverealms:salt_gem_5", "caverealms:salt_gem")
minetest.register_alias("caverealms:glow_gem_2", "caverealms:glow_gem")
minetest.register_alias("caverealms:glow_gem_3", "caverealms:glow_gem")
minetest.register_alias("caverealms:glow_gem_4", "caverealms:glow_gem")
minetest.register_alias("caverealms:glow_gem_5", "caverealms:glow_gem")

View File

@ -1,5 +1,3 @@
-- Cavrealms plants and trees for lichen, moss and algae biomes
-- Lichen biome
-- glowing fungi
@ -9,7 +7,7 @@ minetest.register_node("caverealms:fungus", {
inventory_image = "caverealms_fungi.png",
wield_image = "caverealms_fungi.png",
is_ground_content = true,
groups = {oddly_breakable_by_hand=3},
groups = {oddly_breakable_by_hand = 3, attached_node = 1},
light_source = 5,
paramtype = "light",
drawtype = "plantlike",
@ -29,7 +27,7 @@ minetest.register_node("caverealms:mycena", {
inventory_image = "caverealms_mycena.png",
wield_image = "caverealms_mycena.png",
is_ground_content = true,
groups = {oddly_breakable_by_hand=3},
groups = {oddly_breakable_by_hand = 3, attached_node = 1},
light_source = 6,
paramtype = "light",
drawtype = "plantlike",
@ -163,4 +161,28 @@ minetest.register_abm({
grow_caverealms_mushroom(pos)
end
end,
})
})
-- spread moss/lichen/algae to nearby cobblestone
minetest.register_abm({
label = "Caverealms stone spread",
nodenames = {
"caverealms:stone_with_moss",
"caverealms:stone_with_lichen",
"caverealms:stone_with_algae",
},
neighbors = {"air"},
interval = 16,
chance = 50,
catch_up = false,
action = function(pos, node)
local num = minetest.find_nodes_in_area_under_air(
{x = pos.x - 1, y = pos.y - 2, z = pos.z - 1},
{x = pos.x + 1, y = pos.y + 1, z = pos.z + 1},
"default:cobble")
if #num > 0 then
minetest.set_node(num[math.random(#num)], {name = node.name})
end
end,
})

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB