Compare commits

...

5 Commits

Author SHA1 Message Date
DonBatman b1cf8fb343 added mod.conf file 2016-03-20 08:29:24 -07:00
TenPlus1 7737b6d44e tweak 2016-02-01 19:58:22 +00:00
TenPlus1 77fc2ab5d6 sapling chance changed for smaller tree's, plantlike leaves default again 2016-01-31 14:25:48 +00:00
TenPlus1 1bd6be68e1 Added glowing vines (1x fire dust surrounded by vines) 2016-01-22 21:06:03 +00:00
TenPlus1 c378e96af8 cave generation cuts through soil by default (can be disabled in init.lua) 2016-01-21 20:35:40 +00:00
7 changed files with 48 additions and 15 deletions

View File

@ -1,5 +1,5 @@
-- override default dirt (to stop caves cutting away dirt)
minetest.override_item("default:dirt", {is_ground_content = false})
minetest.override_item("default:dirt", {is_ground_content = ethereal.cavedirt})
-- green dirt
minetest.register_node("ethereal:green_dirt", {
@ -9,7 +9,7 @@ minetest.register_node("ethereal:green_dirt", {
"default_dirt.png",
"default_dirt.png^default_grass_side.png"
},
is_ground_content = false,
is_ground_content = ethereal.cavedirt,
groups = {crumbly = 3, soil = 1, ethereal_grass = 1},
soil = {
base = "ethereal:green_dirt",
@ -24,7 +24,7 @@ minetest.register_node("ethereal:green_dirt", {
minetest.register_node("ethereal:dry_dirt", {
description = "Dried Dirt",
tiles = {"ethereal_dry_dirt.png"},
is_ground_content = false,
is_ground_content = ethereal.cavedirt,
groups = {crumbly = 3},
sounds = default.node_sound_dirt_defaults()
})
@ -53,7 +53,7 @@ for n = 1, #dirts do
"default_dirt.png",
"default_dirt.png^ethereal_grass_"..name.."_side.png"
},
is_ground_content = false,
is_ground_content = ethereal.cavedirt,
groups = {crumbly = 3, soil = 1, ethereal_grass = 1},
soil = {
base = "ethereal:"..name.."_dirt",
@ -143,7 +143,7 @@ if not minetest.get_modpath("bakedclay") then
description = "Red Baked Clay",
tiles = {"baked_clay_red.png"},
groups = {cracky = 3},
is_ground_content = false,
is_ground_content = ethereal.cavedirt,
sounds = default.node_sound_stone_defaults(),
})
@ -151,7 +151,7 @@ if not minetest.get_modpath("bakedclay") then
description = "Orange Baked Clay",
tiles = {"baked_clay_orange.png"},
groups = {cracky = 3},
is_ground_content = false,
is_ground_content = ethereal.cavedirt,
sounds = default.node_sound_stone_defaults(),
})
@ -159,7 +159,7 @@ if not minetest.get_modpath("bakedclay") then
description = "Grey Baked Clay",
tiles = {"baked_clay_grey.png"},
groups = {cracky = 3},
is_ground_content = false,
is_ground_content = ethereal.cavedirt,
sounds = default.node_sound_stone_defaults(),
})

View File

@ -54,7 +54,7 @@ minetest.register_abm({
local fflower = minetest.find_nodes_in_area_under_air(
pos0, pos1, {"ethereal:fire_flower"})
if #grass > 6
if #grass > 7
and #fflower < 1 then
grass = grass[math.random(#grass)]

View File

@ -9,8 +9,9 @@
]]
ethereal = {}
ethereal.leaftype = 1 -- 0 for 2D plantlike, 1 for 3D allfaces
ethereal.leafwalk = true -- true for walkable leaves, false to fall through
ethereal.leaftype = 0 -- 0 for 2D plantlike, 1 for 3D allfaces
ethereal.leafwalk = false -- true for walkable leaves, false to fall through
ethereal.cavedirt = true -- caves chop through dirt when true
-- Set following to 1 to enable biome or 0 to disable
ethereal.glacier = 1 -- Ice glaciers with snow

View File

@ -105,7 +105,7 @@ minetest.override_item("default:leaves", {
drop = {
max_items = 1,
items = {
{items = {"ethereal:tree_sapling"}, rarity = 20},
{items = {"ethereal:tree_sapling"}, rarity = 15},
{items = {"default:leaves"}}
}
},
@ -126,7 +126,7 @@ minetest.register_node("ethereal:orange_leaves", {
drop = {
max_items = 1,
items = {
{items = {"ethereal:orange_tree_sapling"}, rarity = 20},
{items = {"ethereal:orange_tree_sapling"}, rarity = 15},
{items = {"ethereal:orange_leaves"}}
}
},
@ -165,7 +165,7 @@ minetest.register_node("ethereal:bananaleaves", {
drop = {
max_items = 1,
items = {
{items = {"ethereal:banana_tree_sapling"}, rarity = 20},
{items = {"ethereal:banana_tree_sapling"}, rarity = 15},
{items = {"ethereal:bananaleaves"}}
}
},
@ -214,7 +214,7 @@ minetest.register_node("ethereal:palmleaves", {
drop = {
max_items = 1,
items = {
{items = {"ethereal:palm_sapling"}, rarity = 20},
{items = {"ethereal:palm_sapling"}, rarity = 15},
{items = {"ethereal:palmleaves"}}
}
},
@ -279,7 +279,7 @@ minetest.register_node("ethereal:frost_leaves", {
drop = {
max_items = 1,
items = {
{items = {"ethereal:frost_tree_sapling"}, rarity = 20},
{items = {"ethereal:frost_tree_sapling"}, rarity = 15},
{items = {"ethereal:frost_leaves"}}
}
},

1
mod.conf Normal file
View File

@ -0,0 +1 @@
name = ethereal

View File

@ -50,6 +50,37 @@ minetest.register_craft({
burntime = 20,
})
-- light strings (glowing vine)
minetest.register_node("ethereal:lightstring", {
description = "Light String Vine",
drawtype = "signlike",
tiles = {"lightstring.png"},
inventory_image = "lightstring.png",
wield_image = "lightstring.png",
paramtype = "light",
paramtype2 = "wallmounted",
light_source = 10,
walkable = false,
climbable = true,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
groups = {choppy = 3, oddly_breakable_by_hand = 1},
legacy_wallmounted = true,
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_craft({
output = "ethereal:lightstring 8",
recipe = {
{"ethereal:vine", "ethereal:vine", "ethereal:vine"},
{"ethereal:vine", "ethereal:fire_dust", "ethereal:vine"},
{"ethereal:vine", "ethereal:vine", "ethereal:vine"},
},
})
-- Fern (boston)
minetest.register_node("ethereal:fern", {
description = "Fern",

BIN
textures/lightstring.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B