Compare commits
10 Commits
3f5c73301e
...
6af99e83b3
Author | SHA1 | Date | |
---|---|---|---|
|
6af99e83b3 | ||
|
2901b94402 | ||
|
89cf9320b2 | ||
|
c73d131ea3 | ||
|
f283dd19b8 | ||
|
a050be9bcb | ||
|
3f347bd4ae | ||
|
0fe98347ed | ||
|
06f2aa117f | ||
|
7ceb2822de |
@ -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).
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
--CaveRealms crafting.lua
|
||||
|
||||
--CRAFT RECIPES--
|
||||
|
||||
--thin ice to water
|
||||
minetest.register_craft({
|
||||
output = "default:water_source",
|
||||
|
@ -1,3 +1,4 @@
|
||||
default
|
||||
stairs
|
||||
ethereal?
|
||||
mobs?
|
@ -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
|
||||
})
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
7
init.lua
7
init.lua
@ -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
|
||||
|
50
nodes.lua
50
nodes.lua
@ -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")
|
||||
|
32
plants.lua
32
plants.lua
@ -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
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 153 KiB |
Loading…
x
Reference in New Issue
Block a user