Add "ethereal" mod.
|
@ -118,6 +118,7 @@ The following mods are also included:
|
|||
* world/
|
||||
* [ambience][ambience_ultralite] (WTFPL / [CC-BY / CC-BY-SA / CC-BY-NC-SA / CC0](mods/world/ambience/sounds/SoundLicenses.txt))
|
||||
* [areas][] ([LGPL](mods/world/areas/LICENSE.txt))
|
||||
* [ethereal][] ([WTFPL](mods/world/ethereal/license.txt))
|
||||
* [glow][] (GPL)
|
||||
* [nether][] ([WTFPL / CC BY-SA](mods/world/nether/README.md))
|
||||
* [worldedge][] ([DWYWPL](mods/world/worldedge/licence.txt))
|
||||
|
@ -146,6 +147,7 @@ The following mods are also included:
|
|||
[craft_guide]: https://cornernote.github.io/minetest-craft_guide/
|
||||
[creeper]: https://forum.minetest.net/viewtopic.php?t=11891
|
||||
[elevator]: https://forum.minetest.net/viewtopic.php?t=12944
|
||||
[ethereal]: https://forum.minetest.net/viewtopic.php?t=14638
|
||||
[farming_plus]: https://forum.minetest.net/viewtopic.php?t=2787
|
||||
[fort_spikes]: https://forum.minetest.net/viewtopic.php?t=14574
|
||||
[glow]: https://forum.minetest.net/viewtopic.php?t=6300
|
||||
|
|
|
@ -0,0 +1,320 @@
|
|||
# ethereal
|
||||
|
||||
Ethereal Mapgen mod for Minetest (works on all except v6)
|
||||
|
||||
## Forum Topic
|
||||
- https://forum.minetest.net/viewtopic.php?f=11&t=14638
|
||||
|
||||
## Changelog
|
||||
|
||||
### 1.21
|
||||
|
||||
- Saplings need clear space above to grow (depending on height of tree)
|
||||
- Bonemeal changes to suit new sapling growth
|
||||
- Fixes and tweaks
|
||||
|
||||
### 1.20
|
||||
|
||||
- Tweaked Ethereal to work with new features and nodes in Minetest 0.4.14
|
||||
- Added bones found in dirt and bonemeal to make tree's and crops grow quicker
|
||||
- Tree's follow default rules where saplings need light to grow
|
||||
- Using default schematics for apple, pine, acacia and jungle tree's
|
||||
- Tidied and split code into separate files
|
||||
- Redid coloured grass spread function to run better
|
||||
- Added support for moreblock's stairsplus feature
|
||||
|
||||
### 1.19
|
||||
|
||||
- Added new biome routine to help restructure biomes
|
||||
- Tweaked biome values so that they are more spread out (no more huge bamboo biome)
|
||||
- Tweaked biome plant and tree decorations
|
||||
- Fixed farming compatibility when using hoe on ethereal dirt
|
||||
- Dirt with dry grass turns into green grass when near water
|
||||
- Ice or snow above sea level melts into river water
|
||||
- Disabling ethereal biomes no longer shows error messages
|
||||
- Fire Flowers re-generate, can also be made into Fire Dust and both are fuel
|
||||
- Optimize and tidy code
|
||||
|
||||
### 1.18
|
||||
|
||||
- Added Birch tree, also stairs; fence and gate
|
||||
- Added Fire flower to fiery biomes (careful, it hurts)
|
||||
- Tweaked biomes and decoration slightly
|
||||
- Added tree_tool for admin to quickly grow tree's
|
||||
- Cobble to Mossycobble when near water has been toned down a bit
|
||||
|
||||
### 1.17
|
||||
|
||||
- Added new Glacier biome filled with snow and ice
|
||||
- Changed Mesa biome to have more coloured clay patterns
|
||||
- Changed Bamboo biome to have tall tree-like stalks with leaves that give
|
||||
- Bamboo sprouts are now saplings to grow new stalks
|
||||
- Removed farmed mushrooms and replaced with default game mushrooms with spores
|
||||
|
||||
### 1.16
|
||||
|
||||
- Added new tree schematics that change when placed with random leaves, fruit and height
|
||||
- Changed frost dirt so that it no longer freezes water (saves lag)
|
||||
- Torches cannot be placed next to water, otherwise they drop as items
|
||||
- Added latest farming redo Bean Bushes to mapgen
|
||||
- Code tidy (thanks HybridDog) and bug fix
|
||||
- Banana, Orange and Apple fruits now drop when tree has been removed.
|
||||
|
||||
### 1.15
|
||||
|
||||
- Added Staff of Light (thanks Xanthin), crafted from illumishrooms and can turn stone into glostone and back again
|
||||
- Changed how Crystal Spikes reproduce
|
||||
- Crystal Ingots now require 2x mese crystal and 2x crystal spikes to craft
|
||||
- Removed obsidian brick & stairs now they are in default game, also removed pine wood stairs for same reason
|
||||
- Tidied code and optimized a few routines
|
||||
|
||||
|
||||
### 1.14
|
||||
|
||||
- Changed Ethereal to work with Minetest 0.4.11 update and new mapgen features
|
||||
- Changed Pine tree's to use default pine wood
|
||||
- Added pine wood fence, gate and stairs
|
||||
- Crystal Spikes now re-generate in crystal biomes
|
||||
- Removed layer mapgen, keeping spread as default
|
||||
|
||||
|
||||
### 1.13
|
||||
|
||||
- Changed melting feature to work with 0.4.11 pre-release now that group:hot and group:melt have been removed
|
||||
|
||||
|
||||
### 1.12
|
||||
|
||||
- Added ability to disable biomes in the init.lua file by setting to 1 (enable) or 0 (disable)
|
||||
- Supports Framing Redo 1.10 foods
|
||||
|
||||
|
||||
### 1.11
|
||||
|
||||
- Added Stairs for Ethereal wood types, mushroom, dry dirt, obsidian brick and clay
|
||||
- Added Green Coral which can be used as green dye
|
||||
- Craft 5x Ice in X pattern to give 5x Snow
|
||||
- Added Snow and Ice Bricks with their own stairs and slabs which melt when near heat
|
||||
|
||||
|
||||
### 1.10
|
||||
|
||||
- Added Stone Ladders (another use for cobble)
|
||||
- Craft 5x Gravel in X pattern to give 5 dirt, and 5x dirt in X pattern for 5 sand
|
||||
- Added Acacia tree's to desert biome (a nice pink wood to build with, thanks to VanessaE for textures)
|
||||
- Added Acacia fences and gates
|
||||
- Added Vines, craftable with 2x3 leaves
|
||||
|
||||
|
||||
### 1.09
|
||||
|
||||
- Fixed Quicksand bug where player see's only black when sinking instead of yellow effect, note this will only work on new maps or newly generated areas of map containing quicksand
|
||||
- Hot nodes will melt ice and snow in a better way
|
||||
- Few spelling errors sorted for sapling and wood names
|
||||
|
||||
|
||||
### 1.08
|
||||
|
||||
- Saplings produce better placed tree's when grown, routines have been redone
|
||||
- Orange tree's now spawn in prairie biomes
|
||||
- The usual code tidy and few bug fixes along the way
|
||||
|
||||
### 1.07
|
||||
|
||||
- If Farming Redo mod detected then it's growing routines will be used for Ethereal plantlife instead of default
|
||||
Leaftype and Mapstyle settings can be changed within init.lua file, new layered style maps are being tested
|
||||
Changed crafting recipe for Fences, they tie in with Gates a little better
|
||||
|
||||
### 1.06
|
||||
|
||||
- Added support for Farming Redo mod, all plants spawn on newly generated areas:
|
||||
- https://forum.minetest.net/viewtopic.php?id=9019
|
||||
|
||||
### 1.05b
|
||||
|
||||
- Added Gates for each of the fence types (thanks to Blockmen for gate model)
|
||||
- Players can no longer jump over fences unless they wear crystal boots < REMOVED
|
||||
|
||||
### 1.04
|
||||
|
||||
- Farming of Mushrooms, Wild Onions and Strawberries now use minetest 0.4.10 functions
|
||||
- Strawberries can be grown by using actual fruit, seeds no longer needed
|
||||
- Tree leaves are no longer walkable, player can go through them
|
||||
- Saplings now fall if block underneath disturbed
|
||||
|
||||
### 1.03
|
||||
|
||||
- Changed Fence recipe's so it doesn't interfere with 3d armor's wooden boots
|
||||
- Tweaked textures to bring down file sizes
|
||||
- Flowers, Sprouts and Ferns now spread over ALL grassland
|
||||
|
||||
### 1.02
|
||||
|
||||
- Fences added for each type of wood in Ethereal
|
||||
- Changes to biome settings, less artifacts
|
||||
|
||||
### 1.01
|
||||
|
||||
- Quicksand generates throughout world near sandy water
|
||||
- Bamboo as well as Papyrus now grow on dirt near water
|
||||
- Fixed Coral textures and light
|
||||
|
||||
### 1.00
|
||||
|
||||
- Seaweed now spawns in deep water and can grow up to 10 high
|
||||
- Coral also spawns in deep water and glows slightly (orange, pink and blue)
|
||||
- Above items can be crafted into dye, also Seaweed is edible
|
||||
- So long as sand isn't disturbed under the ocean, sealife will re-generate
|
||||
- Fixed Leaves inventory images and Mushroom selection box (thanks Wuzzy)
|
||||
|
||||
### 0.0.9
|
||||
#### 0.0.9p
|
||||
|
||||
- Willow Trees now spawn in grey biome instead of tiny grey trees (model by Phiwari123)
|
||||
- Redwood Trees now spawn in Mesa biome (model by Wes42033)
|
||||
- BakedClay mod no longer required for Mesa biome but used if found
|
||||
- Paper Wall added
|
||||
|
||||
#### 0.0.9o
|
||||
|
||||
- Added Obsidian Brick craft for building
|
||||
- Changed Illumishroom cave levels
|
||||
- Changed *is_ground_content* to false for ethereal dirt so mapgen doesn't carve it up with caves
|
||||
|
||||
#### 0.0.9n
|
||||
|
||||
- New textures for farming mushrooms and spores
|
||||
- Illumi-shrooms spawn in caves to brighten things up a little
|
||||
- Crafting a wooden sign now gives 4 instead of 1
|
||||
|
||||
#### 0.0.9m
|
||||
|
||||
- Changed Bamboo biome slightly, Bamboo Sprout has new image
|
||||
- Abm timings changed and a few bugs fixed
|
||||
- Crystal Gilly Staff has to be used (left-click) to replenish air while underwater
|
||||
- Crystal Shovel now works with protection mods
|
||||
- Tidied code and changed ladder recipe's to double output
|
||||
|
||||
#### 0.0.9L
|
||||
|
||||
- Scorched Tree's are now different sizes
|
||||
- Crystal Shovel with soft touch can now be used to dig up sand and gravel
|
||||
- Bamboo and Papyrus drop entire stalk when bottom node dug
|
||||
- Crystal Spikes require steel pick or better to dig and fall when dirt below is removed
|
||||
- Few changes to mapgen and water functions
|
||||
|
||||
#### 0.0.9k
|
||||
|
||||
- Fixed bug in charcoal lumps (no more placing as unknown nodes)
|
||||
- Added Crystal Shovel with soft touch, can be used to dig up dirt with grass intact
|
||||
- Fixed bug in Crystal Shovel, now works with dirt_with_snow and has sounds
|
||||
- Tweaked Fiery Biomes slightly, smaller craters on outside, large in hotter areas
|
||||
|
||||
#### 0.0.9i
|
||||
|
||||
- Cleaned up mapgen_v7.lua file, maps now generate a little faster
|
||||
- Removed cactus.mts, no longer required
|
||||
- Removed mushroomtwo.mts, no longer required
|
||||
- Removed bamboo.mts, no longer required
|
||||
- Removed deadtree.mts, no longer required
|
||||
- Few new textures added
|
||||
- Papyrus also spawns on jungle dirt near water
|
||||
- Replaced dead tree's with scorched tree's
|
||||
- Each scorched tree trunk crafts into 2x charcoal Lumps (fixed)
|
||||
- Torches can also be crafted from Charcoal
|
||||
|
||||
#### 0.0.9h
|
||||
|
||||
- Added Strawberry farming, Strawberry Seeds and new Textures
|
||||
- Tidied up mapgen_v7.lua for better spawning of plants and trees
|
||||
- Player can no longer walk through Bamboo Stalks
|
||||
|
||||
#### 0.0.9g
|
||||
|
||||
- Changed Ethereal's growing routine for Saplings, it now uses 1 single abm to grow all tree's
|
||||
|
||||
#### 0.0.9f
|
||||
|
||||
- Added Fishing to Ethereal, Fishing Rod, Worms, Fish and Cooked Fish (Left-click the water with a Baited Rod in the hope of landing your prize)
|
||||
|
||||
#### 0.0.9e
|
||||
|
||||
- Changed textures for Bowl, Mushroom Soup, Crystal Spike, Banana Loaf, Strawberry & Bush
|
||||
- Added Hearty Stew Recipes
|
||||
- If BakedClay mod is installed, Mesa Biome will be added to the mix
|
||||
|
||||
#### 0.0.9d
|
||||
|
||||
- Added Bamboo Grove and Bamboo Sprouts )
|
||||
- Craft Bamboo into Paper and Bamboo Flooring
|
||||
- Cactus is now edible when crafted beside empty bucket
|
||||
|
||||
#### 0.0.9c
|
||||
|
||||
- Code re-worked so mod now uses sections for each function (easier to read and edit)
|
||||
- New textures for Strawberry Bush and Crystal Spikes
|
||||
|
||||
#### 0.0.9b
|
||||
|
||||
- Pine Tree Leaves have new texture and sometimes give Pine Nuts
|
||||
- Jungle Tree's now use default Jungle Wood as texture
|
||||
|
||||
#### 0.0.9
|
||||
|
||||
- Prairie, Grove, Jungle and Snowy biomes have their own dirt
|
||||
- Saplings will only grow in the biomes they were taken from
|
||||
- Mapgen tweaks and code changes for new dirt added
|
||||
|
||||
### 0.0.8 Changes
|
||||
#### 0.0.8m
|
||||
|
||||
- Added Banana Trunk and Wood
|
||||
- Added Boston Ferns to Grove biome
|
||||
- Added edible Fern Tubers
|
||||
- Mushroom Biome now has different sized mushrooms
|
||||
- Changed Pine Needles texture
|
||||
|
||||
#### 0.0.8k
|
||||
|
||||
- Added Desert Sand biome
|
||||
- Added Alpine biome with Pine Trees and Snow
|
||||
- Added Grove biome with Banana Tree's (saplings only grow in that temperate area)
|
||||
- Added Bananas, Banana Dough and Banana Bread
|
||||
- Changed biome generation to be more like real-world environs (e.g. shrooms like hot & humid so that's where they spawn)
|
||||
- Tidied up code and removed redundant lines
|
||||
|
||||
#### 0.0.8e
|
||||
|
||||
- New Plains biome added between Fiery and Green areas to hopefully stop forest fires, these have dry dirt and dead trees
|
||||
- Placing water near Dry Dirt turns it into normal dirt, cooking normal dirt changes it into Dry Dirt
|
||||
|
||||
Note: if your Ethereal world does have a few forest fires appearing you can always add this line to your minetest.conf file:
|
||||
|
||||
disable_fire = true
|
||||
|
||||
#### 0.0.8
|
||||
|
||||
- Healing Tree (grows on high snowy peaks, leaves are edible and golden apples heal all hearts)
|
||||
- Added some new images for Cooked Mushroom Soup, Mushroom Spores and Palm Trees
|
||||
- 2D leaves or 3D leaves option, both wave in wind if enabled
|
||||
- All new saplings can grow on their native dirt, and palm tree's on sand
|
||||
- Crystal Spike or Crystal Dirt freezes nearby water, Heat can also melt ice
|
||||
- Wild Mushrooms now give Spores, plant these to grow edible mushrooms
|
||||
- Cobble in water turns mossy
|
||||
- Palm Leaves can be cooked into Palm Wax and made into Candles
|
||||
|
||||
### 0.0.7c
|
||||
|
||||
- Gravel can be found under lake biomes (or craft 5 cobble in X pattern)
|
||||
- Papyrus is found and grows on dirt near water (also craft 2x3 string for paper)
|
||||
- Mushroom Heads have a chance of giving Mushroom Sapling (craft 1 head = 4x Mushrooms ready for Planting)
|
||||
- Trees and Mushrooms have a chance of giving Saplings
|
||||
- Frost Trunk and Mushroom Trunk are rotatable (craft 1 Mushroom Trunk = 4x White Dye)
|
||||
- Desert areas have Dry Shrubs added
|
||||
- Crystal Spikes added to Crystal Biome (watch out they hurt)
|
||||
- Crystal Ingots added to make Sword and Pick
|
||||
- New Pine Tree model added to snowy biome which adds Pine leaves and drops Pine Saplings
|
||||
- Fixed GrassyTwo biome so that BigTree now spawns and grows from sapling
|
||||
- Added Crystal Gilly Staff to allow breathing underwater (so long as it's in hand)
|
||||
- Added Palm Trees, Trunk, Wood, Sapling, Coconuts, Coconut Slice (to eat)
|
||||
- Thanks to VanessaE's for the Palm textures
|
|
@ -0,0 +1,297 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- bone item
|
||||
minetest.register_craftitem("ethereal:bone", {
|
||||
description = S("Bone"),
|
||||
inventory_image = "bone.png",
|
||||
})
|
||||
|
||||
-- bonemeal recipes
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'ethereal:bonemeal 2',
|
||||
recipe = {'ethereal:bone'},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'ethereal:bonemeal 4',
|
||||
recipe = {'bones:bones'},
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:white 2",
|
||||
recipe = {"ethereal:bonemeal"},
|
||||
})
|
||||
|
||||
-- add bones to dirt
|
||||
minetest.override_item("default:dirt", {
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
items = {'ethereal:bone', 'default:dirt'},
|
||||
rarity = 30,
|
||||
},
|
||||
{
|
||||
items = {'default:dirt'},
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
local plants = {
|
||||
"flowers:dandelion_white",
|
||||
"flowers:dandelion_yellow",
|
||||
"flowers:geranium",
|
||||
"flowers:rose",
|
||||
"flowers:tulip",
|
||||
"flowers:viola",
|
||||
}
|
||||
|
||||
|
||||
local crops = {
|
||||
{"farming:cotton_", 8},
|
||||
{"farming:wheat_", 8},
|
||||
{"farming:tomato_", 8},
|
||||
{"farming:corn_", 8},
|
||||
{"farming:melon_", 8},
|
||||
{"farming:pumpkin_", 8},
|
||||
{"farming:beanpole_", 5},
|
||||
{"farming:blueberry_", 4},
|
||||
{"farming:raspberry_", 4},
|
||||
{"farming:carrot_", 8},
|
||||
{"farming:cocoa_", 3},
|
||||
{"farming:coffee_", 5},
|
||||
{"farming:cucumber_", 4},
|
||||
{"farming:potato_", 4},
|
||||
{"farming:grapes_", 8},
|
||||
{"farming:rhubarb_", 3},
|
||||
{"ethereal:strawberry_", 8},
|
||||
{"ethereal:onion_", 5},
|
||||
{"farming:barley_", 7},
|
||||
}
|
||||
|
||||
-- check if sapling has enough height room to grow
|
||||
local function enough_height(pos, height)
|
||||
|
||||
local nod = minetest.line_of_sight(
|
||||
{x = pos.x, y = pos.y + 1, z = pos.z},
|
||||
{x = pos.x, y = pos.y + height, z = pos.z})
|
||||
|
||||
if not nod then
|
||||
return false -- obstructed
|
||||
else
|
||||
return true -- can grow
|
||||
end
|
||||
end
|
||||
|
||||
-- growing routine
|
||||
local function growth(pointed_thing)
|
||||
|
||||
local pos = pointed_thing.under
|
||||
local node = minetest.get_node(pos)
|
||||
|
||||
if node.name == "ignore" then
|
||||
return
|
||||
end
|
||||
|
||||
minetest.add_particlespawner({
|
||||
amount = 4,
|
||||
time = 0.15,
|
||||
minpos = pos,
|
||||
maxpos = pos,
|
||||
minvel = {x = -1, y = 2, z = -1},
|
||||
maxvel = {x = 1, y = 4, z = 1},
|
||||
minacc = {x = -1, y = -1, z = -1},
|
||||
maxacc = {x = 1, y = 1, z = 1},
|
||||
minexptime = 1,
|
||||
maxexptime = 1,
|
||||
minsize = 1,
|
||||
maxsize = 3,
|
||||
texture = "bonemeal_particle.png",
|
||||
})
|
||||
|
||||
-- 50/50 chance of growing a sapling
|
||||
if minetest.get_item_group(node.name, "sapling") > 0 then
|
||||
|
||||
if math.random(1, 2) == 1 then
|
||||
return
|
||||
end
|
||||
|
||||
local under = minetest.get_node({
|
||||
x = pos.x,
|
||||
y = pos.y - 1,
|
||||
z = pos.z
|
||||
})
|
||||
|
||||
local height = minetest.registered_nodes[node.name].grown_height
|
||||
|
||||
-- do we have enough height to grow sapling into tree?
|
||||
if height and not enough_height(pos, height) then
|
||||
return
|
||||
end
|
||||
|
||||
-- specific check for palm tree's, so they grow on sand
|
||||
if node.name == "ethereal:palm_sapling"
|
||||
and under.name == "default:sand" then
|
||||
ethereal.grow_palm_tree(pos)
|
||||
return
|
||||
end
|
||||
|
||||
-- check for soil under sapling
|
||||
if minetest.get_item_group(under.name, "soil") == 0 then
|
||||
return
|
||||
end
|
||||
|
||||
-- grow ethereal tree
|
||||
if node.name == "ethereal:palm_sapling" then
|
||||
ethereal.grow_palm_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:yellow_tree_sapling" then
|
||||
ethereal.grow_yellow_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:big_tree_sapling" then
|
||||
ethereal.grow_big_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:banana_tree_sapling" then
|
||||
ethereal.grow_banana_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:frost_tree_sapling" then
|
||||
ethereal.grow_frost_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:mushroom_sapling" then
|
||||
ethereal.grow_mushroom_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:willow_sapling" then
|
||||
ethereal.grow_willow_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:redwood_sapling" then
|
||||
ethereal.grow_redwood_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:orange_tree_sapling" then
|
||||
ethereal.grow_orange_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:bamboo_sprout" then
|
||||
ethereal.grow_bamboo_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:birch_sapling" then
|
||||
ethereal.grow_birch_tree(pos)
|
||||
|
||||
-- grow default tree
|
||||
elseif node.name == "default:sapling"
|
||||
and enough_height(pos, 7) then
|
||||
default.grow_new_apple_tree(pos)
|
||||
|
||||
elseif node.name == "default:junglesapling"
|
||||
and enough_height(pos, 15) then
|
||||
default.grow_new_jungle_tree(pos)
|
||||
|
||||
elseif node.name == "default:pine_sapling"
|
||||
and enough_height(pos, 11) then
|
||||
|
||||
if #minetest.find_nodes_in_area(
|
||||
{x = pos.x - 1, y = pos.y - 1, z = pos.z - 1},
|
||||
{x = pos.x + 1, y = pos.y + 1, z = pos.z + 1},
|
||||
{"default:snow", "default:snowblock", "default:dirt_with_snow"}) > 0 then
|
||||
|
||||
default.grow_new_snowy_pine_tree(pos)
|
||||
else
|
||||
default.grow_new_pine_tree(pos)
|
||||
end
|
||||
|
||||
elseif node.name == "default:acacia_sapling"
|
||||
and enough_height(pos, 7) then
|
||||
default.grow_new_acacia_tree(pos)
|
||||
|
||||
elseif node.name == "default:aspen_sapling"
|
||||
and enough_height(pos, 11) then
|
||||
default.grow_new_aspen_tree(pos)
|
||||
end
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
local stage = ""
|
||||
|
||||
-- grow registered crops
|
||||
for n = 1, #crops do
|
||||
|
||||
if string.find(node.name, crops[n][1]) then
|
||||
|
||||
stage = tonumber( node.name:split("_")[2] )
|
||||
stage = math.min(stage + math.random(1, 4), crops[n][2])
|
||||
|
||||
minetest.set_node(pos, {name = crops[n][1] .. stage})
|
||||
|
||||
return
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- grow grass and flowers
|
||||
if minetest.get_item_group(node.name, "soil") > 0 then
|
||||
|
||||
local dirt = minetest.find_nodes_in_area_under_air(
|
||||
{x = pos.x - 2, y = pos.y - 1, z = pos.z - 2},
|
||||
{x = pos.x + 2, y = pos.y + 1, z = pos.z + 2},
|
||||
{"group:soil"})
|
||||
|
||||
for _,n in pairs(dirt) do
|
||||
|
||||
local pos2 = n
|
||||
|
||||
pos2.y = pos2.y + 1
|
||||
|
||||
if math.random(0, 5) > 3 then
|
||||
|
||||
minetest.swap_node(pos2,
|
||||
{name = plants[math.random(1, #plants)]})
|
||||
else
|
||||
|
||||
if node.name == "default:dirt_with_dry_grass" then
|
||||
minetest.swap_node(pos2,
|
||||
{name = "default:dry_grass_" .. math.random(1, 5)})
|
||||
else
|
||||
minetest.swap_node(pos2,
|
||||
{name = "default:grass_" .. math.random(1, 5)})
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- bonemeal item
|
||||
minetest.register_craftitem("ethereal:bonemeal", {
|
||||
description = S("Bone Meal"),
|
||||
inventory_image = "bonemeal.png",
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
||||
if pointed_thing.type == "node" then
|
||||
|
||||
-- Check if node protected
|
||||
if minetest.is_protected(pointed_thing.under, user:get_player_name()) then
|
||||
return
|
||||
end
|
||||
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
|
||||
local item = user:get_wielded_item()
|
||||
|
||||
item:take_item()
|
||||
user:set_wielded_item(item)
|
||||
end
|
||||
|
||||
growth(pointed_thing)
|
||||
|
||||
itemstack:take_item()
|
||||
|
||||
return itemstack
|
||||
end
|
||||
end,
|
||||
})
|
|
@ -0,0 +1,46 @@
|
|||
|
||||
-- add compatibility for ethereal nodes already in default game or name changed
|
||||
minetest.register_alias("ethereal:acacia_trunk", "default:acacia_tree")
|
||||
minetest.register_alias("ethereal:acacia_wood", "default:acacia_wood")
|
||||
|
||||
minetest.register_alias("ethereal:fence_acacia", "default:fence_acacia_wood")
|
||||
minetest.register_alias("ethereal:fence_junglewood", "default:fence_junglewood")
|
||||
minetest.register_alias("ethereal:fence_pine", "default:fence_pine_wood")
|
||||
|
||||
minetest.register_alias("ethereal:acacia_leaves", "default:acacia_leaves")
|
||||
minetest.register_alias("ethereal:pineleaves", "default:pine_needles")
|
||||
|
||||
minetest.register_alias("ethereal:mushroom_craftingitem", "flowers:mushroom_brown")
|
||||
minetest.register_alias("ethereal:mushroom_plant", "flowers:mushroom_brown")
|
||||
minetest.register_alias("ethereal:mushroom_soup_cooked", "ethereal:mushroom_soup")
|
||||
minetest.register_alias("ethereal:mushroom_1", "flowers:mushroom_brown")
|
||||
minetest.register_alias("ethereal:mushroom_2", "flowers:mushroom_brown")
|
||||
minetest.register_alias("ethereal:mushroom_3", "flowers:mushroom_brown")
|
||||
minetest.register_alias("ethereal:mushroom_4", "flowers:mushroom_brown")
|
||||
|
||||
minetest.register_alias("ethereal:strawberry_bush", "ethereal:strawberry_7")
|
||||
minetest.register_alias("ethereal:seed_strawberry", "ethereal:strawberry")
|
||||
|
||||
for i = 1, 5 do
|
||||
minetest.register_alias("ethereal:wild_onion_"..i, "ethereal:onion_"..i)
|
||||
end
|
||||
|
||||
minetest.register_alias("ethereal:onion_7", "ethereal:onion_4")
|
||||
minetest.register_alias("ethereal:onion_8", "ethereal:onion_5")
|
||||
minetest.register_alias("ethereal:wild_onion_7", "ethereal:onion_4")
|
||||
minetest.register_alias("ethereal:wild_onion_8", "ethereal:onion_5")
|
||||
minetest.register_alias("ethereal:wild_onion_craftingitem", "ethereal:wild_onion_plant")
|
||||
|
||||
minetest.register_alias("ethereal:hearty_stew_cooked", "ethereal:hearty_stew")
|
||||
|
||||
minetest.register_alias("ethereal:obsidian_brick", "default:obsidianbrick")
|
||||
|
||||
minetest.register_alias("ethereal:crystal_topped_dirt", "ethereal:crystal_dirt")
|
||||
minetest.register_alias("ethereal:fiery_dirt_top", "ethereal:fiery_dirt")
|
||||
minetest.register_alias("ethereal:gray_dirt_top", "ethereal:gray_dirt")
|
||||
minetest.register_alias("ethereal:green_dirt_top", "ethereal:green_dirt")
|
||||
|
||||
minetest.register_alias("ethereal:tree_sapling", "default:sapling")
|
||||
minetest.register_alias("ethereal:jungle_tree_sapling", "default:junglesapling")
|
||||
minetest.register_alias("ethereal:acacia_sapling", "default:acacia_sapling")
|
||||
minetest.register_alias("ethereal:pine_tree_sapling", "default:pine_sapling")
|
|
@ -0,0 +1,217 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- Crystal Spike (Hurts if you touch it - thanks to ZonerDarkRevention for his DokuCraft DeviantArt crystal texture)
|
||||
minetest.register_node("ethereal:crystal_spike", {
|
||||
description = S("Crystal Spike"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "crystal_spike.png" },
|
||||
inventory_image = "crystal_spike.png",
|
||||
wield_image = "crystal_spike.png",
|
||||
paramtype = "light",
|
||||
light_source = 7,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
damage_per_second = 1,
|
||||
groups = {cracky = 1, falling_node = 1, puts_out_fire = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
|
||||
-- Crystal Ingot
|
||||
minetest.register_craftitem("ethereal:crystal_ingot", {
|
||||
description = S("Crystal Ingot"),
|
||||
inventory_image = "crystal_ingot.png",
|
||||
wield_image = "crystal_ingot.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:crystal_ingot",
|
||||
recipe = {
|
||||
{"default:mese_crystal", "ethereal:crystal_spike"},
|
||||
{"ethereal:crystal_spike", "default:mese_crystal"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Crystal Block
|
||||
minetest.register_node("ethereal:crystal_block", {
|
||||
description = S("Crystal Block"),
|
||||
tiles = {"crystal_block.png"},
|
||||
light_source = 9,
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2, puts_out_fire = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:crystal_block",
|
||||
recipe = {
|
||||
{"ethereal:crystal_ingot", "ethereal:crystal_ingot", "ethereal:crystal_ingot"},
|
||||
{"ethereal:crystal_ingot", "ethereal:crystal_ingot", "ethereal:crystal_ingot"},
|
||||
{"ethereal:crystal_ingot", "ethereal:crystal_ingot", "ethereal:crystal_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:crystal_ingot 9",
|
||||
recipe = {
|
||||
{"ethereal:crystal_block"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Crystal Sword (Powerful wee beastie)
|
||||
minetest.register_tool("ethereal:sword_crystal", {
|
||||
description = S("Crystal Sword"),
|
||||
inventory_image = "crystal_sword.png",
|
||||
wield_image = "crystal_sword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.6,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
snappy = {
|
||||
times = {[1] = 1.70, [2] = 0.70, [3] = 0.25},
|
||||
uses = 50,
|
||||
maxlevel = 3
|
||||
},
|
||||
},
|
||||
damage_groups = {fleshy = 10},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:sword_crystal",
|
||||
recipe = {
|
||||
{"ethereal:crystal_ingot"},
|
||||
{"ethereal:crystal_ingot"},
|
||||
{"default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Crystal Axe
|
||||
minetest.register_tool("ethereal:axe_crystal", {
|
||||
description = S("Crystal Axe"),
|
||||
inventory_image = "crystal_axe.png",
|
||||
wield_image = "crystal_axe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.8,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
choppy = {
|
||||
times = {[1] = 2.00, [2] = 0.80, [3] = 0.40},
|
||||
uses = 30,
|
||||
maxlevel = 2
|
||||
},
|
||||
},
|
||||
damage_groups = {fleshy = 7},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'ethereal:axe_crystal',
|
||||
recipe = {
|
||||
{'ethereal:crystal_ingot', 'ethereal:crystal_ingot'},
|
||||
{'ethereal:crystal_ingot', 'default:steel_ingot'},
|
||||
{'', 'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
-- Crystal Pick (This will last a while)
|
||||
minetest.register_tool("ethereal:pick_crystal", {
|
||||
description = S("Crystal Pickaxe"),
|
||||
inventory_image = "crystal_pick.png",
|
||||
wield_image = "crystal_pick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.7,
|
||||
max_drop_level = 3,
|
||||
groupcaps={
|
||||
cracky = {
|
||||
times = {[1] = 1.8, [2] = 0.8, [3] = 0.40},
|
||||
uses = 40,
|
||||
maxlevel = 3
|
||||
},
|
||||
},
|
||||
damage_groups = {fleshy = 7},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:pick_crystal",
|
||||
recipe = {
|
||||
{"ethereal:crystal_ingot", "ethereal:crystal_ingot", "ethereal:crystal_ingot"},
|
||||
{"", "default:steel_ingot", ""},
|
||||
{"", "default:steel_ingot", ""},
|
||||
}
|
||||
})
|
||||
|
||||
-- Crystal Shovel (with Soft Touch so player can dig up dirt with grass intact)
|
||||
minetest.register_tool("ethereal:shovel_crystal", {
|
||||
description = S("Crystal (soft touch) Shovel"),
|
||||
inventory_image = "crystal_shovel.png",
|
||||
wield_image = "crystal_shovel.png^[transformR90",
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
|
||||
-- Check if node protected
|
||||
if minetest.is_protected(pointed_thing.under, user:get_player_name()) then
|
||||
return
|
||||
end
|
||||
|
||||
local pos = pointed_thing.under
|
||||
local nn = minetest.get_node(pos).name
|
||||
|
||||
-- Is node dirt, sand or gravel
|
||||
if minetest.get_item_group(nn, "crumbly") > 0 then
|
||||
|
||||
local inv = user:get_inventory()
|
||||
|
||||
minetest.remove_node(pointed_thing.under)
|
||||
|
||||
nodeupdate(pos)
|
||||
|
||||
inv:add_item("main", {name = nn})
|
||||
itemstack:add_wear(65535 / 100) -- 111 uses
|
||||
|
||||
minetest.sound_play("default_dirt_footstep", {pos = pos, gain = 0.35})
|
||||
|
||||
return itemstack
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:shovel_crystal",
|
||||
recipe = {
|
||||
{"ethereal:crystal_ingot"},
|
||||
{"default:steel_ingot"},
|
||||
{"default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Crystal Gilly Staff (replenishes air supply when used)
|
||||
minetest.register_tool("ethereal:crystal_gilly_staff", {
|
||||
description = S("Crystal Gilly Staff"),
|
||||
inventory_image = "crystal_gilly_staff.png",
|
||||
wield_image = "crystal_gilly_staff.png",
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if user:get_breath() < 10 then
|
||||
user:set_breath(10)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:crystal_gilly_staff",
|
||||
recipe = {
|
||||
{"ethereal:green_moss", "ethereal:gray_moss", "ethereal:fiery_moss"},
|
||||
{"ethereal:crystal_moss", "ethereal:crystal_ingot", "ethereal:mushroom_moss"},
|
||||
{"", "ethereal:crystal_ingot", ""},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,8 @@
|
|||
default
|
||||
farming
|
||||
stairs
|
||||
flowers
|
||||
doors
|
||||
bakedclay?
|
||||
moreblocks?
|
||||
intllib?
|
|
@ -0,0 +1 @@
|
|||
Ethereal mod uses the v7 mapgen to add many new biomes to the world.
|
|
@ -0,0 +1,400 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- override default dirt (to stop caves cutting away dirt)
|
||||
minetest.override_item("default:dirt", {is_ground_content = ethereal.cavedirt})
|
||||
|
||||
-- green dirt
|
||||
minetest.register_node("ethereal:green_dirt", {
|
||||
description = S("Green Dirt"),
|
||||
tiles = {
|
||||
"default_grass.png",
|
||||
"default_dirt.png",
|
||||
"default_dirt.png^default_grass_side.png"
|
||||
},
|
||||
is_ground_content = ethereal.cavedirt,
|
||||
groups = {crumbly = 3, soil = 1, ethereal_grass = 1},
|
||||
soil = {
|
||||
base = "ethereal:green_dirt",
|
||||
dry = "farming:soil",
|
||||
wet = "farming:soil_wet"
|
||||
},
|
||||
drop = "default:dirt",
|
||||
sounds = default.node_sound_dirt_defaults()
|
||||
})
|
||||
|
||||
-- dry dirt
|
||||
minetest.register_node("ethereal:dry_dirt", {
|
||||
description = S("Dried Dirt"),
|
||||
tiles = {"ethereal_dry_dirt.png"},
|
||||
is_ground_content = ethereal.cavedirt,
|
||||
groups = {crumbly = 3},
|
||||
sounds = default.node_sound_dirt_defaults()
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "ethereal:dry_dirt",
|
||||
recipe = "default:dirt",
|
||||
cooktime = 3,
|
||||
})
|
||||
|
||||
local dirts = {
|
||||
"Bamboo", "Jungle", "Grove", "Prairie", "Cold",
|
||||
"Crystal", "Mushroom", "Fiery", "Gray"
|
||||
}
|
||||
|
||||
for n = 1, #dirts do
|
||||
|
||||
local desc = dirts[n]
|
||||
local name = desc:lower()
|
||||
|
||||
minetest.register_node("ethereal:"..name.."_dirt", {
|
||||
description = S(desc.." Dirt"),
|
||||
tiles = {
|
||||
"ethereal_grass_"..name.."_top.png",
|
||||
"default_dirt.png",
|
||||
"default_dirt.png^ethereal_grass_"..name.."_side.png"
|
||||
},
|
||||
is_ground_content = ethereal.cavedirt,
|
||||
groups = {crumbly = 3, soil = 1, ethereal_grass = 1},
|
||||
soil = {
|
||||
base = "ethereal:"..name.."_dirt",
|
||||
dry = "farming:soil",
|
||||
wet = "farming:soil_wet"
|
||||
},
|
||||
drop = "default:dirt",
|
||||
sounds = default.node_sound_dirt_defaults()
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
-- re-register dirt types for abm
|
||||
dirts = {
|
||||
"ethereal:bamboo_dirt", "ethereal:jungle_dirt", "ethereal:grove_dirt",
|
||||
"ethereal:prairie_dirt", "ethereal:cold_dirt", "ethereal:crystal_dirt",
|
||||
"ethereal:mushroom_dirt", "ethereal:fiery_dirt", "ethereal:gray_dirt",
|
||||
"default:dirt_with_grass", "default:dirt_with_dry_grass", "ethereal:green_dirt",
|
||||
"default:dirt_with_snow", "default:dirt_with_dry_grass"
|
||||
}
|
||||
|
||||
-- check surrounding grass and change dirt to same colour
|
||||
local grass_spread = function(pos, node)
|
||||
|
||||
-- not enough light
|
||||
local above = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||
|
||||
if (minetest.get_node_light(above) or 0) < 13 then
|
||||
return
|
||||
end
|
||||
|
||||
-- water above grass
|
||||
local name = minetest.get_node(above).name
|
||||
local def = minetest.registered_nodes[name]
|
||||
|
||||
if name == "ignore" or not def or def.liquidtype ~= "none" then
|
||||
return
|
||||
end
|
||||
|
||||
local curr_max, curr_type, num = 0, ""
|
||||
|
||||
-- find all default and ethereal grasses in area around dirt
|
||||
local positions, grasses = minetest.find_nodes_in_area(
|
||||
{x = pos.x - 1, y = pos.y - 2, z = pos.z - 1},
|
||||
{x = pos.x + 1, y = pos.y + 2, z = pos.z + 1},
|
||||
{"group:ethereal_grass", "default:dirt_with_grass",
|
||||
"default:dirt_with_dry_grass", "default:dirt_with_snow"})
|
||||
|
||||
-- count new grass nodes
|
||||
for n = 1, #dirts do
|
||||
|
||||
num = grasses[ dirts[n] ] or 0
|
||||
|
||||
if num > curr_max then
|
||||
curr_max = num
|
||||
curr_type = dirts[n]
|
||||
end
|
||||
end
|
||||
|
||||
-- no grass nearby, keep as dirt
|
||||
if curr_type == "" then
|
||||
return
|
||||
end
|
||||
|
||||
-- change default green grass to ethereal green grass
|
||||
if curr_type == "default:dirt_with_grass" then
|
||||
curr_type = "ethereal:green_dirt"
|
||||
end
|
||||
|
||||
minetest.swap_node(pos, {name = curr_type})
|
||||
end
|
||||
|
||||
-- any grass with a block above will turn into dirt
|
||||
local grass_devoid = function(pos, node)
|
||||
|
||||
local above = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||
local name = minetest.get_node(above).name
|
||||
local nodedef = minetest.registered_nodes[name]
|
||||
|
||||
if name ~= "ignore" and nodedef and not ((nodedef.sunlight_propagates or
|
||||
nodedef.paramtype == "light") and
|
||||
nodedef.liquidtype == "none") then
|
||||
|
||||
minetest.swap_node(pos, {name = "default:dirt"})
|
||||
end
|
||||
end
|
||||
|
||||
-- flower spread, also crystal and fire flower regeneration
|
||||
local flower_spread = function(pos, node)
|
||||
|
||||
local light = minetest.get_node_light(pos)
|
||||
|
||||
if not light
|
||||
or light < 13 then
|
||||
return
|
||||
end
|
||||
|
||||
local pos0 = {x = pos.x - 4, y = pos.y - 2, z = pos.z - 4}
|
||||
local pos1 = {x = pos.x + 4, y = pos.y + 2, z = pos.z + 4}
|
||||
local num = #minetest.find_nodes_in_area_under_air(pos0, pos1, "group:flora")
|
||||
|
||||
if num > 3
|
||||
and node.name == "ethereal:crystalgrass" then
|
||||
|
||||
local grass = minetest.find_nodes_in_area_under_air(
|
||||
pos0, pos1, {"ethereal:crystalgrass"})
|
||||
|
||||
if #grass > 4
|
||||
and not minetest.find_node_near(pos, 4, {"ethereal:crystal_spike"}) then
|
||||
|
||||
grass = grass[math.random(#grass)]
|
||||
|
||||
grass.y = grass.y - 1
|
||||
|
||||
if minetest.get_node(grass).name == "ethereal:crystal_dirt" then
|
||||
|
||||
grass.y = grass.y + 1
|
||||
|
||||
minetest.swap_node(grass, {name = "ethereal:crystal_spike"})
|
||||
end
|
||||
end
|
||||
|
||||
return
|
||||
|
||||
elseif num > 3
|
||||
and node.name == "ethereal:dry_shrub" then
|
||||
|
||||
local grass = minetest.find_nodes_in_area_under_air(
|
||||
pos0, pos1, {"ethereal:dry_shrub"})
|
||||
|
||||
if #grass > 8
|
||||
and not minetest.find_node_near(pos, 4, {"ethereal:fire_flower"}) then
|
||||
|
||||
grass = grass[math.random(#grass)]
|
||||
|
||||
grass.y = grass.y - 1
|
||||
|
||||
if minetest.get_node(grass).name == "ethereal:fiery_dirt" then
|
||||
|
||||
grass.y = grass.y + 1
|
||||
|
||||
minetest.swap_node(grass, {name = "ethereal:fire_flower"})
|
||||
end
|
||||
end
|
||||
|
||||
return
|
||||
|
||||
elseif num > 3 then
|
||||
return
|
||||
end
|
||||
|
||||
local seedling = minetest.find_nodes_in_area_under_air(
|
||||
pos0, pos1, {"group:soil"})
|
||||
|
||||
if #seedling > 0 then
|
||||
|
||||
seedling = seedling[math.random(#seedling)]
|
||||
seedling.y = seedling.y + 1
|
||||
|
||||
light = minetest.get_node_light(seedling)
|
||||
|
||||
if not light
|
||||
or light < 13 then
|
||||
return
|
||||
end
|
||||
|
||||
minetest.swap_node(seedling, {name = node.name})
|
||||
end
|
||||
end
|
||||
|
||||
-- grow papyrus up to 4 high and bamboo up to 8 high
|
||||
local grow_papyrus = function(pos, node)
|
||||
|
||||
local oripos = pos.y
|
||||
local high = 4
|
||||
|
||||
pos.y = pos.y - 1
|
||||
|
||||
local nod = minetest.get_node_or_nil(pos)
|
||||
|
||||
if not nod
|
||||
or minetest.get_item_group(nod.name, "soil") < 1
|
||||
or minetest.find_node_near(pos, 3, {"group:water"}) == nil then
|
||||
return
|
||||
end
|
||||
|
||||
if node.name == "ethereal:bamboo" then
|
||||
high = 8
|
||||
end
|
||||
|
||||
pos.y = pos.y + 1
|
||||
|
||||
local height = 0
|
||||
|
||||
while height < high
|
||||
and minetest.get_node(pos).name == node.name do
|
||||
height = height + 1
|
||||
pos.y = pos.y + 1
|
||||
end
|
||||
|
||||
nod = minetest.get_node_or_nil(pos)
|
||||
|
||||
if nod
|
||||
and nod.name == "air"
|
||||
and height < high then
|
||||
|
||||
if node.name == "ethereal:bamboo"
|
||||
and height == (high - 1) then
|
||||
|
||||
ethereal.grow_bamboo_tree({x = pos.x, y = oripos, z = pos.z})
|
||||
else
|
||||
minetest.swap_node(pos, {name = node.name})
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- loop through active abm's
|
||||
for _, ab in pairs(minetest.registered_abms) do
|
||||
|
||||
local label = ab.label or ""
|
||||
local node1 = ab.nodenames and ab.nodenames[1] or ""
|
||||
local node2 = ab.nodenames and ab.nodenames[2] or ""
|
||||
local neigh = ab.neighbors and ab.neighbors[1] or ""
|
||||
|
||||
-- find dirt to grass abm and replace with spread function
|
||||
if label == "Grass spread"
|
||||
or (node1 == "default:dirt"
|
||||
and neigh == "default:dirt_with_grass") then
|
||||
|
||||
--ab.interval = 2
|
||||
--ab.chance = 1
|
||||
ab.nodenames = {"default:dirt_with_grass", "default:dirt"}
|
||||
ab.neighbors = {"air"}
|
||||
ab.action = grass_spread
|
||||
|
||||
-- find grass devoid of light to dirt abm and change to devoid function
|
||||
elseif label == "Grass covered"
|
||||
or (node1 == "default:dirt_with_grass"
|
||||
and node2 == "default:dirt_with_dry_grass") then
|
||||
|
||||
--ab.interval = 2
|
||||
--ab.chance = 1
|
||||
ab.nodenames = {
|
||||
"default:dirt_with_grass", "default:dirt_with_dry_grass",
|
||||
"default:dirt_with_snow", "group:ethereal_grass"
|
||||
}
|
||||
ab.action = grass_devoid
|
||||
|
||||
-- find flower spread abm and change to spread function
|
||||
elseif label == "Flower spread"
|
||||
or node1 == "group:flora" then
|
||||
|
||||
--ab.interval = 2
|
||||
--ab.chance = 1
|
||||
ab.nodenames = {"group:flora"}
|
||||
ab.neighbors = {"group:soil"}
|
||||
ab.action = flower_spread
|
||||
|
||||
-- find grow papyrus abm and change to grow_papyrus function
|
||||
elseif label == "Grow papyrus"
|
||||
or node1 == "default:papyrus" then
|
||||
|
||||
--ab.interval = 2
|
||||
--ab.chance = 1
|
||||
ab.nodenames = {"default:papyrus", "ethereal:bamboo"}
|
||||
ab.neighbors = {"group:soil"}
|
||||
ab.action = grow_papyrus
|
||||
end
|
||||
end
|
||||
|
||||
-- If Baked Clay mod not active, make Red, Orange and Grey nodes
|
||||
if not minetest.get_modpath("bakedclay") then
|
||||
|
||||
minetest.register_node(":bakedclay:red", {
|
||||
description = S("Red Baked Clay"),
|
||||
tiles = {"baked_clay_red.png"},
|
||||
groups = {cracky = 3},
|
||||
is_ground_content = ethereal.cavedirt,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(":bakedclay:orange", {
|
||||
description = S("Orange Baked Clay"),
|
||||
tiles = {"baked_clay_orange.png"},
|
||||
groups = {cracky = 3},
|
||||
is_ground_content = ethereal.cavedirt,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(":bakedclay:grey", {
|
||||
description = S("Grey Baked Clay"),
|
||||
tiles = {"baked_clay_grey.png"},
|
||||
groups = {cracky = 3},
|
||||
is_ground_content = ethereal.cavedirt,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
-- Quicksand (old style, sinking inside shows black instead of yellow effect,
|
||||
-- works ok with noclip enabled though)
|
||||
minetest.register_node("ethereal:quicksand", {
|
||||
description = S("Quicksand"),
|
||||
tiles = {"default_sand.png"},
|
||||
drop = "default:sand",
|
||||
liquid_viscosity = 15,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "ethereal:quicksand",
|
||||
liquid_alternative_source = "ethereal:quicksand",
|
||||
liquid_renewable = false,
|
||||
liquid_range = 0,
|
||||
drowning = 1,
|
||||
walkable = false,
|
||||
climbable = false,
|
||||
post_effect_color = {r = 230, g = 210, b = 160, a = 245},
|
||||
groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- Quicksand (new style, sinking inside shows yellow effect with or without noclip,
|
||||
-- but old quicksand is shown as black until block placed nearby to update light)
|
||||
minetest.register_node("ethereal:quicksand2", {
|
||||
description = S("Quicksand"),
|
||||
tiles = {"default_sand.png"},
|
||||
drawtype = "glasslike",
|
||||
paramtype = "light",
|
||||
drop = "default:sand",
|
||||
liquid_viscosity = 15,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "ethereal:quicksand2",
|
||||
liquid_alternative_source = "ethereal:quicksand2",
|
||||
liquid_renewable = false,
|
||||
liquid_range = 0,
|
||||
drowning = 1,
|
||||
walkable = false,
|
||||
climbable = false,
|
||||
post_effect_color = {r = 230, g = 210, b = 160, a = 245},
|
||||
groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
|
@ -0,0 +1,304 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- Bamboo Flooring
|
||||
minetest.register_node("ethereal:bamboo_floor", {
|
||||
description = S("Bamboo Floor"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = { "bamboo_floor.png" },
|
||||
wield_image = "bamboo_floor.png",
|
||||
inventory_image = "bamboo_floor.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
walkable = true,
|
||||
node_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
|
||||
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||
wall_side = {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
|
||||
},
|
||||
selection_box = {type = "wallmounted"},
|
||||
groups = {snappy = 3, choppy = 3 , flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- Craft Bamboo into Bamboo Flooring
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bamboo_floor 2",
|
||||
recipe = {
|
||||
{"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"},
|
||||
{"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"},
|
||||
{"ethereal:bamboo", "ethereal:bamboo", "ethereal:bamboo"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Craft Bamboo into Paper
|
||||
minetest.register_craft({
|
||||
output = "default:paper 6",
|
||||
recipe = {
|
||||
{"ethereal:bamboo", "ethereal:bamboo"},
|
||||
{"ethereal:bamboo", "ethereal:bamboo"},
|
||||
{"ethereal:bamboo", "ethereal:bamboo"},
|
||||
}
|
||||
})
|
||||
|
||||
-- X pattern craft recipes (5x 'a' in X pattern gives 5 of 'b')
|
||||
local cheat = {
|
||||
{"default:cobble", "default:gravel"},
|
||||
{"default:gravel", "default:dirt"},
|
||||
{"default:dirt", "default:sand"},
|
||||
{"default:ice", "default:snow"},
|
||||
{"ethereal:dry_dirt", "default:desert_sand"},
|
||||
}
|
||||
|
||||
for n = 1, #cheat do
|
||||
|
||||
minetest.register_craft({
|
||||
output = cheat[n][2] .. " 5",
|
||||
recipe = {
|
||||
{cheat[n][1], "", cheat[n][1]},
|
||||
{"", cheat[n][1], ""},
|
||||
{cheat[n][1], "", cheat[n][1]},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Paper (2x3 string = 4 paper)
|
||||
minetest.register_craft({
|
||||
output = "default:paper 4",
|
||||
recipe = {
|
||||
{"farming:string", "farming:string"},
|
||||
{"farming:string", "farming:string"},
|
||||
{"farming:string", "farming:string"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Palm Wax
|
||||
minetest.register_craftitem("ethereal:palm_wax", {
|
||||
description = S("Palm Wax"),
|
||||
inventory_image = "palm_wax.png",
|
||||
wield_image = "palm_wax.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 10,
|
||||
output = "ethereal:palm_wax",
|
||||
recipe = "ethereal:palmleaves"
|
||||
})
|
||||
|
||||
-- Candle from Wax and String/Cotton
|
||||
minetest.register_node("ethereal:candle", {
|
||||
description = S("Candle"),
|
||||
drawtype = "plantlike",
|
||||
inventory_image = "candle_static.png",
|
||||
wield_image = "candle_static.png",
|
||||
tiles = {
|
||||
{
|
||||
name = "candle.png",
|
||||
animation={
|
||||
type="vertical_frames",
|
||||
aspect_w = 32,
|
||||
aspect_h = 32,
|
||||
length = 1.0
|
||||
}
|
||||
},
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = 11,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
groups = {dig_immediate = 3, attached_node = 1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:candle 2",
|
||||
recipe = {
|
||||
{"farming:cotton"},
|
||||
{"ethereal:palm_wax"},
|
||||
{"ethereal:palm_wax"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Wooden Bowl
|
||||
minetest.register_craftitem("ethereal:bowl", {
|
||||
description = S("Bowl"),
|
||||
inventory_image = "bowl.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bowl",
|
||||
recipe = {
|
||||
{"group:wood", "", "group:wood"},
|
||||
{"", "group:wood", ""},
|
||||
}
|
||||
})
|
||||
|
||||
-- stone Ladder
|
||||
minetest.register_node("ethereal:stone_ladder", {
|
||||
description = S("Stone Ladder"),
|
||||
drawtype = "signlike",
|
||||
tiles = {"stone_ladder.png"},
|
||||
inventory_image = "stone_ladder.png",
|
||||
wield_image = "stone_ladder.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "wallmounted",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
is_ground_content = false,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
},
|
||||
groups = {cracky = 3, oddly_breakable_by_hand = 1},
|
||||
legacy_wallmounted = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:stone_ladder 4",
|
||||
recipe = {
|
||||
{"default:cobble", "", "default:cobble"},
|
||||
{"default:cobble", "default:cobble", "default:cobble"},
|
||||
{"default:cobble", "", "default:cobble"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Paper Wall
|
||||
minetest.register_node("ethereal:paper_wall", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Paper Wall"),
|
||||
tiles = {"paper_wall.png"},
|
||||
inventory_image_image = "paper_wall.png",
|
||||
wield_image = "paper_wall.png",
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 5/11, 0.5, 0.5, 8/16 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 5/11, 0.5, 0.5, 8/16 }
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:paper_wall",
|
||||
recipe = {
|
||||
{"default:stick", "default:paper", "default:stick"},
|
||||
{"default:stick", "default:paper", "default:stick"},
|
||||
{"default:stick", "default:paper", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Glostone (A little bit of light decoration)
|
||||
minetest.register_node("ethereal:glostone", {
|
||||
description = S("Glo Stone"),
|
||||
tiles = {"glostone.png"},
|
||||
groups = {cracky = 3},
|
||||
light_source = 13,
|
||||
drop = "ethereal:glostone",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:glostone",
|
||||
recipe = {
|
||||
{"default:torch", "default:stone", "dye:yellow"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Charcoal Lump
|
||||
minetest.register_craftitem("ethereal:charcoal_lump", {
|
||||
description = S("Lump of Charcoal"),
|
||||
inventory_image = "charcoal_lump.png",
|
||||
wield_image = "charcoal_lump.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:charcoal_lump 2",
|
||||
recipe = {
|
||||
{"ethereal:scorched_tree"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:charcoal_lump 2",
|
||||
type = "cooking",
|
||||
recipe = "group:tree",
|
||||
cooktime = 4
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:charcoal_lump",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
-- Make Torch from Charcoal Lump
|
||||
minetest.register_craft({
|
||||
output = "default:torch 4",
|
||||
recipe = {
|
||||
{"ethereal:charcoal_lump"},
|
||||
{"default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Staff of Light (by Xanthin)
|
||||
minetest.register_tool("ethereal:light_staff", {
|
||||
description = S("Staff of Light"),
|
||||
inventory_image = "light_staff.png",
|
||||
wield_image = "light_staff.png",
|
||||
stack_max = 1,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
|
||||
local pos = pointed_thing.under
|
||||
local pname = user:get_player_name()
|
||||
|
||||
if minetest.is_protected(pos, pname) then
|
||||
minetest.record_protection_violation(pos, pname)
|
||||
return
|
||||
end
|
||||
|
||||
local node = minetest.get_node(pos).name
|
||||
|
||||
if node == "default:stone"
|
||||
or node == "default:desert_stone" then
|
||||
|
||||
minetest.swap_node(pos, {name = "ethereal:glostone"})
|
||||
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
itemstack:add_wear(65535 / 149) -- 150 uses
|
||||
end
|
||||
|
||||
return itemstack
|
||||
end
|
||||
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:light_staff",
|
||||
recipe = {
|
||||
{"ethereal:illumishroom", "default:mese_crystal", "ethereal:illumishroom"},
|
||||
{"ethereal:illumishroom2", "default:steel_ingot", "ethereal:illumishroom2"},
|
||||
{"ethereal:illumishroom3", "default:steel_ingot", "ethereal:illumishroom3"}
|
||||
}
|
||||
})
|
|
@ -0,0 +1,74 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
default.register_fence("ethereal:fence_scorched", {
|
||||
description = S("Scorched Fence"),
|
||||
texture = "scorched_tree.png",
|
||||
material = "ethereal:scorched_tree",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence("ethereal:fence_frostwood", {
|
||||
description = S("Frost Fence"),
|
||||
texture = "frost_wood.png",
|
||||
material = "ethereal:frost_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence("ethereal:fence_redwood", {
|
||||
description = S("Redwood Fence"),
|
||||
texture = "redwood_wood.png",
|
||||
material = "ethereal:redwood_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence("ethereal:fence_willow", {
|
||||
description = S("Willow Fence"),
|
||||
texture = "willow_wood.png",
|
||||
material = "ethereal:willow_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence("ethereal:fence_yellowwood", {
|
||||
description = S("Healing Wood Fence"),
|
||||
texture = "yellow_wood.png",
|
||||
material = "ethereal:yellow_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence("ethereal:fence_palm", {
|
||||
description = S("Palm Fence"),
|
||||
texture = "moretrees_palm_wood.png",
|
||||
material = "ethereal:palm_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence("ethereal:fence_banana", {
|
||||
description = S("Banana Wood Fence"),
|
||||
texture = "banana_wood.png",
|
||||
material = "ethereal:banana_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence("ethereal:fence_mushroom", {
|
||||
description = S("Mushroom Fence"),
|
||||
texture = "mushroom_trunk.png",
|
||||
material = "ethereal:mushroom_trunk",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence("ethereal:fence_birch", {
|
||||
description = S("Birch Fence"),
|
||||
texture = "moretrees_birch_wood.png",
|
||||
material = "ethereal:birch_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
|
@ -0,0 +1,124 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- Raw Fish (Thanks to Altairas for her Fish image on DeviantArt)
|
||||
minetest.register_craftitem("ethereal:fish_raw", {
|
||||
description = S("Raw Fish"),
|
||||
inventory_image = "fish_raw.png",
|
||||
wield_image = "fish_raw.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
})
|
||||
|
||||
-- Cooked Fish
|
||||
minetest.register_craftitem("ethereal:fish_cooked", {
|
||||
description = S("Cooked Fish"),
|
||||
inventory_image = "fish_cooked.png",
|
||||
wield_image = "fish_cooked.png",
|
||||
on_use = minetest.item_eat(5),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "ethereal:fish_cooked",
|
||||
recipe = "ethereal:fish_raw",
|
||||
cooktime = 2,
|
||||
})
|
||||
|
||||
-- Sashimi (Thanks to Natalia Grosner for letting me use the sashimi image)
|
||||
minetest.register_craftitem("ethereal:sashimi", {
|
||||
description = S("Sashimi"),
|
||||
inventory_image = "sashimi.png",
|
||||
wield_image = "sashimi.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:sashimi 2",
|
||||
recipe = {
|
||||
{'ethereal:seaweed','ethereal:fish_raw','ethereal:seaweed'},
|
||||
}
|
||||
})
|
||||
|
||||
-- Worm
|
||||
minetest.register_craftitem("ethereal:worm", {
|
||||
description = S("Worm"),
|
||||
inventory_image = "worm.png",
|
||||
wield_image = "worm.png",
|
||||
})
|
||||
|
||||
-- Fishing Rod
|
||||
minetest.register_craftitem("ethereal:fishing_rod", {
|
||||
description = S("Fishing Rod"),
|
||||
inventory_image = "fishing_rod.png",
|
||||
wield_image = "fishing_rod.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:fishing_rod",
|
||||
recipe = {
|
||||
{"","","default:stick"},
|
||||
{"", "default:stick", "farming:string"},
|
||||
{"default:stick", "", "farming:string"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Sift through 2 Dirt Blocks to find Worm
|
||||
minetest.register_craft({
|
||||
output = "ethereal:worm",
|
||||
recipe = {
|
||||
{"default:dirt","default:dirt"},
|
||||
}
|
||||
})
|
||||
|
||||
-- default ethereal fish
|
||||
local fish = {
|
||||
{"ethereal:fish_raw"},
|
||||
}
|
||||
|
||||
-- xanadu server additional fish
|
||||
if minetest.get_modpath("xanadu") then
|
||||
fish[2] = {"mobs:clownfish_raw"}
|
||||
fish[3] = {"mobs:bluefish_raw"}
|
||||
end
|
||||
|
||||
-- Fishing Rod (Baited)
|
||||
minetest.register_craftitem("ethereal:fishing_rod_baited", {
|
||||
description = S("Baited Fishing Rod"),
|
||||
inventory_image = "fishing_rod_baited.png",
|
||||
wield_image = "fishing_rod_wield.png",
|
||||
stack_max = 1,
|
||||
liquids_pointable = true,
|
||||
|
||||
on_use = function (itemstack, user, pointed_thing)
|
||||
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
|
||||
local node = minetest.get_node(pointed_thing.under).name
|
||||
|
||||
if (node == "default:water_source"
|
||||
or node == "default:river_water_source")
|
||||
and math.random(1, 100) < 5 then
|
||||
|
||||
local type = fish[math.random(1, #fish)][1]
|
||||
local inv = user:get_inventory()
|
||||
|
||||
if inv:room_for_item("main", {name = type}) then
|
||||
|
||||
inv:add_item("main", {name = type})
|
||||
|
||||
return {name = "ethereal:fishing_rod"}
|
||||
else
|
||||
minetest.chat_send_player(user:get_player_name(),
|
||||
S("Inventory full, Fish Got Away!"))
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "ethereal:fishing_rod_baited",
|
||||
recipe = {"ethereal:fishing_rod", "ethereal:worm"},
|
||||
})
|
|
@ -0,0 +1,204 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- fix apples hanging in sky when no tree around
|
||||
minetest.override_item("default:apple", {
|
||||
drop = "default:apple",
|
||||
})
|
||||
|
||||
-- Banana (Heals one heart when eaten)
|
||||
minetest.register_node("ethereal:banana", {
|
||||
description = S("Banana"),
|
||||
drawtype = "torchlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"banana_single.png"},
|
||||
inventory_image = "banana_single.png",
|
||||
wield_image = "banana_single.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2}
|
||||
},
|
||||
groups = {
|
||||
fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||
leafdecay = 1, leafdecay_drop = 1
|
||||
},
|
||||
drop = "ethereal:banana",
|
||||
on_use = minetest.item_eat(2),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = function(pos, placer)
|
||||
if placer:is_player() then
|
||||
minetest.set_node(pos, {name = "ethereal:banana", param2 = 1})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Banana Dough
|
||||
minetest.register_craftitem("ethereal:banana_dough", {
|
||||
description = S("Banana Dough"),
|
||||
inventory_image = "banana_dough.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "ethereal:banana_dough",
|
||||
recipe = {"farming:flour", "ethereal:banana"}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 14,
|
||||
output = "ethereal:banana_bread",
|
||||
recipe = "ethereal:banana_dough"
|
||||
})
|
||||
|
||||
-- Orange (Heals 2 hearts when eaten)
|
||||
minetest.register_node("ethereal:orange", {
|
||||
description = S("Orange"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"farming_orange.png"},
|
||||
inventory_image = "farming_orange.png",
|
||||
wield_image = "farming_orange.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
|
||||
},
|
||||
groups = {
|
||||
fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||
leafdecay = 3, leafdecay_drop = 1
|
||||
},
|
||||
drop = "ethereal:orange",
|
||||
on_use = minetest.item_eat(4),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = function(pos, placer)
|
||||
if placer:is_player() then
|
||||
minetest.set_node(pos, {name = "ethereal:orange", param2 = 1})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Pine Nuts (Heals 1/2 heart when eaten)
|
||||
minetest.register_craftitem("ethereal:pine_nuts", {
|
||||
description = S("Pine Nuts"),
|
||||
inventory_image = "pine_nuts.png",
|
||||
wield_image = "pine_nuts.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
})
|
||||
|
||||
-- Banana Loaf (Heals 3 hearts when eaten)
|
||||
minetest.register_craftitem("ethereal:banana_bread", {
|
||||
description = S("Banana Loaf"),
|
||||
inventory_image = "banana_bread.png",
|
||||
wield_image = "banana_bread.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
})
|
||||
|
||||
-- Coconut (Gives 4 coconut slices, each heal 1/2 heart)
|
||||
minetest.register_node("ethereal:coconut", {
|
||||
description = S("Coconut"),
|
||||
drawtype = "plantlike",
|
||||
walkable = false,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
tiles = {"moretrees_coconut.png"},
|
||||
inventory_image = "moretrees_coconut.png",
|
||||
wield_image = "moretrees_coconut.png",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.35, -0.35, -0.35, 0.35, 0.35, 0.35}
|
||||
},
|
||||
groups = {
|
||||
snappy = 1, oddly_breakable_by_hand = 1, cracky = 1,
|
||||
choppy = 1, flammable = 1, leafdecay = 3, leafdecay_drop = 1
|
||||
},
|
||||
drop = "ethereal:coconut_slice 4",
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- Coconut Slice (Heals half heart when eaten)
|
||||
minetest.register_craftitem("ethereal:coconut_slice", {
|
||||
description = S("Coconut Slice"),
|
||||
inventory_image = "moretrees_coconut_slice.png",
|
||||
wield_image = "moretrees_coconut_slice.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
})
|
||||
|
||||
-- Golden Apple (Found on Healing Tree, heals all 10 hearts)
|
||||
minetest.register_node("ethereal:golden_apple", {
|
||||
description = S("Golden Apple"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"default_apple_gold.png"},
|
||||
inventory_image = "default_apple_gold.png",
|
||||
wield_image = "default_apple_gold.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
|
||||
},
|
||||
groups = {
|
||||
fleshy = 3, dig_immediate = 3,
|
||||
leafdecay = 3,leafdecay_drop = 1
|
||||
},
|
||||
drop = "ethereal:golden_apple",
|
||||
on_use = minetest.item_eat(20),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
if placer:is_player() then
|
||||
minetest.set_node(pos, {name = "ethereal:golden_apple", param2 = 1})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Hearty Stew (Heals 5 hearts - thanks to ZonerDarkRevention for his DokuCraft DeviantArt bowl texture)
|
||||
minetest.register_craftitem("ethereal:hearty_stew", {
|
||||
description = S("Hearty Stew"),
|
||||
inventory_image = "hearty_stew.png",
|
||||
wield_image = "hearty_stew.png",
|
||||
on_use = minetest.item_eat(10, "ethereal:bowl"),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:hearty_stew",
|
||||
recipe = {
|
||||
{"ethereal:wild_onion_plant","ethereal:mushroom_plant", "ethereal:fern_tubers"},
|
||||
{"","ethereal:mushroom_plant", ""},
|
||||
{"","ethereal:bowl", ""},
|
||||
}
|
||||
})
|
||||
|
||||
-- Extra recipe for hearty stew
|
||||
if farming and farming.mod and farming.mod == "redo" then
|
||||
minetest.register_craft({
|
||||
output = "ethereal:hearty_stew",
|
||||
recipe = {
|
||||
{"ethereal:wild_onion_plant","ethereal:mushroom_plant", "farming:beans"},
|
||||
{"","ethereal:mushroom_plant", ""},
|
||||
{"","ethereal:bowl", ""},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Bucket of Cactus Pulp
|
||||
minetest.register_craftitem("ethereal:bucket_cactus", {
|
||||
description = S("Bucket of Cactus Pulp"),
|
||||
inventory_image = "bucket_cactus.png",
|
||||
wield_image = "bucket_cactus.png",
|
||||
stack_max = 1,
|
||||
on_use = minetest.item_eat(2, "bucket:bucket_empty"),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bucket_cactus",
|
||||
recipe = {
|
||||
{"bucket:bucket_empty","default:cactus"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,80 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- register Ethereal wood type gates
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_scorched", {
|
||||
description = S("Scorched Wood Fence Gate"),
|
||||
texture = "scorched_tree.png",
|
||||
material = "ethereal:scorched_tree",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_frostwood", {
|
||||
description = S("Frost Wood Fence Gate"),
|
||||
texture = "frost_wood.png",
|
||||
material = "ethereal:frost_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_redwood", {
|
||||
description = S("Redwood Fence Gate"),
|
||||
texture = "redwood_wood.png",
|
||||
material = "ethereal:redwood_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_willow", {
|
||||
description = S("Willow Wood Fence Gate"),
|
||||
texture = "willow_wood.png",
|
||||
material = "ethereal:willow_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_yellowwood", {
|
||||
description = S("Healing Wood Fence Gate"),
|
||||
texture = "yellow_wood.png",
|
||||
material = "ethereal:yellow_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_palm", {
|
||||
description = S("Palm Wood Fence Gate"),
|
||||
texture = "moretrees_palm_wood.png",
|
||||
material = "ethereal:palm_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_banana", {
|
||||
description = S("Banana Wood Fence Gate"),
|
||||
texture = "banana_wood.png",
|
||||
material = "ethereal:banana_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_mushroom", {
|
||||
description = S("Mushroom Trunk Fence Gate"),
|
||||
texture = "mushroom_trunk.png",
|
||||
material = "ethereal:mushroom_trunk",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
doors.register_fencegate("ethereal:fencegate_birch", {
|
||||
description = S("Birch Wood Fence Gate"),
|
||||
texture = "moretrees_birch_wood.png",
|
||||
material = "ethereal:birch_wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
|
||||
-- add compatibility for ethereal's to default wooden gates
|
||||
minetest.register_alias("ethereal:fencegate_wood_open", "doors:gate_wood_open")
|
||||
minetest.register_alias("ethereal:fencegate_wood_closed", "doors:gate_wood_closed")
|
||||
|
||||
minetest.register_alias("ethereal:fencegate_acacia_open", "doors:gate_acacia_wood_open")
|
||||
minetest.register_alias("ethereal:fencegate_acacia_closed", "doors:gate_acacia_wood_closed")
|
||||
|
||||
minetest.register_alias("ethereal:fencegate_junglewood_open", "doors:gate_junglewood_open")
|
||||
minetest.register_alias("ethereal:fencegate_junglewood_closed", "doors:gate_junglewood_closed")
|
||||
|
||||
minetest.register_alias("ethereal:fencegate_pine_open", "doors:gate_pine_wood_open")
|
||||
minetest.register_alias("ethereal:fencegate_pine_closed", "doors:gate_pine_wood_closed")
|
|
@ -0,0 +1,77 @@
|
|||
--[[
|
||||
|
||||
Minetest Ethereal Mod (9th August 2016)
|
||||
|
||||
Created by ChinChow
|
||||
|
||||
Updated by TenPlus1
|
||||
|
||||
]]
|
||||
|
||||
ethereal = {}
|
||||
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
|
||||
ethereal.bamboo = 1 -- Bamboo with sprouts
|
||||
ethereal.mesa = 1 -- Mesa red and orange clay with giant redwood
|
||||
ethereal.alpine = 1 -- Snowy grass
|
||||
ethereal.healing = 1 -- Snowy peaks with healing trees
|
||||
ethereal.snowy = 1 -- Cold grass with pine trees and snow spots
|
||||
ethereal.frost = 1 -- Blue dirt with blue/pink frost trees
|
||||
ethereal.grassy = 1 -- Green grass with flowers and trees
|
||||
ethereal.caves = 1 -- Desert stone ares with huge caverns underneath
|
||||
ethereal.grayness = 1 -- Grey grass with willow trees
|
||||
ethereal.grassytwo = 1 -- Sparse trees with old trees and flowers
|
||||
ethereal.prairie = 1 -- Flowery grass with many plants and flowers
|
||||
ethereal.jumble = 1 -- Green grass with trees and jungle grass
|
||||
ethereal.junglee = 1 -- Jungle grass with tall jungle trees
|
||||
ethereal.desert = 1 -- Desert sand with cactus
|
||||
ethereal.grove = 1 -- Banana groves and ferns
|
||||
ethereal.mushroom = 1 -- Purple grass with giant mushrooms
|
||||
ethereal.sandstone = 1 -- Sandstone with smaller cactus
|
||||
ethereal.quicksand = 1 -- Quicksand banks
|
||||
ethereal.plains = 1 -- Dry dirt with scorched trees
|
||||
ethereal.savannah = 1 -- Dry yellow grass with acacia tree's
|
||||
ethereal.fiery = 1 -- Red grass with lava craters
|
||||
ethereal.sandclay = 1 -- Sand areas with clay underneath
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
ethereal.intllib = S
|
||||
|
||||
local path = minetest.get_modpath("ethereal")
|
||||
|
||||
dofile(path .. "/plantlife.lua")
|
||||
dofile(path .. "/mushroom.lua")
|
||||
dofile(path .. "/onion.lua")
|
||||
dofile(path .. "/crystal.lua")
|
||||
dofile(path .. "/water.lua")
|
||||
dofile(path .. "/dirt.lua")
|
||||
dofile(path .. "/leaves.lua")
|
||||
dofile(path .. "/wood.lua")
|
||||
dofile(path .. "/sapling.lua")
|
||||
dofile(path .. "/strawberry.lua")
|
||||
dofile(path .. "/fishing.lua")
|
||||
dofile(path .. "/extra.lua")
|
||||
dofile(path .. "/sealife.lua")
|
||||
dofile(path .. "/fences.lua")
|
||||
dofile(path .. "/gates.lua")
|
||||
dofile(path .. "/mapgen.lua")
|
||||
dofile(path .. "/food.lua")
|
||||
dofile(path .. "/bonemeal.lua")
|
||||
dofile(path .. "/compatibility.lua")
|
||||
dofile(path .. "/stairs.lua")
|
||||
|
||||
if minetest.get_modpath("xanadu") then
|
||||
dofile(path .. "/plantpack.lua")
|
||||
end
|
||||
|
||||
print (S("[MOD] Ethereal loaded"))
|
|
@ -0,0 +1,364 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- set leaftype (value inside init.lua)
|
||||
local leaftype = "plantlike"
|
||||
|
||||
if ethereal.leaftype ~= 0 then
|
||||
leaftype = "allfaces_optional"
|
||||
end
|
||||
|
||||
-- default apple tree leaves
|
||||
minetest.override_item("default:leaves", {
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
inventory_image = "default_leaves.png",
|
||||
wield_image = "default_leaves.png",
|
||||
walkable = ethereal.leafwalk,
|
||||
})
|
||||
|
||||
-- default jungle tree leaves
|
||||
minetest.override_item("default:jungleleaves", {
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
inventory_image = "default_jungleleaves.png",
|
||||
wield_image = "default_jungleleaves.png",
|
||||
walkable = ethereal.leafwalk,
|
||||
})
|
||||
|
||||
-- default pine tree leaves
|
||||
minetest.override_item("default:pine_needles", {
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
inventory_image = "default_pine_needles.png",
|
||||
wield_image = "default_pine_needles.png",
|
||||
walkable = ethereal.leafwalk,
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"default:pine_sapling"}, rarity = 20},
|
||||
{items = {"ethereal:pine_nuts"}, rarity = 5},
|
||||
{items = {"default:pine_needles"}}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
-- default acacia tree leaves
|
||||
minetest.override_item("default:acacia_leaves", {
|
||||
drawtype = leaftype,
|
||||
-- tiles = {"moretrees_acacia_leaves.png"},
|
||||
inventory_image = "default_acacia_leaves.png",
|
||||
wield_image = "default_acacia_leaves.png",
|
||||
visual_scale = 1.2,
|
||||
walkable = ethereal.leafwalk,
|
||||
})
|
||||
|
||||
-- default aspen tree leaves
|
||||
minetest.override_item("default:aspen_leaves", {
|
||||
drawtype = leaftype,
|
||||
inventory_image = "default_aspen_leaves.png",
|
||||
wield_image = "default_aspen_leaves.png",
|
||||
visual_scale = 1.2,
|
||||
walkable = ethereal.leafwalk,
|
||||
})
|
||||
|
||||
-- willow twig
|
||||
minetest.register_node("ethereal:willow_twig", {
|
||||
description = S("Willow Twig"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"willow_twig.png"},
|
||||
inventory_image = "willow_twig.png",
|
||||
wield_image = "willow_twig.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
visual_scale = 1.2,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:willow_sapling"}, rarity = 50},
|
||||
{items = {"ethereal:willow_twig"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- redwood leaves
|
||||
minetest.register_node("ethereal:redwood_leaves", {
|
||||
description = S("Redwood Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
tiles = {"redwood_leaves.png"},
|
||||
inventory_image = "redwood_leaves.png",
|
||||
wield_image = "redwood_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:redwood_sapling"}, rarity = 50},
|
||||
{items = {"ethereal:redwood_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- orange tree leaves
|
||||
minetest.register_node("ethereal:orange_leaves", {
|
||||
description = S("Orange Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
tiles = {"orange_leaves.png"},
|
||||
inventory_image = "orange_leaves.png",
|
||||
wield_image = "orange_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:orange_tree_sapling"}, rarity = 15},
|
||||
{items = {"ethereal:orange_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- banana tree leaves
|
||||
minetest.register_node("ethereal:bananaleaves", {
|
||||
description = S("Banana Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
tiles = {"banana_leaf.png"},
|
||||
inventory_image = "banana_leaf.png",
|
||||
wield_image = "banana_leaf.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:banana_tree_sapling"}, rarity = 10},
|
||||
{items = {"ethereal:bananaleaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- healing tree leaves
|
||||
minetest.register_node("ethereal:yellowleaves", {
|
||||
description = S("Healing Tree Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
tiles = {"yellow_leaves.png"},
|
||||
inventory_image = "yellow_leaves.png",
|
||||
wield_image = "yellow_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:yellow_tree_sapling"}, rarity = 50},
|
||||
{items = {"ethereal:yellowleaves"}}
|
||||
}
|
||||
},
|
||||
-- one leaf heals half a heart when eaten
|
||||
on_use = minetest.item_eat(1),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
light_source = 9,
|
||||
})
|
||||
|
||||
-- palm tree leaves
|
||||
minetest.register_node("ethereal:palmleaves", {
|
||||
description = S("Palm Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
tiles = {"moretrees_palm_leaves.png"},
|
||||
inventory_image = "moretrees_palm_leaves.png",
|
||||
wield_image = "moretrees_palm_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:palm_sapling"}, rarity = 10},
|
||||
{items = {"ethereal:palmleaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- birch tree leaves
|
||||
minetest.register_node("ethereal:birch_leaves", {
|
||||
description = S("Birch Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
tiles = {"moretrees_birch_leaves.png"},
|
||||
inventory_image = "moretrees_birch_leaves.png",
|
||||
wield_image = "moretrees_birch_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:birch_sapling"}, rarity = 20},
|
||||
{items = {"ethereal:birch_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- frost tree leaves
|
||||
minetest.register_node("ethereal:frost_leaves", {
|
||||
description = S("Frost Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
tiles = {"ethereal_frost_leaves.png"},
|
||||
inventory_image = "ethereal_frost_leaves.png",
|
||||
wield_image = "ethereal_frost_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, puts_out_fire = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:frost_tree_sapling"}, rarity = 15},
|
||||
{items = {"ethereal:frost_leaves"}}
|
||||
}
|
||||
},
|
||||
light_source = 9,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- bamboo stalk leaves
|
||||
minetest.register_node("ethereal:bamboo_leaves", {
|
||||
description = S("Bamboo Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.2,
|
||||
tiles = {"bamboo_leaves.png"},
|
||||
inventory_image = "bamboo_leaves.png",
|
||||
wield_image = "bamboo_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:bamboo_sprout"}, rarity = 10},
|
||||
{items = {"ethereal:bamboo_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- mushroom tops
|
||||
minetest.register_node("ethereal:mushroom", {
|
||||
description = S("Mushroom Cap"),
|
||||
tiles = {"mushroom_block.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:mushroom_sapling"}, rarity = 20},
|
||||
{items = {"ethereal:mushroom"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:mushroom",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
-- mushroom pore (spongelike material found inside giant shrooms)
|
||||
minetest.register_node("ethereal:mushroom_pore", {
|
||||
description = S("Mushroom Pore"),
|
||||
tiles = {"mushroom_pore.png"},
|
||||
groups = {
|
||||
snappy = 3, cracky = 3, choppy = 3, oddly_breakable_by_hand = 3,
|
||||
flammable = 2, disable_jump = 1, fall_damage_add_percent = -100
|
||||
},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
-- hedge block
|
||||
minetest.register_node("ethereal:bush", {
|
||||
description = S("Bush"),
|
||||
tiles = {"ethereal_bush.png"},
|
||||
walkable = true,
|
||||
groups = {snappy = 3, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bush",
|
||||
recipe = {
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
{"group:leaves", "ethereal:bamboo_leaves", "group:leaves"},
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
}
|
||||
})
|
||||
|
||||
-- bush block #2
|
||||
minetest.register_node("ethereal:bush2", {
|
||||
drawtype = "allfaces_optional",
|
||||
description = S("Bush #2"),
|
||||
tiles = {"default_aspen_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
groups = {snappy = 3, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bush2",
|
||||
recipe = {
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
{"group:leaves", "default:aspen_leaves", "group:leaves"},
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
}
|
||||
})
|
||||
|
||||
-- bush block #3
|
||||
minetest.register_node("ethereal:bush3", {
|
||||
drawtype = "allfaces_optional",
|
||||
description = S("Bush #3"),
|
||||
tiles = {"default_pine_needles.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
groups = {snappy = 3, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bush3",
|
||||
recipe = {
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
{"group:leaves", "default:pine_needles", "group:leaves"},
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
@ -0,0 +1,220 @@
|
|||
# German Translation for ethereal mod
|
||||
# Deutsche Übersetzung der ethereal Mod
|
||||
# last update: 2016/May/25
|
||||
# Author: Xanthin
|
||||
|
||||
#bonemeal.lua
|
||||
Bone = Knochen
|
||||
Bone Meal = Knochenmehl
|
||||
|
||||
#crystal.lua
|
||||
Crystal Spike = Kristallnadel
|
||||
Crystal Ingot = Kristallbarren
|
||||
Crystal Block = Kristallblock
|
||||
Crystal Sword = Kristallschwert
|
||||
Crystal Axe = Kristallaxt
|
||||
Crystal Pickaxe = Kristallspitzhacke
|
||||
Crystal (soft touch) Shovel = Kristallschaufel (Behutsamkeit)
|
||||
Crystal Gilly Staff = Kristallener Gilly-Stab
|
||||
|
||||
#dirt.lua
|
||||
Green Dirt = Grüne Erde
|
||||
Dried Dirt = Vertrocknete Erde
|
||||
Bamboo Dirt = Bambuserde
|
||||
Jungle Dirt = Tropenerde
|
||||
Grove Dirt = Hainerde
|
||||
Prairie Dirt = Prärieerde
|
||||
Cold Dirt = Kalte Erde
|
||||
Crystal Dirt = Kristallerde
|
||||
Mushroom Dirt = Pilzerde
|
||||
Fiery Dirt = Feuerrote Erde
|
||||
Gray Dirt = Graue Erde
|
||||
Red Baked Clay = Roter gebrannter Ton
|
||||
Orange Baked Clay = Oranger gebrannter Ton
|
||||
Grey Baked Clay = Grauer gebrannter Ton
|
||||
Quicksand = Treibsand
|
||||
|
||||
#extra.lua
|
||||
Bamboo Floor = Bambusboden
|
||||
Palm Wax = Palmwachs
|
||||
Candle = Kerze
|
||||
Bowl = Schale
|
||||
Stone Ladder = Steinleiter
|
||||
Paper Wall = Papierwand
|
||||
Glo Stone = Leuchtstein
|
||||
Lump of Charcoal = Holzkohlestück
|
||||
Staff of Light = Stab des Lichts
|
||||
|
||||
#fences.lua
|
||||
Scorched Fence = Verbrannter Zaun
|
||||
Frost Fence = Frostzaun
|
||||
Redwood Fence = Mammutbaumzaun
|
||||
Willow Fence = Weidenzaun
|
||||
Healing Wood Fence = Lebensholzzaun
|
||||
Palm Fence = Palmzaun
|
||||
Banana Wood Fence = Bananenholzzaun
|
||||
Mushroom Fence = Pilzzaun
|
||||
Birch Fence = Birkenzaun
|
||||
|
||||
#fishing.lua
|
||||
Raw Fish = Roher Fisch
|
||||
Cooked Fish = Gekochter Fisch
|
||||
Sashimi = Sashimi
|
||||
Worm = Wurm
|
||||
Fishing Rod = Angelrute
|
||||
Baited Fishing Rod = Angelrute mit Köder
|
||||
Inventory full, Fish Got Away! = Inventar voll, Fisch entkam!
|
||||
|
||||
#food.lua
|
||||
Banana = Banane
|
||||
Banana Dough = Bananenteig
|
||||
Orange = Orange
|
||||
Pine Nuts = Pinienkerne
|
||||
Banana Loaf = Bananenbrot
|
||||
Coconut = Kokosnuss
|
||||
Coconut Slice = Kokosscheibe
|
||||
Golden Apple = Goldener Apfel
|
||||
Hearty Stew = Deftiger Eintopf
|
||||
Bucket of Cactus Pulp = Eimer Kaktusmark
|
||||
|
||||
#gates.lua
|
||||
Scorched Wood Fence Gate = Verbranntes Holzzauntor
|
||||
Frost Wood Fence Gate = Frostholzzauntor
|
||||
Redwood Fence Gate = Mammutbaumzauntor
|
||||
Willow Wood Fence Gate = Weidenholztor
|
||||
Healing Wood Fence Gate = Lebensholzzauntor
|
||||
Palm Wood Fence Gate = Palmholzzauntor
|
||||
Banana Wood Fence Gate = Bananenholzzauntor
|
||||
Mushroom Trunk Fence Gate = Pilzstammzauntor
|
||||
Birch Wood Fence Gate = Birkenholzzauntor
|
||||
|
||||
#init.lua
|
||||
[MOD] Ethereal loaded = [MOD] Ethereal geladen
|
||||
|
||||
#leaves.lua
|
||||
Willow Twig = Weidenrute
|
||||
Redwood Leaves = Mammutbaumlaub
|
||||
Orange Leaves = Orangenlaub
|
||||
Banana Leaves = Bananenblätter
|
||||
Healing Tree Leaves = Lebensbaumlaub
|
||||
Palm Leaves = Palmenblätter
|
||||
Birch Leaves = Birkenlaub
|
||||
Frost Leaves = Frostlaub
|
||||
Bamboo Leaves = Bambuslaub
|
||||
Mushroom Cap = Pilzkappe
|
||||
Mushroom Pore = Pilzpore
|
||||
Bush = Busch
|
||||
Bush #2 = Busch #2
|
||||
Bush #3 = Busch #3
|
||||
|
||||
#mushroom.lua
|
||||
Mushroom Soup = Pilzsuppe
|
||||
|
||||
#onion.lua
|
||||
Wild Onion = Wilde Zwiebel
|
||||
|
||||
#plantlife.lua
|
||||
Fire Flower = Feuerblume
|
||||
Fire Dust = Feuerstaub
|
||||
Vine = Weinrebe
|
||||
Light String Vine = Leuchtschnurrebe
|
||||
Fern = Farn
|
||||
Fern Tubers = Farnsporenkapseln
|
||||
Fiery Dry Shrub = Feuerroter vertrockneter Strauch
|
||||
Snowy Grass = Verschneites Gras
|
||||
Crystal Grass = Kristallgras
|
||||
Crystal Moss = Kristallmoos
|
||||
Mushroom Moss = Pilzmoos
|
||||
Fiery Moss = Feuerrotes Moos
|
||||
Gray Moss = Graues Moos
|
||||
Green Moss = Grünes Moos
|
||||
Red Illumishroom = Roter Leuchtpilz
|
||||
Green Illumishroom = Grüner Leuchtpilz
|
||||
Cyan Illumishroom = Türkiser Leuchtpilz
|
||||
|
||||
#sapling.lua
|
||||
Bamboo Sprout = Bambussprosse
|
||||
Willow Tree Sapling = Weidenbaumsetzling
|
||||
Healing Tree Sapling = Lebensbaumsetzling
|
||||
Apple Tree Sapling = Apfelbaumsetzling
|
||||
Jungle Tree Sapling = Tropenbaumsetzling
|
||||
Pine Tree Sapling = Piniensetzling
|
||||
Big Tree Sapling = Großer-Baum-Setzling
|
||||
Banana Tree Sapling = Bananensetzling
|
||||
Frost Tree Sapling = Frostbaumsetzling
|
||||
Mushroom Tree Sapling = Pilzbaumsetzling
|
||||
Palm Tree Sapling = Palmensetzling
|
||||
Redwood Tree Sapling = Mammutbaumsetzling
|
||||
Orange Tree Sapling = Orangenbaumsetzling
|
||||
Acacia Tree Sapling = Akaziensetzling
|
||||
Birch Tree Sapling = Birkensetzling
|
||||
Schematic not found = Schema nicht gefunden
|
||||
|
||||
#sealife.lua
|
||||
Seaweed = Seetang
|
||||
Blue Coral = Blaue Koralle
|
||||
Orange Coral = Orange Koralle
|
||||
Pink Coral = Rosa Koralle
|
||||
Green Coral = Grüne Koralle
|
||||
Sandy = Sandy
|
||||
|
||||
#stairs.lua
|
||||
Crystal Block Stair = Kristallblocktreppe
|
||||
Crystal Block Slab = Kristallblockplatte
|
||||
Ice Brick Stair = Eisziegeltreppe
|
||||
Ice Brick Slab = Eisziegelplatte
|
||||
Snow Brick Stair = Schneeziegeltreppe
|
||||
Snow Brick Slab = Schneeziegelplatte
|
||||
Dry Dirt Stair = Vertrocknete Erdtreppe
|
||||
Dry Dirt Slab = vertrocknete Erdplatte
|
||||
Mushroom Trunk Stair = Pilzstammtreppe
|
||||
Mushroom Trunk Slab = Pilzstammplatte
|
||||
Mushroom Top Stair = Pilzkappentreppe
|
||||
Mushroom Top Slab = Pilzkappenplatte
|
||||
Frost Wood Stair = Frostholztreppe
|
||||
Frost Wood Slab = Frostholzplatte
|
||||
Healing Wood Stair = Lebensholztreppe
|
||||
Healing Wood Slab = Lebensholzplatte
|
||||
Palm Wood Stair = Palmholztreppe
|
||||
Palm Wood Slab = Palmholzplatte
|
||||
Birch Wood Stair = Birkenholztreppe
|
||||
Birch Wood Slab = Birkenholzplatte
|
||||
Banana Wood Stair = Bananenholztreppe
|
||||
Banana Wood Slab = Bananenholzplatte
|
||||
Willow Wood Stair = Weidenholztreppe
|
||||
Willow Wood Slab = Weidenholzplatte
|
||||
Redwood Stair = Mammutbaumtreppe
|
||||
Redwood Slab = Mammutbaumplatte
|
||||
Bamboo Stair = Bambustreppe
|
||||
Bamboo Slab = Bambusplatte
|
||||
Dry Dirt = Vertrocknete Erde
|
||||
Mushroom Trunk = Pilzstamm
|
||||
Mushroom Top = Pilzkappe
|
||||
Healing Wood = Lebensholz
|
||||
Redwood = Mammutbaum
|
||||
|
||||
#strawberry.lua
|
||||
Strawberry = Erdbeere
|
||||
|
||||
#water.lua
|
||||
Ice Brick = Eisziegel
|
||||
Snow Brick = Schneeziegel
|
||||
|
||||
#wood.lua
|
||||
Willow Trunk = Weidenstamm
|
||||
Willow Wood = Weidenholz
|
||||
Redwood Trunk = Mammutbaumstamm
|
||||
Redwood Wood = Mammutbaumholz
|
||||
Frost Tree = Frostbaum
|
||||
Frost Wood = Frostholz
|
||||
Healing Tree Trunk = Lebensbaumstamm
|
||||
Healing Tree Wood = Lebensbaumholz
|
||||
Palm Trunk = Palmstamm
|
||||
Palm Wood = Palmholz
|
||||
Banana Trunk = Bananenstamm
|
||||
Banana Wood = Bananenholz
|
||||
Scorched Tree = Verbrannter Baum
|
||||
Mushroom = Pilz
|
||||
Birch Trunk = Birkenstamm
|
||||
Birch Wood = Birkenholz
|
||||
Bamboo = Bambus
|
|
@ -0,0 +1,218 @@
|
|||
# Template for translations of ethereal mod
|
||||
# last update: 2016/May/25
|
||||
|
||||
#bonemeal.lua
|
||||
Bone =
|
||||
Bone Meal =
|
||||
|
||||
#crystal.lua
|
||||
Crystal Spike =
|
||||
Crystal Ingot =
|
||||
Crystal Block =
|
||||
Crystal Sword =
|
||||
Crystal Axe =
|
||||
Crystal Pickaxe =
|
||||
Crystal (soft touch) Shovel =
|
||||
Crystal Gilly Staff =
|
||||
|
||||
#dirt.lua
|
||||
Green Dirt =
|
||||
Dried Dirt =
|
||||
Bamboo Dirt =
|
||||
Jungle Dirt =
|
||||
Grove Dirt =
|
||||
Prairie Dirt =
|
||||
Cold Dirt =
|
||||
Crystal Dirt =
|
||||
Mushroom Dirt =
|
||||
Fiery Dirt =
|
||||
Gray Dirt =
|
||||
Red Baked Clay =
|
||||
Orange Baked Clay =
|
||||
Grey Baked Clay =
|
||||
Quicksand =
|
||||
|
||||
#extra.lua
|
||||
Bamboo Floor =
|
||||
Palm Wax =
|
||||
Candle =
|
||||
Bowl =
|
||||
Stone Ladder =
|
||||
Paper Wall =
|
||||
Glo Stone =
|
||||
Lump of Charcoal =
|
||||
Staff of Light =
|
||||
|
||||
#fences.lua
|
||||
Scorched Fence =
|
||||
Frost Fence =
|
||||
Redwood Fence =
|
||||
Willow Fence =
|
||||
Healing Wood Fence =
|
||||
Palm Fence =
|
||||
Banana Wood Fence =
|
||||
Mushroom Fence =
|
||||
Birch Fence =
|
||||
|
||||
#fishing.lua
|
||||
Raw Fish =
|
||||
Cooked Fish =
|
||||
Sashimi =
|
||||
Worm =
|
||||
Fishing Rod =
|
||||
Baited Fishing Rod =
|
||||
Inventory full, Fish Got Away! =
|
||||
|
||||
#food.lua
|
||||
Banana =
|
||||
Banana Dough =
|
||||
Orange =
|
||||
Pine Nuts =
|
||||
Banana Loaf =
|
||||
Coconut =
|
||||
Coconut Slice =
|
||||
Golden Apple =
|
||||
Hearty Stew =
|
||||
Bucket of Cactus Pulp =
|
||||
|
||||
#gates.lua
|
||||
Scorched Wood Fence Gate =
|
||||
Frost Wood Fence Gate =
|
||||
Redwood Fence Gate =
|
||||
Willow Wood Fence Gate =
|
||||
Healing Wood Fence Gate =
|
||||
Palm Wood Fence Gate =
|
||||
Banana Wood Fence Gate =
|
||||
Mushroom Trunk Fence Gate =
|
||||
Birch Wood Fence Gate =
|
||||
|
||||
#init.lua
|
||||
[MOD] Ethereal loaded =
|
||||
|
||||
#leaves.lua
|
||||
Willow Twig =
|
||||
Redwood Leaves =
|
||||
Orange Leaves =
|
||||
Banana Leaves =
|
||||
Healing Tree Leaves =
|
||||
Palm Leaves =
|
||||
Birch Leaves =
|
||||
Frost Leaves =
|
||||
Bamboo Leaves =
|
||||
Mushroom Cap =
|
||||
Mushroom Pore =
|
||||
Bush =
|
||||
Bush #2 =
|
||||
Bush #3 =
|
||||
|
||||
#mushroom.lua
|
||||
Mushroom Soup =
|
||||
|
||||
#onion.lua
|
||||
Wild Onion =
|
||||
|
||||
#plantlife.lua
|
||||
Fire Flower =
|
||||
Fire Dust =
|
||||
Vine =
|
||||
Light String Vine =
|
||||
Fern =
|
||||
Fern Tubers =
|
||||
Fiery Dry Shrub =
|
||||
Snowy Grass =
|
||||
Crystal Grass =
|
||||
Crystal Moss =
|
||||
Mushroom Moss =
|
||||
Fiery Moss =
|
||||
Gray Moss =
|
||||
Green Moss =
|
||||
Red Illumishroom =
|
||||
Green Illumishroom =
|
||||
Cyan Illumishroom =
|
||||
|
||||
#sapling.lua
|
||||
Bamboo Sprout =
|
||||
Willow Tree Sapling =
|
||||
Healing Tree Sapling =
|
||||
Apple Tree Sapling =
|
||||
Jungle Tree Sapling =
|
||||
Pine Tree Sapling =
|
||||
Big Tree Sapling =
|
||||
Banana Tree Sapling =
|
||||
Frost Tree Sapling =
|
||||
Mushroom Tree Sapling =
|
||||
Palm Tree Sapling =
|
||||
Redwood Tree Sapling =
|
||||
Orange Tree Sapling =
|
||||
Acacia Tree Sapling =
|
||||
Birch Tree Sapling =
|
||||
Schematic not found =
|
||||
|
||||
#sealife.lua
|
||||
Seaweed =
|
||||
Blue Coral =
|
||||
Orange Coral =
|
||||
Pink Coral =
|
||||
Green Coral =
|
||||
Sandy =
|
||||
|
||||
#stairs.lua
|
||||
Crystal Block Stair =
|
||||
Crystal Block Slab =
|
||||
Ice Brick Stair =
|
||||
Ice Brick Slab =
|
||||
Snow Brick Stair =
|
||||
Snow Brick Slab =
|
||||
Dry Dirt Stair =
|
||||
Dry Dirt Slab =
|
||||
Mushroom Trunk Stair =
|
||||
Mushroom Trunk Slab =
|
||||
Mushroom Top Stair =
|
||||
Mushroom Top Slab =
|
||||
Frost Wood Stair =
|
||||
Frost Wood Slab =
|
||||
Healing Wood Stair =
|
||||
Healing Wood Slab =
|
||||
Palm Wood Stair =
|
||||
Palm Wood Slab =
|
||||
Birch Wood Stair =
|
||||
Birch Wood Slab =
|
||||
Banana Wood Stair =
|
||||
Banana Wood Slab =
|
||||
Willow Wood Stair =
|
||||
Willow Wood Slab =
|
||||
Redwood Stair =
|
||||
Redwood Slab =
|
||||
Bamboo Stair =
|
||||
Bamboo Slab =
|
||||
Dry Dirt =
|
||||
Mushroom Trunk =
|
||||
Mushroom Top =
|
||||
Healing Wood =
|
||||
Redwood =
|
||||
|
||||
#strawberry.lua
|
||||
Strawberry =
|
||||
|
||||
#water.lua
|
||||
Ice Brick =
|
||||
Snow Brick =
|
||||
|
||||
#wood.lua
|
||||
Willow Trunk =
|
||||
Willow Wood =
|
||||
Redwood Trunk =
|
||||
Redwood Wood =
|
||||
Frost Tree =
|
||||
Frost Wood =
|
||||
Healing Tree Trunk =
|
||||
Healing Tree Wood =
|
||||
Palm Trunk =
|
||||
Palm Wood =
|
||||
Banana Trunk =
|
||||
Banana Wood =
|
||||
Scorched Tree =
|
||||
Mushroom =
|
||||
Birch Trunk =
|
||||
Birch Wood =
|
||||
Bamboo =
|
|
@ -0,0 +1,530 @@
|
|||
|
||||
-- clear default mapgen biomes, decorations and ores
|
||||
minetest.clear_registered_biomes()
|
||||
minetest.clear_registered_decorations()
|
||||
--minetest.clear_registered_ores()
|
||||
|
||||
local path = minetest.get_modpath("ethereal")
|
||||
|
||||
dofile(path .. "/ores.lua")
|
||||
|
||||
path = path .. "/schematics/"
|
||||
|
||||
local dpath = minetest.get_modpath("default") .. "/schematics/"
|
||||
|
||||
-- tree schematics
|
||||
dofile(path .. "orange_tree.lua")
|
||||
dofile(path .. "banana_tree.lua")
|
||||
dofile(path .. "bamboo_tree.lua")
|
||||
dofile(path .. "birch_tree.lua")
|
||||
dofile(path .. "bush.lua")
|
||||
dofile(path .. "waterlily.lua")
|
||||
|
||||
--= Biomes (Minetest 0.4.13 and above)
|
||||
|
||||
local add_biome = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
|
||||
|
||||
if p ~= 1 then return end
|
||||
|
||||
minetest.register_biome({
|
||||
name = a,
|
||||
node_dust = b,
|
||||
node_top = c,
|
||||
depth_top = d,
|
||||
node_filler = e,
|
||||
depth_filler = f,
|
||||
node_stone = g,
|
||||
node_water_top = h,
|
||||
depth_water_top = i,
|
||||
node_water = j,
|
||||
node_river_water = k,
|
||||
y_min = l,
|
||||
y_max = m,
|
||||
heat_point = n,
|
||||
humidity_point = o,
|
||||
})
|
||||
end
|
||||
|
||||
add_biome("underground", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
||||
-31000, -192, 50, 50, 1)
|
||||
|
||||
add_biome("mountain", nil, "default:snow", 1, "default:snowblock", 2,
|
||||
nil, nil, nil, nil, nil, 140, 31000, 50, 50, 1)
|
||||
|
||||
add_biome("desert", nil, "default:desert_sand", 1, "default:desert_sand", 3,
|
||||
"default:desert_stone", nil, nil, nil, nil, 3, 23, 35, 20, ethereal.desert)
|
||||
|
||||
add_biome("desert_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
"default:desert_stone", nil, nil, nil, nil, -192, 3, 35, 20, ethereal.desert)
|
||||
|
||||
add_biome("glacier", "default:snowblock", "default:snowblock", 1,
|
||||
"default:snowblock", 3, "default:ice", "default:ice", 10, -8, 31000, 0, 50, ethereal.glacier)
|
||||
|
||||
add_biome("glacier_ocean", "default:snowblock", "default:sand", 1, "default:sand", 3,
|
||||
nil, nil, nil, nil, nil, -112, -9, 0, 50, ethereal.glacier)
|
||||
|
||||
add_biome("clearing", nil, "ethereal:green_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 3, 71, 45, 65, 1) -- ADDED
|
||||
|
||||
add_biome("bamboo", nil, "ethereal:bamboo_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 3, 71, 45, 75, ethereal.bamboo)
|
||||
|
||||
add_biome("bamboo_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 2, 45, 75, ethereal.bamboo)
|
||||
|
||||
add_biome("mesa", nil, "bakedclay:orange", 1, "bakedclay:orange", 15,
|
||||
nil, nil, nil, nil, nil, 1, 71, 25, 28, ethereal.mesa)
|
||||
|
||||
add_biome("mesa_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 1, 25, 28, ethereal.mesa)
|
||||
|
||||
add_biome("alpine", nil, "default:dirt_with_snow", 1, "default:dirt", 2,
|
||||
nil, nil, nil, nil, nil, 40, 140, 10, 40, ethereal.alpine)
|
||||
|
||||
add_biome("snowy", nil, "ethereal:cold_dirt", 1, "default:dirt", 2,
|
||||
nil, nil, nil, nil, nil, 4, 40, 10, 40, ethereal.snowy)
|
||||
|
||||
add_biome("frost", nil, "ethereal:crystal_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 1, 71, 10, 40, ethereal.frost)
|
||||
|
||||
add_biome("frost_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 1, 10, 40, ethereal.frost)
|
||||
|
||||
add_biome("grassy", nil, "ethereal:green_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 3, 91, 13, 40, ethereal.grassy)
|
||||
|
||||
add_biome("grassy_ocean", nil, "defaut:sand", 2, "default:gravel", 1,
|
||||
nil, nil, nil, nil, nil, -31000, 3, 13, 40, ethereal.grassy)
|
||||
|
||||
add_biome("caves", nil, "default:desert_stone", 3, "air", 8,
|
||||
nil, nil, nil, nil, nil, 4, 41, 15, 25, ethereal.caves)
|
||||
|
||||
add_biome("grayness", nil, "ethereal:gray_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 2, 41, 15, 30, ethereal.grayness)
|
||||
|
||||
add_biome("grayness_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 1, 15, 30, ethereal.grayness)
|
||||
|
||||
add_biome("grassytwo", nil, "ethereal:green_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 1, 91, 15, 40, ethereal.grassytwo)
|
||||
|
||||
add_biome("grassytwo_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 1, 15, 40, ethereal.grassytwo)
|
||||
|
||||
add_biome("prairie", nil, "ethereal:prairie_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 3, 26, 20, 40, ethereal.prairie)
|
||||
|
||||
add_biome("prairie_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 1, 20, 40, ethereal.prairie)
|
||||
|
||||
add_biome("jumble", nil, "ethereal:green_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 1, 71, 25, 50, ethereal.jumble)
|
||||
|
||||
add_biome("jumble_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 1, 25, 50, ethereal.jumble)
|
||||
|
||||
add_biome("junglee", nil, "ethereal:jungle_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 1, 71, 30, 60, ethereal.junglee)
|
||||
|
||||
add_biome("junglee_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 1, 30, 60, ethereal.junglee)
|
||||
|
||||
add_biome("grove", nil, "ethereal:grove_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 3, 23, 45, 35, ethereal.grove)
|
||||
|
||||
add_biome("grove_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 2, 45, 35, ethereal.grove)
|
||||
|
||||
add_biome("mushroom", nil, "ethereal:mushroom_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 3, 50, 45, 55, ethereal.mushroom)
|
||||
|
||||
add_biome("mushroom_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 2, 45, 55, ethereal.mushroom)
|
||||
|
||||
add_biome("sandstone", nil, "default:sandstone", 1, "default:sandstone", 1,
|
||||
"default:sandstone", nil, nil, nil, nil, 3, 23, 50, 20, ethereal.sandstone)
|
||||
|
||||
add_biome("sandstone_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 2, 50, 20, ethereal.sandstone)
|
||||
|
||||
add_biome("quicksand", nil, "ethereal:quicksand2", 3, "default:gravel", 1,
|
||||
nil, nil, nil, nil, nil, 1, 1, 50, 38, ethereal.quicksand)
|
||||
|
||||
add_biome("plains", nil, "ethereal:dry_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 3, 25, 65, 25, ethereal.plains)
|
||||
|
||||
add_biome("plains_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 2, 55, 25, ethereal.plains)
|
||||
|
||||
add_biome("savannah", nil, "default:dirt_with_dry_grass", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 3, 50, 55, 25, ethereal.savannah)
|
||||
|
||||
add_biome("savannah_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 1, 55, 25, ethereal.savannah)
|
||||
|
||||
add_biome("fiery", nil, "ethereal:fiery_dirt", 1, "default:dirt", 3,
|
||||
nil, nil, nil, nil, nil, 5, 20, 75, 10, ethereal.fiery)
|
||||
|
||||
add_biome("fiery_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||
nil, nil, nil, nil, nil, -192, 4, 75, 10, ethereal.fiery)
|
||||
|
||||
add_biome("sandclay", nil, "default:sand", 3, "default:clay", 2,
|
||||
nil, nil, nil, nil, nil, 1, 11, 65, 2, ethereal.sandclay)
|
||||
|
||||
--= schematic decorations
|
||||
|
||||
local add_schem = function(a, b, c, d, e, f, g)
|
||||
|
||||
if g ~= 1 then return end
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = a,
|
||||
sidelen = 80,
|
||||
fill_ratio = b,
|
||||
biomes = c,
|
||||
y_min = d,
|
||||
y_max = e,
|
||||
schematic = f,
|
||||
flags = "place_center_x, place_center_z",
|
||||
})
|
||||
end
|
||||
|
||||
-- redwood tree
|
||||
add_schem({"bakedclay:orange"}, 0.0025, {"mesa"}, 1, 100, path .. "redwood.mts", ethereal.mesa)
|
||||
|
||||
-- banana tree
|
||||
add_schem({"ethereal:grove_dirt"}, 0.015, {"grove"}, 1, 100, ethereal.bananatree, ethereal.grove)
|
||||
|
||||
-- healing tree
|
||||
add_schem({"default:dirt_with_snow"}, 0.01, {"alpine"}, 120, 140, path .. "yellowtree.mts", ethereal.alpine)
|
||||
|
||||
-- crystal frost tree
|
||||
add_schem({"ethereal:crystal_dirt"}, 0.01, {"frost"}, 1, 100, path .. "frosttrees.mts", ethereal.frost)
|
||||
|
||||
-- giant mushroom
|
||||
add_schem({"ethereal:mushroom_dirt"}, 0.02, {"mushroom"}, 1, 100, path .. "mushroomone.mts", ethereal.mushroom)
|
||||
|
||||
-- small lava crater
|
||||
add_schem({"ethereal:fiery_dirt"}, 0.01, {"fiery"}, 1, 100, path .. "volcanom.mts", ethereal.fiery)
|
||||
|
||||
-- large lava crater
|
||||
add_schem({"ethereal:fiery_dirt"}, 0.01, {"fiery"}, 1, 100, path .. "volcanol.mts", ethereal.fiery)
|
||||
|
||||
-- default jungle tree
|
||||
add_schem({"ethereal:jungle_dirt"}, 0.08, {"junglee"}, 1, 100, dpath .. "jungle_tree.mts", ethereal.junglee)
|
||||
|
||||
-- willow tree
|
||||
add_schem({"ethereal:gray_dirt"}, 0.02, {"grayness"}, 1, 100, path .. "willow.mts", ethereal.grayness)
|
||||
|
||||
-- pine tree (default for lower elevation and ethereal for higher)
|
||||
add_schem({"ethereal:cold_dirt"}, 0.025, {"snowy"}, 10, 40, dpath .. "pine_tree.mts", ethereal.snowy)
|
||||
add_schem({"default:dirt_with_snow"}, 0.025, {"alpine"}, 40, 140, path .. "pinetree.mts", ethereal.alpine)
|
||||
|
||||
-- default apple tree
|
||||
add_schem({"ethereal:green_dirt"}, 0.02, {"jumble"}, 1, 100, dpath .. "apple_tree.mts", ethereal.grassy)
|
||||
add_schem({"ethereal:green_dirt"}, 0.03, {"grassy"}, 1, 100, dpath .. "apple_tree.mts", ethereal.grassy)
|
||||
|
||||
-- big old tree
|
||||
add_schem({"ethereal:green_dirt"}, 0.001, {"jumble"}, 1, 100, path .. "bigtree.mts", ethereal.jumble)
|
||||
|
||||
-- aspen tree
|
||||
add_schem({"ethereal:green_dirt"}, 0.02, {"grassytwo"}, 1, 50, dpath .. "aspen_tree.mts", ethereal.jumble)
|
||||
|
||||
-- birch tree
|
||||
add_schem({"ethereal:green_dirt"}, 0.02, {"grassytwo"}, 50, 100, ethereal.birchtree, ethereal.grassytwo)
|
||||
|
||||
-- orange tree
|
||||
add_schem({"ethereal:prairie_dirt"}, 0.01, {"prairie"}, 1, 100, ethereal.orangetree, ethereal.prairie)
|
||||
|
||||
-- default acacia tree
|
||||
add_schem({"default:dirt_with_dry_grass"}, 0.004, {"savannah"}, 1, 100, dpath .. "acacia_tree.mts", ethereal.savannah)
|
||||
|
||||
-- large cactus (by Paramat)
|
||||
if ethereal.desert == 1 then
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:desert_sand"},
|
||||
sidelen = 80,
|
||||
noise_params = {
|
||||
offset = -0.0005,
|
||||
scale = 0.0015,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = 230,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
biomes = {"desert"},
|
||||
y_min = 5,
|
||||
y_max = 31000,
|
||||
schematic = dpath.."large_cactus.mts",
|
||||
flags = "place_center_x", --, place_center_z",
|
||||
rotation = "random",
|
||||
})
|
||||
end
|
||||
|
||||
-- palm tree
|
||||
add_schem({"default:sand"}, 0.0025, {"desert_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.desert)
|
||||
add_schem({"default:sand"}, 0.0025, {"plains_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.plains)
|
||||
add_schem({"default:sand"}, 0.0025, {"sandclay"}, 1, 1, path .. "palmtree.mts", ethereal.sandclay)
|
||||
add_schem({"default:sand"}, 0.0025, {"sandstone_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.sandstone)
|
||||
add_schem({"default:sand"}, 0.0025, {"mesa_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.mesa)
|
||||
add_schem({"default:sand"}, 0.0025, {"grove_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.grove)
|
||||
add_schem({"default:sand"}, 0.0025, {"grassy_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.grassy)
|
||||
|
||||
-- bamboo tree
|
||||
add_schem({"ethereal:bamboo_dirt"}, 0.025, {"bamboo"}, 1, 100, ethereal.bambootree, ethereal.bamboo)
|
||||
|
||||
-- bush
|
||||
add_schem({"ethereal:bamboo_dirt"}, 0.08, {"bamboo"}, 1, 100, ethereal.bush, ethereal.bamboo)
|
||||
|
||||
--= simple decorations
|
||||
|
||||
local add_node = function(a, b, c, d, e, f, g, h, i, j)
|
||||
|
||||
if j ~= 1 then return end
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = a,
|
||||
sidelen = 80,
|
||||
fill_ratio = b,
|
||||
biomes = c,
|
||||
y_min = d,
|
||||
y_max = e,
|
||||
decoration = f,
|
||||
height_max = g,
|
||||
spawn_by = h,
|
||||
num_spawn_by = i,
|
||||
})
|
||||
end
|
||||
|
||||
-- scorched tree
|
||||
add_node({"ethereal:dry_dirt"}, 0.006, {"plains"}, 1, 100, {"ethereal:scorched_tree"}, 6, nil, nil, ethereal.plains)
|
||||
|
||||
-- dry shrub
|
||||
add_node({"ethereal:dry_dirt"}, 0.015, {"plains"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.plains)
|
||||
add_node({"default:sand"}, 0.015, {"grassy_ocean"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.grassy)
|
||||
add_node({"default:desert_sand"}, 0.015, {"desert"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.desert)
|
||||
add_node({"default:sandstone"}, 0.015, {"sandstone"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.sandstone)
|
||||
add_node({"bakedclay:red", "bakedclay:orange"}, 0.015, {"mesa"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.mesa)
|
||||
|
||||
-- dry grass
|
||||
add_node({"default:dirt_with_dry_grass"}, 0.25, {"savannah"}, 1, 100, {"default:dry_grass_2",
|
||||
"default:dry_grass_3", "default:dry_grass_4", "default:dry_grass_5"}, nil, nil, nil, ethereal.savannah)
|
||||
|
||||
-- flowers & strawberry
|
||||
add_node({"ethereal:green_dirt"}, 0.025, {"grassy"}, 1, 100, {"flowers:dandelion_white",
|
||||
"flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||
"flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.grassy)
|
||||
add_node({"ethereal:green_dirt"}, 0.025, {"grassytwo"}, 1, 100, {"flowers:dandelion_white",
|
||||
"flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||
"flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.grassytwo)
|
||||
|
||||
-- prairie flowers & strawberry
|
||||
add_node({"ethereal:prairie_dirt"}, 0.035, {"prairie"}, 1, 100, {"flowers:dandelion_white",
|
||||
"flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||
"flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.prairie)
|
||||
|
||||
-- crystal spike & crystal grass
|
||||
add_node({"ethereal:crystal_dirt"}, 0.02, {"frost"}, 1, 100, {"ethereal:crystal_spike",
|
||||
"ethereal:crystalgrass"}, nil, nil, nil, ethereal.frost)
|
||||
|
||||
-- red shrub
|
||||
add_node({"ethereal:fiery_dirt"}, 0.10, {"fiery"}, 1, 100, {"ethereal:dry_shrub"}, nil, nil, nil, ethereal.fiery)
|
||||
|
||||
-- fire flower
|
||||
--add_node({"ethereal:fiery_dirt"}, 0.02, {"fiery"}, 1, 100, {"ethereal:fire_flower"}, nil, nil, nil, ethereal.fiery)
|
||||
|
||||
-- snowy grass
|
||||
add_node({"ethereal:gray_dirt"}, 0.05, {"grayness"}, 1, 100, {"ethereal:snowygrass"}, nil, nil, nil, ethereal.grayness)
|
||||
add_node({"ethereal:cold_dirt"}, 0.05, {"snowy"}, 1, 100, {"ethereal:snowygrass"}, nil, nil, nil, ethereal.snowy)
|
||||
|
||||
-- cactus
|
||||
add_node({"default:sandstone"}, 0.0025, {"sandstone"}, 1, 100, {"default:cactus"}, 3, nil, nil, ethereal.sandstone)
|
||||
add_node({"default:desert_sand"}, 0.005, {"desert"}, 1, 100, {"default:cactus"}, 4, nil, nil, ethereal.desert)
|
||||
|
||||
-- wild red mushroom
|
||||
add_node({"ethereal:mushroom_dirt"}, 0.01, {"mushroom"}, 1, 100, {"flowers:mushroom_fertile_red"}, nil, nil, nil, ethereal.mushroom)
|
||||
|
||||
local list = {
|
||||
{"junglee", "ethereal:jungle_dirt", ethereal.junglee},
|
||||
{"grassy", "ethereal:green_dirt", ethereal.grassy},
|
||||
{"grassytwo", "ethereal:green_dirt", ethereal.grassytwo},
|
||||
{"prairie", "ethereal:prairie_dirt", ethereal.prairie},
|
||||
{"mushroom", "ethereal:mushroom_dirt", ethereal.mushroom}
|
||||
}
|
||||
|
||||
-- wild red and brown mushrooms
|
||||
for _, row in pairs(list) do
|
||||
|
||||
if row[3] == 1 then
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {row[2]},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0,
|
||||
scale = 0.009,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = 2,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {row[1]},
|
||||
y_min = 1,
|
||||
y_max = 120,
|
||||
decoration = {"flowers:mushroom_brown", "flowers:mushroom_red"},
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- jungle grass
|
||||
add_node({"ethereal:jungle_dirt"}, 0.10, {"junglee"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.junglee)
|
||||
add_node({"ethereal:green_dirt"}, 0.15, {"jumble"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.jumble)
|
||||
|
||||
-- grass
|
||||
add_node({"ethereal:green_dirt"}, 0.35, {"grassy"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grassy)
|
||||
add_node({"ethereal:green_dirt"}, 0.35, {"grassytwo"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grassytwo)
|
||||
add_node({"ethereal:green_dirt"}, 0.35, {"jumble"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.jumble)
|
||||
add_node({"ethereal:jungle_dirt"}, 0.35, {"junglee"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.junglee)
|
||||
add_node({"ethereal:prairie_dirt"}, 0.35, {"prairie"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.prairie)
|
||||
add_node({"ethereal:grove_dirt"}, 0.35, {"grove"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grove)
|
||||
add_node({"ethereal:bamboo_dirt"}, 0.35, {"bamboo"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.bamboo)
|
||||
add_node({"ethereal:green_dirt"}, 0.25, {"clearing"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||
"default:grass_4"}, nil, nil, nil, 1)
|
||||
|
||||
-- grass on sand
|
||||
add_node({"default:sand"}, 0.25, {"sandclay"}, 3, 3, {"default:grass_2", "default:grass_3"}, nil, nil, nil, ethereal.sandclay)
|
||||
|
||||
-- ferns
|
||||
add_node({"ethereal:grove_dirt"}, 0.2, {"grove"}, 1, 100, {"ethereal:fern"}, nil, nil, nil, ethereal.grove)
|
||||
|
||||
|
||||
-- snow
|
||||
add_node({"ethereal:cold_dirt"}, 0.8, {"snowy"}, 4, 40, {"default:snow"}, nil, nil, nil, ethereal.snowy)
|
||||
add_node({"default:dirt_with_snow"}, 0.8, {"alpine"}, 40, 140, {"default:snow"}, nil, nil, nil, ethereal.alpine)
|
||||
|
||||
-- wild onion
|
||||
add_node({"ethereal:green_dirt"}, 0.25, {"grassy"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.grassy)
|
||||
add_node({"ethereal:green_dirt"}, 0.25, {"grassytwo"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.grassytwo)
|
||||
add_node({"ethereal:green_dirt"}, 0.25, {"jumble"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.jumble)
|
||||
add_node({"ethereal:prairie_dirt"}, 0.25, {"prairie"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.prairie)
|
||||
|
||||
-- papyrus
|
||||
add_node({"ethereal:green_dirt"}, 0.1, {"grassy"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.grassy)
|
||||
add_node({"ethereal:jungle_dirt"}, 0.1, {"junglee"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.junglee)
|
||||
|
||||
--= Farming Redo plants
|
||||
|
||||
if farming and farming.mod and farming.mod == "redo" then
|
||||
|
||||
print ("[MOD] Ethereal - Farming Redo detected and in use")
|
||||
|
||||
-- potato
|
||||
add_node({"ethereal:jungle_dirt"}, 0.035, {"junglee"}, 1, 100, {"farming:potato_3"}, nil, nil, nil, ethereal.junglee)
|
||||
|
||||
-- carrot, cucumber, potato, tomato, corn, coffee, raspberry, rhubarb
|
||||
add_node({"ethereal:green_dirt"}, 0.05, {"grassytwo"}, 1, 100, {"farming:carrot_7", "farming:cucumber_4",
|
||||
"farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"}, nil, nil, nil, ethereal.grassytwo)
|
||||
add_node({"ethereal:green_dirt"}, 0.05, {"grassy"}, 1, 100, {"farming:carrot_7", "farming:cucumber_4",
|
||||
"farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"}, nil, nil, nil, ethereal.grassy)
|
||||
add_node({"ethereal:green_dirt"}, 0.05, {"jumble"}, 1, 100, {"farming:carrot_7", "farming:cucumber_4",
|
||||
"farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"}, nil, nil, nil, ethereal.jumble)
|
||||
add_node({"ethereal:prairie_dirt"}, 0.05, {"prairie"}, 1, 100, {"farming:carrot_7", "farming:cucumber_4",
|
||||
"farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"}, nil, nil, nil, ethereal.prairie)
|
||||
|
||||
-- melon and pumpkin
|
||||
add_node({"ethereal:jungle_dirt"}, 0.015, {"junglee"}, 1, 1, {"farming:melon_8", "farming:pumpkin_8"}, nil, "default:water_source", 1, ethereal.junglee)
|
||||
add_node({"ethereal:green_dirt"}, 0.015, {"grassy"}, 1, 1, {"farming:melon_8", "farming:pumpkin_8"}, nil, "default:water_source", 1, ethereal.grassy)
|
||||
add_node({"ethereal:green_dirt"}, 0.015, {"grassytwo"}, 1, 1, {"farming:melon_8", "farming:pumpkin_8"}, nil, "default:water_source", 1, ethereal.grassytwo)
|
||||
add_node({"ethereal:green_dirt"}, 0.015, {"jumble"}, 1, 1, {"farming:melon_8", "farming:pumpkin_8"}, nil, "default:water_source", 1, ethereal.jumble)
|
||||
|
||||
-- green beans
|
||||
add_node({"ethereal:green_dirt"}, 0.035, {"grassytwo"}, 1, 100, {"farming:beanbush"}, nil, nil, nil, ethereal.grassytwo)
|
||||
|
||||
-- grape bushel
|
||||
add_node({"ethereal:green_dirt"}, 0.025, {"grassytwo"}, 1, 100, {"farming:grapebush"}, nil, nil, nil, ethereal.grassytwo)
|
||||
add_node({"ethereal:green_dirt"}, 0.025, {"grassy"}, 1, 100, {"farming:grapebush"}, nil, nil, nil, ethereal.grassy)
|
||||
add_node({"ethereal:prairie_dirt"}, 0.025, {"prairie"}, 1, 100, {"farming:grapebush"}, nil, nil, nil, ethereal.prairie)
|
||||
|
||||
end
|
||||
|
||||
-- place waterlily in beach areas
|
||||
local list = {
|
||||
{"desert_ocean", ethereal.desert},
|
||||
{"plains_ocean", ethereal.plains},
|
||||
{"sandclay", ethereal.sandclay},
|
||||
{"sandstone_ocean", ethereal.sandstone},
|
||||
{"mesa_ocean", ethereal.mesa},
|
||||
{"grove_ocean", ethereal.grove},
|
||||
{"grassy_ocean", ethereal.grassy},
|
||||
}
|
||||
|
||||
for _, row in pairs(list) do
|
||||
|
||||
if row[2] == 1 then
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:sand"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.12,
|
||||
scale = 0.3,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = 33,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {row[1]},
|
||||
y_min = 0,
|
||||
y_max = 0,
|
||||
schematic = ethereal.waterlily,
|
||||
rotation = "random",
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- Generate Illumishroom in caves next to coal
|
||||
minetest.register_on_generated(function(minp, maxp)
|
||||
|
||||
if minp.y > -30 or maxp.y < -3000 then
|
||||
return
|
||||
end
|
||||
|
||||
local bpos
|
||||
local coal = minetest.find_nodes_in_area_under_air(minp, maxp, "default:stone_with_coal")
|
||||
|
||||
for n = 1, #coal do
|
||||
|
||||
bpos = {x = coal[n].x, y = coal[n].y + 1, z = coal[n].z }
|
||||
|
||||
if math.random(1, 2) == 1 then
|
||||
|
||||
if bpos.y > -3000 and bpos.y < -2000 then
|
||||
minetest.swap_node(bpos, {name = "ethereal:illumishroom3"})
|
||||
|
||||
elseif bpos.y > -2000 and bpos.y < -1000 then
|
||||
minetest.swap_node(bpos, {name = "ethereal:illumishroom2"})
|
||||
|
||||
elseif bpos.y > -1000 and bpos.y < -30 then
|
||||
minetest.swap_node(bpos, {name = "ethereal:illumishroom"})
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
|
@ -0,0 +1 @@
|
|||
name = ethereal
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- mushroom soup (Heals 1 heart)
|
||||
minetest.register_craftitem("ethereal:mushroom_soup", {
|
||||
description = S("Mushroom Soup"),
|
||||
inventory_image = "mushroom_soup.png",
|
||||
on_use = minetest.item_eat(5, "ethereal:bowl"),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:mushroom_soup",
|
||||
recipe = {
|
||||
{"flowers:mushroom_brown"},
|
||||
{"flowers:mushroom_brown"},
|
||||
{"ethereal:bowl"},
|
||||
}
|
||||
})
|
||||
|
||||
-- 4x red mushrooms make mushroom block
|
||||
minetest.register_craft({
|
||||
output = "ethereal:mushroom",
|
||||
recipe = {
|
||||
{"flowers:mushroom_red", "flowers:mushroom_red"},
|
||||
{"flowers:mushroom_red", "flowers:mushroom_red"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,103 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- wild onion
|
||||
minetest.register_craftitem("ethereal:wild_onion_plant", {
|
||||
description = S("Wild Onion"),
|
||||
inventory_image = "wild_onion.png",
|
||||
wield_image = "wild_onion.png",
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:wild_onion_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(2),
|
||||
})
|
||||
|
||||
-- Define Onion growth stages
|
||||
local crop_def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"ethereal_wild_onion_1.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
growing = 1, not_in_creative_inventory = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
}
|
||||
|
||||
--stage 1
|
||||
minetest.register_node("ethereal:onion_1", table.copy(crop_def))
|
||||
|
||||
--stage 2
|
||||
crop_def.tiles = {"ethereal_wild_onion_2.png"}
|
||||
minetest.register_node("ethereal:onion_2", table.copy(crop_def))
|
||||
|
||||
--stage 3
|
||||
crop_def.tiles = {"ethereal_wild_onion_3.png"}
|
||||
minetest.register_node("ethereal:onion_3", table.copy(crop_def))
|
||||
|
||||
--stage 4
|
||||
crop_def.tiles = {"ethereal_wild_onion_4.png"}
|
||||
crop_def.drop = {
|
||||
items = {
|
||||
{items = {"ethereal:wild_onion_plant"}, rarity = 1},
|
||||
{items = {"ethereal:wild_onion_plant 2"}, rarity = 3},
|
||||
}
|
||||
}
|
||||
minetest.register_node("ethereal:onion_4", table.copy(crop_def))
|
||||
|
||||
--stage 5
|
||||
crop_def.tiles = {"ethereal_wild_onion_5.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
items = {
|
||||
{items = {"ethereal:wild_onion_plant 2"}, rarity = 1},
|
||||
{items = {"ethereal:wild_onion_plant 3"}, rarity = 2},
|
||||
}
|
||||
}
|
||||
minetest.register_node("ethereal:onion_5", table.copy(crop_def))
|
||||
|
||||
-- growing routine if farming redo isn't present
|
||||
if not farming or not farming.mod or farming.mod ~= "redo" then
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Ethereal grow onion",
|
||||
nodenames = {"ethereal:onion_1", "ethereal:onion_2", "ethereal:onion_3", "ethereal:onion_4"},
|
||||
neighbors = {"farming:soil_wet"},
|
||||
interval = 9,
|
||||
chance = 20,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
|
||||
-- are we on wet soil?
|
||||
pos.y = pos.y - 1
|
||||
if minetest.get_item_group(minetest.get_node(pos).name, "soil") < 3 then
|
||||
return
|
||||
end
|
||||
pos.y = pos.y + 1
|
||||
|
||||
-- do we have enough light?
|
||||
local light = minetest.get_node_light(pos)
|
||||
|
||||
if not light
|
||||
or light < 13 then
|
||||
return
|
||||
end
|
||||
|
||||
-- grow to next stage
|
||||
local num = node.name:split("_")[2]
|
||||
|
||||
node.name = "ethereal:onion_" .. tonumber(num + 1)
|
||||
|
||||
minetest.swap_node(pos, node)
|
||||
end
|
||||
})
|
||||
|
||||
end -- END IF
|
|
@ -0,0 +1,84 @@
|
|||
|
||||
-- Baked Clay
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "blob",
|
||||
ore = "bakedclay:red",
|
||||
wherein = {"bakedclay:orange"},
|
||||
clust_scarcity = 4 * 4 * 4,
|
||||
clust_num_ores = 8,
|
||||
clust_size = 6,
|
||||
y_min = -10,
|
||||
y_max = 71,
|
||||
noise_params = {
|
||||
offset = 0.35,
|
||||
scale = 0.2,
|
||||
spread = {x = 5, y = 5, z = 5},
|
||||
seed = -316,
|
||||
octaves = 1,
|
||||
persist = 0.5
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "blob",
|
||||
ore = "bakedclay:grey",
|
||||
wherein = {"bakedclay:orange"},
|
||||
clust_scarcity = 4 * 4 * 4,
|
||||
clust_num_ores = 8,
|
||||
clust_size = 6,
|
||||
y_min = -10,
|
||||
y_max = 71,
|
||||
noise_params = {
|
||||
offset = 0.35,
|
||||
scale = 0.2,
|
||||
spread = {x = 5, y = 5, z = 5},
|
||||
seed = -613,
|
||||
octaves = 1,
|
||||
persist = 0.5
|
||||
},
|
||||
})
|
||||
|
||||
local add_ore = function(a, b, c, d, e, f, g)
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = a,
|
||||
wherein = b,
|
||||
clust_scarcity = c,
|
||||
clust_num_ores = d,
|
||||
clust_size = e,
|
||||
y_min = f,
|
||||
y_max = g,
|
||||
})
|
||||
end
|
||||
|
||||
-- Coal
|
||||
|
||||
add_ore("default:stone_with_coal", "default:desert_stone", 24*24*24, 27, 6, -31000, -16)
|
||||
|
||||
-- Iron
|
||||
|
||||
add_ore("default:stone_with_iron", "default:desert_stone", 9*9*9, 5, 3, -63, -16)
|
||||
add_ore("default:stone_with_iron", "default:desert_stone", 24*24*24, 27, 6, -31000, -64)
|
||||
|
||||
--Mese
|
||||
|
||||
add_ore("default:stone_with_mese", "default:desert_stone", 14*14*14, 5, 3, -31000, -256)
|
||||
|
||||
-- Gold
|
||||
|
||||
add_ore("default:stone_with_gold", "default:desert_stone", 15*15*15, 3, 2, -255, -64)
|
||||
add_ore("default:stone_with_gold", "default:desert_stone", 13*13*13, 5, 3, -31000, -256)
|
||||
|
||||
-- Diamond
|
||||
|
||||
add_ore("default:stone_with_diamond", "default:desert_stone", 17*17*17, 4, 3, -255, -128)
|
||||
add_ore("default:stone_with_diamond", "default:desert_stone", 15*15*15, 4, 3, -31000, -256)
|
||||
|
||||
-- Copper
|
||||
|
||||
add_ore("default:stone_with_copper", "default:desert_stone", 9*9*9, 5, 3, -31000, -64)
|
||||
|
||||
-- Coral Sand
|
||||
add_ore("ethereal:sandy", "default:sand", 10*10*10, 24, 4, -100, -10)
|
|
@ -0,0 +1,290 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- Fire Flower
|
||||
minetest.register_node("ethereal:fire_flower", {
|
||||
description = S("Fire Flower"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "ethereal_fire_flower.png" },
|
||||
inventory_image = "ethereal_fire_flower.png",
|
||||
wield_image = "ethereal_fire_flower.png",
|
||||
paramtype = "light",
|
||||
light_source = 5,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
damage_per_second = 2,
|
||||
groups = {snappy = 1, oddly_breakable_by_hand = 3, igniter = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
|
||||
on_punch = function(pos, node, puncher)
|
||||
|
||||
puncher:punch(puncher, 1.0, {
|
||||
full_punch_interval = 1.0,
|
||||
damage_groups = {fleshy = 2}
|
||||
}, nil)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:fire_flower",
|
||||
burntime = 20,
|
||||
})
|
||||
|
||||
-- Fire Dust
|
||||
minetest.register_craftitem("ethereal:fire_dust", {
|
||||
description = S("Fire Dust"),
|
||||
inventory_image = "fire_dust.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:fire_dust 2",
|
||||
recipe = {
|
||||
{'ethereal:fire_flower'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:fire_dust",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
-- vines
|
||||
minetest.register_node("ethereal:vine", {
|
||||
description = S("Vine"),
|
||||
drawtype = "signlike",
|
||||
tiles = {"vine.png"},
|
||||
inventory_image = "vine.png",
|
||||
wield_image = "vine.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
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:vine 2",
|
||||
recipe = {
|
||||
{"group:leaves", "group:leaves"},
|
||||
{"group:leaves", "group:leaves"},
|
||||
{"group:leaves", "group:leaves"},
|
||||
}
|
||||
})
|
||||
|
||||
-- light strings (glowing vine)
|
||||
minetest.register_node("ethereal:lightstring", {
|
||||
description = S("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 = S("Fern"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"fern.png"},
|
||||
inventory_image = "fern.png",
|
||||
wield_image = "fern.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
waving = 1,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:fern_tubers"}, rarity = 6},
|
||||
{items = {"ethereal:fern"}}
|
||||
}
|
||||
},
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
})
|
||||
|
||||
-- Boston Ferns sometimes drop edible Tubers (heals 1/2 heart when eaten)
|
||||
minetest.register_craftitem("ethereal:fern_tubers", {
|
||||
description = S("Fern Tubers"),
|
||||
inventory_image = "fern_tubers.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
})
|
||||
|
||||
-- Red Shrub (not flammable)
|
||||
minetest.register_node("ethereal:dry_shrub", {
|
||||
description = S("Fiery Dry Shrub"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"ethereal_dry_shrub.png"},
|
||||
inventory_image = "ethereal_dry_shrub.png",
|
||||
wield_image = "ethereal_dry_shrub.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
waving = 1,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
})
|
||||
|
||||
-- Grey Shrub (not Flammable - too cold to burn)
|
||||
minetest.register_node("ethereal:snowygrass", {
|
||||
description = S("Snowy Grass"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 0.9,
|
||||
tiles = {"ethereal_snowygrass.png"},
|
||||
inventory_image = "ethereal_snowygrass.png",
|
||||
wield_image = "ethereal_snowygrass.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
waving = 1,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
})
|
||||
|
||||
-- Crystal Shrub (not Flammable - too cold to burn)
|
||||
minetest.register_node("ethereal:crystalgrass", {
|
||||
description = S("Crystal Grass"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 0.9,
|
||||
tiles = {"ethereal_crystalgrass.png"},
|
||||
inventory_image = "ethereal_crystalgrass.png",
|
||||
wield_image = "ethereal_crystalgrass.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
waving = 1,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
})
|
||||
|
||||
-- Define Moss Types (Has grass textures on all sides)
|
||||
function ethereal.add_moss(typ, descr, texture, receipe_item)
|
||||
|
||||
minetest.register_node("ethereal:" .. typ .. "_moss", {
|
||||
description = S(descr .. " Moss"),
|
||||
tiles = {texture},
|
||||
groups = {crumbly = 3},
|
||||
sounds = default.node_sound_dirt_defaults()
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:"..typ.."_moss",
|
||||
recipe = {{"default:dirt", receipe_item }}
|
||||
})
|
||||
end
|
||||
|
||||
ethereal.add_moss( "crystal", "Crystal", "ethereal_grass_crystal_top.png", "ethereal:frost_leaves")
|
||||
ethereal.add_moss( "mushroom", "Mushroom", "ethereal_grass_mushroom_top.png", "ethereal:mushroom")
|
||||
ethereal.add_moss( "fiery", "Fiery", "ethereal_grass_fiery_top.png", "ethereal:dry_shrub")
|
||||
ethereal.add_moss( "gray", "Gray", "ethereal_grass_gray_top.png", "ethereal:snowygrass")
|
||||
ethereal.add_moss( "green", "Green", "default_grass.png", "default:jungleleaves")
|
||||
|
||||
-- Illuminated Cave Shrooms (Red, Green and Blue)
|
||||
minetest.register_node("ethereal:illumishroom", {
|
||||
description = S("Red Illumishroom"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "illumishroom.png" },
|
||||
inventory_image = "illumishroom.png",
|
||||
wield_image = "illumishroom.png",
|
||||
paramtype = "light",
|
||||
light_source = 5,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("ethereal:illumishroom2", {
|
||||
description = S("Green Illumishroom"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "illumishroom2.png" },
|
||||
inventory_image = "illumishroom2.png",
|
||||
wield_image = "illumishroom2.png",
|
||||
paramtype = "light",
|
||||
light_source = 5,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("ethereal:illumishroom3", {
|
||||
description = S("Cyan Illumishroom"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "illumishroom3.png" },
|
||||
inventory_image = "illumishroom3.png",
|
||||
wield_image = "illumishroom3.png",
|
||||
paramtype = "light",
|
||||
light_source = 5,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
|
@ -0,0 +1,192 @@
|
|||
|
||||
--= Register Biome Decoration Using Plants Mega Pack Lite
|
||||
|
||||
--= Desert Biome
|
||||
|
||||
-- Cactus
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:desert_sand", "default:sandstone"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.005,
|
||||
biomes = {"desert", "sandstone"},
|
||||
decoration = {
|
||||
"xanadu:cactus_echinocereus", "xanadu:cactus_matucana",
|
||||
"xanadu:cactus_baseball", "xanadu:cactus_golden"
|
||||
},
|
||||
})
|
||||
|
||||
-- Desert Plants
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:desert_sand", "default:sandstone", "default:sand"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"desert", "sandstone"},
|
||||
decoration = {
|
||||
"xanadu:desert_kangaroo", "xanadu:desert_brittle",
|
||||
"xanadu:desert_ocotillo", "xanadu:desert_whitesage"
|
||||
},
|
||||
})
|
||||
|
||||
--= Prairie Biome
|
||||
|
||||
-- Grass
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"ethereal:prairie_dirt", "ethereal:green_dirt"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.005,
|
||||
biomes = {"prairie", "grassy", "grassytwo"},
|
||||
decoration = {
|
||||
"xanadu:grass_prairie", "xanadu:grass_cord",
|
||||
"xanadu:grass_wheatgrass", "xanadu:desert_whitesage"
|
||||
},
|
||||
})
|
||||
|
||||
-- Flowers
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {
|
||||
"ethereal:prairie_grass", "ethereal:green_dirt",
|
||||
"ethereal:grove_dirt", "ethereal:bamboo_dirt"
|
||||
},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.005,
|
||||
biomes = {"prairie", "grassy", "grassytwo", "bamboo"},
|
||||
decoration = {
|
||||
"xanadu:flower_jacobsladder", "xanadu:flower_thistle",
|
||||
"xanadu:flower_wildcarrot"
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {
|
||||
"ethereal:prairie_grass", "ethereal:green_dirt",
|
||||
"ethereal:grove_dirt"
|
||||
},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.005,
|
||||
biomes = {"prairie", "grassy", "grassytwo", "grove"},
|
||||
decoration = {
|
||||
"xanadu:flower_delphinium", "xanadu:flower_celosia",
|
||||
"xanadu:flower_daisy", "xanadu:flower_bluerose"
|
||||
},
|
||||
})
|
||||
|
||||
-- Shrubs
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {
|
||||
"ethereal:prairie_grass", "ethereal:green_dirt",
|
||||
"ethereal:grove_dirt", "ethereal:jungle_grass",
|
||||
"ethereal:gray_dirt"
|
||||
},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.005,
|
||||
biomes = {
|
||||
"prairie", "grassy", "grassytwo", "grove", "junglee",
|
||||
"grayness", "jumble"
|
||||
},
|
||||
decoration = {"xanadu:shrub_kerria", "xanadu:shrub_spicebush"},
|
||||
})
|
||||
|
||||
--= Jungle Biome
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"ethereal:jungle_dirt", "ethereal:green_dirt"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.007,
|
||||
biomes = {"junglee", "jumble"},
|
||||
decoration = {
|
||||
"xanadu:rainforest_guzmania", "xanadu:rainforest_devil",
|
||||
"xanadu:rainforest_lazarus", "xanadu:rainforest_lollipop",
|
||||
"xanadu:mushroom_woolly"
|
||||
},
|
||||
})
|
||||
|
||||
--= Cold Biomes
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {
|
||||
"default:dirt_with_snow", "ethereal:cold_dirt",
|
||||
"ethereal:gray_dirt"
|
||||
},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.005,
|
||||
biomes = {"snowy", "alpine", "grayness"},
|
||||
decoration = {
|
||||
"xanadu:mountain_edelweiss", "xanadu:mountain_armeria",
|
||||
"xanadu:mountain_bellflower", "xanadu:mountain_willowherb",
|
||||
"xanadu:mountain_bistort"
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
--= Mushroom Biome
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"ethereal:mushroom_dirt"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.005,
|
||||
biomes = {"mushroom"},
|
||||
decoration = {
|
||||
"xanadu:mushroom_powderpuff", "xanadu:mushroom_chanterelle",
|
||||
"xanadu:mushroom_parasol"
|
||||
},
|
||||
})
|
||||
|
||||
--= Lakeside
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:sand", "default:green_dirt"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.015,
|
||||
biomes = {"sandclay", "grassy_ocean", "grassy", "grassytwo", "jumble"},
|
||||
decoration = {
|
||||
"xanadu:wetlands_cattails", "xanadu:wetlands_pickerel",
|
||||
"xanadu:wetlands_mannagrass", "xanadu:wetlands_turtle"
|
||||
},
|
||||
spawn_by = "default:water_source",
|
||||
num_spawn_by = 1,
|
||||
})
|
||||
|
||||
--= Harsh Biomes
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {
|
||||
"ethereal:mushroom_dirt", "ethereal:green_dirt",
|
||||
"ethereal:gray_dirt", "ethereal:cold_dirt",
|
||||
"ethereal:dirt_with_snow", "ethereal:jungle_dirt",
|
||||
"ethereal:prairie_dirt", "ethereal:grove_dirt",
|
||||
"ethereal:dry_dirt", "ethereal:fiery_dirt", "default:sand",
|
||||
"default:desert_sand", "xanadu:red", "ethereal:bamboo_dirt"
|
||||
},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {
|
||||
"mushroom", "prairie", "grayness", "plains", "desert",
|
||||
"junglee", "grassy", "grassytwo", "jumble", "snowy", "alpine",
|
||||
"fiery", "mesa", "bamboo"
|
||||
},
|
||||
decoration = {"xanadu:spooky_thornbush", "xanadu:spooky_baneberry"},
|
||||
})
|
||||
|
||||
--= Poppy's growing in Clearing Biome in memory of RealBadAngel
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {
|
||||
"ethereal:green_dirt",
|
||||
},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"clearing"},
|
||||
decoration = {"xanadu:poppy"},
|
||||
})
|
|
@ -0,0 +1,227 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- Bamboo Sprout
|
||||
minetest.register_node("ethereal:bamboo_sprout", {
|
||||
description = S("Bamboo Sprout"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"bamboo_sprout.png"},
|
||||
inventory_image = "bamboo_sprout.png",
|
||||
wield_image = "bamboo_sprout.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
groups = {
|
||||
snappy = 3, attached_node = 1, flammable = 2,
|
||||
dig_immediate = 3, sapling = 1
|
||||
},
|
||||
sounds = default.node_sound_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
on_use = minetest.item_eat(-2),
|
||||
grown_height = 11,
|
||||
})
|
||||
|
||||
-- Register Saplings
|
||||
ethereal.register_sapling = function(name, desc, texture, height)
|
||||
|
||||
minetest.register_node(name .. "_sapling", {
|
||||
description = S(desc .. " Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {texture .. ".png"},
|
||||
inventory_image = texture .. ".png",
|
||||
wield_image = texture .. ".png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
groups = {
|
||||
snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
ethereal_sapling = 1, sapling = 1, attached_node = 1
|
||||
},
|
||||
sounds = default.node_sound_defaults(),
|
||||
grown_height = height,
|
||||
})
|
||||
end
|
||||
|
||||
ethereal.register_sapling("ethereal:willow", "Willow", "willow_sapling", 14)
|
||||
ethereal.register_sapling("ethereal:yellow_tree", "Healing", "yellow_tree_sapling", 19)
|
||||
ethereal.register_sapling("ethereal:big_tree", "Big", "ethereal_big_tree_sapling", 7)
|
||||
ethereal.register_sapling("ethereal:banana_tree", "Banana", "banana_tree_sapling", 8)
|
||||
ethereal.register_sapling("ethereal:frost_tree", "Frost", "ethereal_frost_tree_sapling", 19)
|
||||
ethereal.register_sapling("ethereal:mushroom", "Mushroom", "ethereal_mushroom_sapling", 11)
|
||||
ethereal.register_sapling("ethereal:palm", "Palm", "moretrees_palm_sapling", 9)
|
||||
ethereal.register_sapling("ethereal:redwood", "Redwood", "redwood_sapling", 31)
|
||||
ethereal.register_sapling("ethereal:orange_tree", "Orange", "orange_tree_sapling", 6)
|
||||
ethereal.register_sapling("ethereal:birch", "Birch", "moretrees_birch_sapling", 7)
|
||||
|
||||
ethereal.add_tree = function (pos, ofx, ofy, ofz, schem)
|
||||
-- check for schematic
|
||||
if not schem then
|
||||
print (S("Schematic not found"))
|
||||
return
|
||||
end
|
||||
-- remove sapling and place schematic
|
||||
minetest.swap_node(pos, {name = "air"})
|
||||
minetest.place_schematic(
|
||||
{x = pos.x - ofx, y = pos.y - ofy, z = pos.z - ofz},
|
||||
schem, 0, nil, false)
|
||||
end
|
||||
|
||||
local path = minetest.get_modpath("ethereal").."/schematics/"
|
||||
|
||||
-- grow tree functions
|
||||
function ethereal.grow_yellow_tree(pos)
|
||||
ethereal.add_tree(pos, 4, 0, 4, path .. "yellowtree.mts")
|
||||
end
|
||||
|
||||
function ethereal.grow_big_tree(pos)
|
||||
ethereal.add_tree(pos, 4, 0, 4, path .. "bigtree.mts")
|
||||
end
|
||||
|
||||
function ethereal.grow_banana_tree(pos)
|
||||
ethereal.add_tree(pos, 3, 0, 3, ethereal.bananatree)
|
||||
end
|
||||
|
||||
function ethereal.grow_frost_tree(pos)
|
||||
ethereal.add_tree(pos, 4, 0, 4, path .. "frosttrees.mts")
|
||||
end
|
||||
|
||||
function ethereal.grow_mushroom_tree(pos)
|
||||
ethereal.add_tree(pos, 4, 0, 4, path .. "mushroomone.mts")
|
||||
end
|
||||
|
||||
function ethereal.grow_palm_tree(pos)
|
||||
ethereal.add_tree(pos, 4, 0, 4, path .. "palmtree.mts")
|
||||
end
|
||||
|
||||
function ethereal.grow_willow_tree(pos)
|
||||
ethereal.add_tree(pos, 5, 0, 5, path .. "willow.mts")
|
||||
end
|
||||
|
||||
function ethereal.grow_redwood_tree(pos)
|
||||
if math.random(1, 2) == 1 then
|
||||
ethereal.add_tree(pos, 9, 3, 9, path .. "redwood.mts") -- shinji
|
||||
else
|
||||
ethereal.add_tree(pos, 8, 6, 8, path .. "redwood_tree.mts") -- iska
|
||||
end
|
||||
end
|
||||
|
||||
function ethereal.grow_orange_tree(pos)
|
||||
ethereal.add_tree(pos, 1, 0, 1, ethereal.orangetree)
|
||||
end
|
||||
|
||||
function ethereal.grow_bamboo_tree(pos)
|
||||
ethereal.add_tree(pos, 1, 0, 1, ethereal.bambootree)
|
||||
end
|
||||
|
||||
function ethereal.grow_birch_tree(pos)
|
||||
ethereal.add_tree(pos, 2, 0, 2, ethereal.birchtree)
|
||||
end
|
||||
|
||||
-- check if sapling has enough height room to grow
|
||||
local function enough_height(pos, height)
|
||||
|
||||
local nod = minetest.line_of_sight(
|
||||
{x = pos.x, y = pos.y + 1, z = pos.z},
|
||||
{x = pos.x, y = pos.y + height, z = pos.z})
|
||||
|
||||
if not nod then
|
||||
return false -- obstructed
|
||||
else
|
||||
return true -- can grow
|
||||
end
|
||||
end
|
||||
|
||||
ethereal.grow_sapling = function (pos, node)
|
||||
|
||||
local under = minetest.get_node({
|
||||
x = pos.x,
|
||||
y = pos.y - 1,
|
||||
z = pos.z
|
||||
}).name
|
||||
|
||||
if not minetest.registered_nodes[node.name] then
|
||||
return
|
||||
end
|
||||
|
||||
local height = minetest.registered_nodes[node.name].grown_height
|
||||
|
||||
-- do we have enough height to grow sapling into tree?
|
||||
if not height or not enough_height(pos, height) then
|
||||
return
|
||||
end
|
||||
|
||||
-- Check if Ethereal Sapling is growing on correct substrate
|
||||
if node.name == "ethereal:yellow_tree_sapling"
|
||||
and under == "default:dirt_with_snow" then
|
||||
ethereal.grow_yellow_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:big_tree_sapling"
|
||||
and under == "ethereal:green_dirt" then
|
||||
ethereal.grow_big_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:banana_tree_sapling"
|
||||
and under == "ethereal:grove_dirt" then
|
||||
ethereal.grow_banana_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:frost_tree_sapling"
|
||||
and under == "ethereal:crystal_dirt" then
|
||||
ethereal.grow_frost_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:mushroom_sapling"
|
||||
and under == "ethereal:mushroom_dirt" then
|
||||
ethereal.grow_mushroom_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:palm_sapling"
|
||||
and under == "default:sand" then
|
||||
ethereal.grow_palm_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:willow_sapling"
|
||||
and under == "ethereal:gray_dirt" then
|
||||
ethereal.grow_willow_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:redwood_sapling"
|
||||
and under == "bakedclay:red" then
|
||||
ethereal.grow_redwood_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:orange_tree_sapling"
|
||||
and under == "ethereal:prairie_dirt" then
|
||||
ethereal.grow_orange_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:bamboo_sprout"
|
||||
and under == "ethereal:bamboo_dirt" then
|
||||
ethereal.grow_bamboo_tree(pos)
|
||||
|
||||
elseif node.name == "ethereal:birch_sapling"
|
||||
and under == "ethereal:green_dirt" then
|
||||
ethereal.grow_birch_tree(pos)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- Grow saplings
|
||||
minetest.register_abm({
|
||||
label = "Ethereal grow sapling",
|
||||
nodenames = {"group:ethereal_sapling"},
|
||||
interval = 10,
|
||||
chance = 50,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
|
||||
local light_level = minetest.get_node_light(pos)
|
||||
|
||||
if not light_level or light_level < 13 then
|
||||
return
|
||||
end
|
||||
|
||||
ethereal.grow_sapling(pos, node)
|
||||
end,
|
||||
})
|
|
@ -0,0 +1,82 @@
|
|||
|
||||
-- bamboo stalk with leaves
|
||||
|
||||
local ai = {name = "air", param1 = 000}
|
||||
local bt = {name = "ethereal:bamboo", param1 = 255}
|
||||
local lp = {name = "ethereal:bamboo_leaves", param1 = 255}
|
||||
local lr = {name = "ethereal:bamboo_leaves", param1 = 100}
|
||||
|
||||
ethereal.bambootree = {
|
||||
|
||||
size = {x = 3, y = 18, z = 3},
|
||||
|
||||
data = {
|
||||
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
lr, lp, lr,
|
||||
ai, lp, ai,
|
||||
ai, ai, ai,
|
||||
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
lr, lp, lr,
|
||||
ai, lp, ai,
|
||||
ai, lr, ai,
|
||||
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
lr, lp, lr,
|
||||
ai, lp, ai,
|
||||
ai, ai, ai,
|
||||
|
||||
},
|
||||
|
||||
yslice_prob = {
|
||||
{ypos = 3, prob = 127},
|
||||
},
|
||||
}
|
||||
|
||||
minetest.override_item("default:papyrus", {
|
||||
walkable = true,
|
||||
sunlight_propagates = true
|
||||
})
|
|
@ -0,0 +1,85 @@
|
|||
|
||||
-- banana tree
|
||||
|
||||
local ai = {name = "air", param1 = 000}
|
||||
local tr = {name = "ethereal:banana_trunk", param1 = 255}
|
||||
local lp = {name = "ethereal:bananaleaves", param1 = 255}
|
||||
local lr = {name = "ethereal:bananaleaves", param1 = 180}
|
||||
local bp = {name = "ethereal:banana", param1 = 255}
|
||||
local br = {name = "ethereal:banana", param1 = 070}
|
||||
|
||||
ethereal.bananatree = {
|
||||
|
||||
size = {x = 7, y = 8, z = 7},
|
||||
|
||||
data = {
|
||||
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, lr, ai, ai, ai,
|
||||
ai, ai, ai, lp, ai, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, br, ai, ai, ai,
|
||||
ai, ai, ai, bp, ai, ai, ai,
|
||||
ai, ai, ai, lp, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, br, tr, br, ai, ai,
|
||||
ai, ai, bp, lp, bp, ai, ai,
|
||||
ai, lp, lp, lp, lp, lp, ai,
|
||||
lp, lr, ai, lp, ai, lr, lp,
|
||||
|
||||
ai, ai, ai, tr, ai, ai, ai,
|
||||
ai, ai, ai, tr, ai, ai, ai,
|
||||
ai, ai, ai, tr, ai, ai, ai,
|
||||
ai, ai, ai, tr, ai, ai, ai,
|
||||
ai, ai, ai, br, ai, ai, ai,
|
||||
ai, ai, ai, bp, ai, ai, ai,
|
||||
ai, ai, ai, lp, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, lp, ai, ai, ai,
|
||||
ai, ai, ai, lr, ai, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, lp, ai, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai, ai, ai,
|
||||
|
||||
},
|
||||
|
||||
yslice_prob = {
|
||||
{ypos = 1, prob = 127},
|
||||
},
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
|
||||
-- birch tree
|
||||
|
||||
local ai = {name = "air", param1 = 000}
|
||||
local tr = {name = "ethereal:birch_trunk", param1 = 255}
|
||||
local lp = {name = "ethereal:birch_leaves", param1 = 255}
|
||||
local lr = {name = "ethereal:birch_leaves", param1 = 150}
|
||||
|
||||
ethereal.birchtree = {
|
||||
|
||||
size = {x = 5, y = 7, z = 5},
|
||||
|
||||
data = {
|
||||
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
lr, lp, lp, lp, lr,
|
||||
lr, lp, lp, lp, lr,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
lp, lp, lp, lp, lp,
|
||||
lp, lp, lp, lp, lp,
|
||||
ai, lr, lp, lr, ai,
|
||||
ai, ai, lp, ai, ai,
|
||||
|
||||
ai, ai, tr, ai, ai,
|
||||
ai, ai, tr, ai, ai,
|
||||
ai, ai, tr, ai, ai,
|
||||
lp, lp, tr, lp, lp,
|
||||
lp, lp, tr, lp, lp,
|
||||
ai, lp, tr, lp, ai,
|
||||
ai, lp, lp, lp, ai,
|
||||
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
lp, lp, lp, lp, lp,
|
||||
lp, lp, lp, lp, lp,
|
||||
ai, lr, lp, lr, ai,
|
||||
ai, ai, lp, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
lr, lp, lp, lp, lr,
|
||||
lr, lp, lp, lp, lr,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
|
||||
},
|
||||
|
||||
yslice_prob = {
|
||||
{ypos = 1, prob = 127}
|
||||
},
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
-- bush
|
||||
|
||||
local ai = {name = "air", param1 = 000}
|
||||
local bp = {name = "ethereal:bush", param1 = 255}
|
||||
local br = {name = "ethereal:bush", param1 = 100}
|
||||
|
||||
ethereal.bush = {
|
||||
|
||||
size = {x = 5, y = 3, z = 5},
|
||||
|
||||
data = {
|
||||
|
||||
br, bp, bp, bp, br,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
|
||||
bp, bp, bp, bp, bp,
|
||||
ai, br, bp, br, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
|
||||
bp, bp, bp, bp, bp,
|
||||
ai, bp, bp, bp, ai,
|
||||
ai, ai, br, ai, ai,
|
||||
|
||||
bp, bp, bp, bp, bp,
|
||||
ai, br, bp, br, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
|
||||
br, bp, bp, bp, br,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
|
||||
},
|
||||
|
||||
yslice_prob = {
|
||||
{ypos = 1, prob = 127},
|
||||
},
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
|
||||
-- orange tree
|
||||
|
||||
local ai = {name = "air", param1 = 000}
|
||||
local lp = {name = "ethereal:orange_leaves", param1 = 255}
|
||||
local lr = {name = "ethereal:orange_leaves", param1 = 200}
|
||||
local tr = {name = "default:tree", param1 = 255}
|
||||
local of = {name = "ethereal:orange", param1 = 100}
|
||||
|
||||
ethereal.orangetree = {
|
||||
|
||||
size = {x = 3, y = 6, z = 3},
|
||||
|
||||
data = {
|
||||
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
lr, lr, of,
|
||||
lp, lp, lp,
|
||||
lr, of, lr,
|
||||
|
||||
ai, tr, ai,
|
||||
ai, tr, ai,
|
||||
ai, tr, ai,
|
||||
lr, tr, lr,
|
||||
lp, tr, lp,
|
||||
lr, lp, lr,
|
||||
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
of, lr, lr,
|
||||
lp, lp, lp,
|
||||
lr, lr, lr,
|
||||
|
||||
},
|
||||
|
||||
yslice_prob = {
|
||||
{ypos = 1, prob = 127},
|
||||
},
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
-- waterlily
|
||||
|
||||
ethereal.waterlily = {
|
||||
size = {x = 1, y = 3, z = 1},
|
||||
data = {
|
||||
|
||||
{name = "default:sand", param1 = 255},
|
||||
{name = "default:water_source", param1 = 255},
|
||||
{name = "flowers:waterlily", param1 = 255},
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
minetest.override_item("flowers:waterlily", {
|
||||
walkable = true,
|
||||
})
|
After Width: | Height: | Size: 43 KiB |
|
@ -0,0 +1,187 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- Seaweed
|
||||
minetest.register_node("ethereal:seaweed", {
|
||||
description = S("Seaweed"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"seaweed.png"},
|
||||
inventory_image = "seaweed.png",
|
||||
wield_image = "seaweed.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
drowning = 1,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
||||
},
|
||||
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
|
||||
groups = {snappy = 3},
|
||||
on_use = minetest.item_eat(1),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:dark_green 3",
|
||||
recipe = {"ethereal:seaweed",},
|
||||
})
|
||||
|
||||
-- Blue Coral
|
||||
minetest.register_node("ethereal:coral2", {
|
||||
description = S("Blue Coral"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"coral2.png"},
|
||||
inventory_image = "coral2.png",
|
||||
wield_image = "coral2.png",
|
||||
paramtype = "light",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
light_source = 3,
|
||||
groups = {snappy = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:cyan 3",
|
||||
recipe = {"ethereal:coral2",},
|
||||
})
|
||||
|
||||
-- Orange Coral
|
||||
minetest.register_node("ethereal:coral3", {
|
||||
description = S("Orange Coral"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"coral3.png"},
|
||||
inventory_image = "coral3.png",
|
||||
wield_image = "coral3.png",
|
||||
paramtype = "light",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
light_source = 3,
|
||||
groups = {snappy = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:orange 3",
|
||||
recipe = {"ethereal:coral3",},
|
||||
})
|
||||
|
||||
-- Pink Coral
|
||||
minetest.register_node("ethereal:coral4", {
|
||||
description = S("Pink Coral"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"coral4.png"},
|
||||
inventory_image = "coral4.png",
|
||||
wield_image = "coral4.png",
|
||||
paramtype = "light",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
light_source = 3,
|
||||
groups = {snappy = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:pink 3",
|
||||
recipe = {"ethereal:coral4",},
|
||||
})
|
||||
|
||||
-- Green Coral
|
||||
minetest.register_node("ethereal:coral5", {
|
||||
description = S("Green Coral"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"coral5.png"},
|
||||
inventory_image = "coral5.png",
|
||||
wield_image = "coral5.png",
|
||||
paramtype = "light",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
light_source = 3,
|
||||
groups = {snappy = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:green 3",
|
||||
recipe = {"ethereal:coral5",},
|
||||
})
|
||||
|
||||
-- Undersea Sand
|
||||
minetest.register_node("ethereal:sandy", {
|
||||
description = S("Sandy"),
|
||||
tiles = {"default_sand.png"},
|
||||
is_ground_content = true,
|
||||
groups = {
|
||||
crumbly = 3, falling_node = 1, sand = 1, not_in_creative_inventory = 1
|
||||
},
|
||||
drop = "default:sand",
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- randomly generate coral or seaweed and have seaweed grow up to 14 high
|
||||
minetest.register_abm({
|
||||
label = "Grow coral/seaweed",
|
||||
nodenames = {"ethereal:sandy"},
|
||||
neighbors = {"group:water"},
|
||||
interval = 15,
|
||||
chance = 10,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
|
||||
local sel = math.random(1, 5)
|
||||
|
||||
pos.y = pos.y + 1
|
||||
|
||||
local nod = minetest.get_node(pos).name
|
||||
|
||||
if nod == "default:water_source"
|
||||
and sel > 1 then
|
||||
|
||||
if minetest.get_node(pos).name == "default:water_source" then
|
||||
|
||||
minetest.swap_node(pos, {name = "ethereal:coral" .. sel})
|
||||
end
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
if nod == "ethereal:seaweed"
|
||||
or sel == 1 then
|
||||
|
||||
local height = 0
|
||||
local high = 14
|
||||
|
||||
while height < high
|
||||
and minetest.get_node(pos).name == "ethereal:seaweed" do
|
||||
height = height + 1
|
||||
pos.y = pos.y + 1
|
||||
end
|
||||
|
||||
if pos.y < 1
|
||||
and height < high
|
||||
and minetest.get_node(pos).name == "default:water_source" then
|
||||
|
||||
minetest.swap_node(pos, {name = "ethereal:seaweed"})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end,
|
||||
})
|
|
@ -0,0 +1,316 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- Stairs Redo
|
||||
if stairs and stairs.mod and stairs.mod == "redo" then
|
||||
|
||||
stairs.register_all("crystal_block", "ethereal:crystal_block",
|
||||
{cracky = 1, level = 2},
|
||||
{"crystal_block.png"},
|
||||
S("Crystal Block Stair"),
|
||||
S("Crystal Block Slab"),
|
||||
default.node_sound_glass_defaults())
|
||||
|
||||
stairs.register_all("icebrick", "ethereal:icebrick",
|
||||
{crumbly = 3, melts = 1},
|
||||
{"brick_ice.png"},
|
||||
S("Ice Brick Stair"),
|
||||
S("Ice Brick Slab"),
|
||||
default.node_sound_glass_defaults())
|
||||
|
||||
stairs.register_all("snowbrick", "ethereal:snowbrick",
|
||||
{crumbly = 3, melts = 1},
|
||||
{"brick_snow.png"},
|
||||
S("Snow Brick Stair"),
|
||||
S("Snow Brick Slab"),
|
||||
default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_snow_footstep", gain = 0.25},
|
||||
dug = {name = "default_snow_footstep", gain = 0.75},
|
||||
}))
|
||||
|
||||
stairs.register_all("dry_dirt", "ethereal:dry_dirt",
|
||||
{crumbly = 3},
|
||||
{"ethereal_dry_dirt.png"},
|
||||
S("Dry Dirt Stair"),
|
||||
S("Dry Dirt Slab"),
|
||||
default.node_sound_dirt_defaults())
|
||||
|
||||
stairs.register_all("mushroom_trunk", "ethereal:mushroom_trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
{"mushroom_trunk.png"},
|
||||
S("Mushroom Trunk Stair"),
|
||||
S("Mushroom Trunk Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("mushroom", "ethereal:mushroom",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
{"mushroom_block.png"},
|
||||
S("Mushroom Top Stair"),
|
||||
S("Mushroom Top Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("frost_wood", "ethereal:frost_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
||||
{"frost_wood.png"},
|
||||
S("Frost Wood Stair"),
|
||||
S("Frost Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("yellow_wood", "ethereal:yellow_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
||||
{"yellow_wood.png"},
|
||||
S("Healing Wood Stair"),
|
||||
S("Healing Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("palm_wood", "ethereal:palm_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"moretrees_palm_wood.png"},
|
||||
S("Palm Wood Stair"),
|
||||
S("Palm Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("birch_wood", "ethereal:birch_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"moretrees_birch_wood.png"},
|
||||
S("Birch Wood Stair"),
|
||||
S("Birch Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("banana_wood", "ethereal:banana_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"banana_wood.png"},
|
||||
S("Banana Wood Stair"),
|
||||
S("Banana Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("willow_wood", "ethereal:willow_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"willow_wood.png"},
|
||||
S("Willow Wood Stair"),
|
||||
S("Willow Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("redwood_wood", "ethereal:redwood_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"redwood_wood.png"},
|
||||
S("Redwood stair"),
|
||||
S("Redwood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_all("bamboo_wood", "ethereal:bamboo_floor",
|
||||
{snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"bamboo_floor.png"},
|
||||
S("Bamboo stair"),
|
||||
S("Bamboo Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
-- Stairs Plus (in More Blocks)
|
||||
elseif minetest.global_exists("stairsplus") then
|
||||
|
||||
stairsplus:register_all("ethereal", "crystal_block", "ethereal:crystal_block", {
|
||||
description = S("Crystal block"),
|
||||
tiles = {"crystal_block.png"},
|
||||
groups = {cracky = 1, falling_node = 1, puts_out_fire = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "icebrick", "ethereal:icebrick", {
|
||||
description = S("Ice Brick"),
|
||||
tiles = {"brick_ice.png"},
|
||||
groups = {crumbly = 3, melts = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "snowbrick", "ethereal:snowbrick", {
|
||||
description = S("Snow Brick"),
|
||||
tiles = {"brick_snow.png"},
|
||||
groups = {crumbly = 3, melts = 1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_snow_footstep", gain = 0.25},
|
||||
dug = {name = "default_snow_footstep", gain = 0.75},
|
||||
})
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "dry_dirt", "ethereal:dry_dirt", {
|
||||
description = S("Dry Dirt"),
|
||||
tiles = {"ethereal_dry_dirt.png"},
|
||||
groups = {crumbly = 3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "mushroom_trunk", "ethereal:mushroom_trunk", {
|
||||
description = S("Mushroom Trunk"),
|
||||
tiles = {"mushroom_trunk.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "mushroom", "ethereal:mushroom", {
|
||||
description = S("Mushroom Top"),
|
||||
tiles = {"mushroom_block.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "frost_wood", "ethereal:frost_wood", {
|
||||
description = S("Frost Wood"),
|
||||
tiles = {"frost_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "yellow_wood", "ethereal:yellow_wood", {
|
||||
description = S("Healing Wood"),
|
||||
tiles = {"yellow_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "palm_wood", "ethereal:palm_wood", {
|
||||
description = S("Palm Wood"),
|
||||
tiles = {"moretrees_palm_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "birch_wood", "ethereal:birch_wood", {
|
||||
description = S("Birch Wood"),
|
||||
tiles = {"moretrees_birch_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "banana_wood", "ethereal:banana_wood", {
|
||||
description = S("Banana Wood"),
|
||||
tiles = {"banana_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "willow_wood", "ethereal:willow_wood", {
|
||||
description = S("Willow Wood"),
|
||||
tiles = {"willow_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "redwood_wood", "ethereal:redwood_wood", {
|
||||
description = S("Redwood"),
|
||||
tiles = {"redwood_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
stairsplus:register_all("ethereal", "bamboo_wood", "ethereal:bamboo_floor", {
|
||||
description = S("Bamboo"),
|
||||
tiles = {"bamboo_floor.png"},
|
||||
groups = {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- Default Stairs
|
||||
else
|
||||
|
||||
stairs.register_stair_and_slab("crystal_block", "ethereal:crystal_block",
|
||||
{cracky = 1, level = 2},
|
||||
{"crystal_block.png"},
|
||||
S("Crystal Block Stair"),
|
||||
S("Crystal Block Slab"),
|
||||
default.node_sound_glass_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("icebrick", "ethereal:icebrick",
|
||||
{crumbly = 3, melts = 1},
|
||||
{"brick_ice.png"},
|
||||
S("Ice Brick Stair"),
|
||||
S("Ice Brick Slab"),
|
||||
default.node_sound_glass_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("snowbrick", "ethereal:snowbrick",
|
||||
{crumbly = 3, melts = 1},
|
||||
{"brick_snow.png"},
|
||||
S("Snow Brick Stair"),
|
||||
S("Snow Brick Slab"),
|
||||
default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_snow_footstep", gain = 0.25},
|
||||
dug = {name = "default_snow_footstep", gain = 0.75},
|
||||
}))
|
||||
|
||||
stairs.register_stair_and_slab("dry_dirt", "ethereal:dry_dirt",
|
||||
{crumbly = 3},
|
||||
{"ethereal_dry_dirt.png"},
|
||||
S("Dry Dirt Stair"),
|
||||
S("Dry Dirt Slab"),
|
||||
default.node_sound_dirt_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("mushroom_trunk", "ethereal:mushroom_trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
{"mushroom_trunk.png"},
|
||||
S("Mushroom Trunk Stair"),
|
||||
S("Mushroom Trunk Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("mushroom", "ethereal:mushroom",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
{"mushroom_block.png"},
|
||||
S("Mushroom Top Stair"),
|
||||
S("Mushroom Top Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("frost_wood", "ethereal:frost_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
||||
{"frost_wood.png"},
|
||||
S("Frost Wood Stair"),
|
||||
S("Frost Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("yellow_wood", "ethereal:yellow_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
||||
{"yellow_wood.png"},
|
||||
S("Healing Wood Stair"),
|
||||
S("Healing Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("palm_wood", "ethereal:palm_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"moretrees_palm_wood.png"},
|
||||
S("Palm Wood Stair"),
|
||||
S("Palm Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("birch_wood", "ethereal:birch_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"moretrees_birch_wood.png"},
|
||||
"Birch Wood Stair",
|
||||
"Birch Wood Slab",
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("banana_wood", "ethereal:banana_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"banana_wood.png"},
|
||||
S("Banana Wood Stair"),
|
||||
S("Banana Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("willow_wood", "ethereal:willow_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"willow_wood.png"},
|
||||
S("Willow Wood Stair"),
|
||||
S("Willow Wood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("redwood_wood", "ethereal:redwood_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"redwood_wood.png"},
|
||||
S("Redwood stair"),
|
||||
S("Redwood Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("bamboo_wood", "ethereal:bamboo_floor",
|
||||
{snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
{"bamboo_floor.png"},
|
||||
S("Bamboo stair"),
|
||||
S("Bamboo Slab"),
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
end
|
|
@ -0,0 +1,126 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- Strawberry (can also be planted as seed)
|
||||
minetest.register_craftitem("ethereal:strawberry", {
|
||||
description = S("Strawberry"),
|
||||
inventory_image = "strawberry.png",
|
||||
wield_image = "strawberry.png",
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(1),
|
||||
})
|
||||
|
||||
-- Define Strawberry Bush growth stages
|
||||
local crop_def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"strawberry_1.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
waving = 1,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
},
|
||||
groups = {
|
||||
snappy = 3, flammable =2, plant = 1, attached_node = 1,
|
||||
not_in_creative_inventory = 1, growing = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
}
|
||||
|
||||
--stage 1
|
||||
minetest.register_node("ethereal:strawberry_1", table.copy(crop_def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"strawberry_2.png"}
|
||||
minetest.register_node("ethereal:strawberry_2", table.copy(crop_def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"strawberry_3.png"}
|
||||
minetest.register_node("ethereal:strawberry_3", table.copy(crop_def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"strawberry_4.png"}
|
||||
minetest.register_node("ethereal:strawberry_4", table.copy(crop_def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"strawberry_5.png"}
|
||||
minetest.register_node("ethereal:strawberry_5", table.copy(crop_def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"strawberry_6.png"}
|
||||
crop_def.drop = {
|
||||
items = {
|
||||
{items = {"ethereal:strawberry 1"},rarity = 2},
|
||||
{items = {"ethereal:strawberry 2"},rarity = 3},
|
||||
}
|
||||
}
|
||||
minetest.register_node("ethereal:strawberry_6", table.copy(crop_def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"strawberry_7.png"}
|
||||
crop_def.drop = {
|
||||
items = {
|
||||
{items = {"ethereal:strawberry 1"},rarity = 1},
|
||||
{items = {"ethereal:strawberry 2"},rarity = 3},
|
||||
}
|
||||
}
|
||||
minetest.register_node("ethereal:strawberry_7", table.copy(crop_def))
|
||||
|
||||
-- stage 8
|
||||
crop_def.tiles = {"strawberry_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
items = {
|
||||
{items = {"ethereal:strawberry 2"},rarity = 1},
|
||||
{items = {"ethereal:strawberry 3"},rarity = 3},
|
||||
}
|
||||
}
|
||||
minetest.register_node("ethereal:strawberry_8", table.copy(crop_def))
|
||||
|
||||
-- growing routine if farming redo isn't present
|
||||
if not farming or not farming.mod or farming.mod ~= "redo" then
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Ethereal grow strawberry",
|
||||
nodenames = {
|
||||
"ethereal:strawberry_1", "ethereal:strawberry_2", "ethereal:strawberry_3",
|
||||
"ethereal:strawberry_4", "ethereal:strawberry_5", "ethereal:strawberry_6",
|
||||
"ethereal:strawberry_7"
|
||||
},
|
||||
neighbors = {"farming:soil_wet"},
|
||||
interval = 9,
|
||||
chance = 20,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
|
||||
-- are we on wet soil?
|
||||
pos.y = pos.y - 1
|
||||
if minetest.get_item_group(minetest.get_node(pos).name, "soil") < 3 then
|
||||
return
|
||||
end
|
||||
pos.y = pos.y + 1
|
||||
|
||||
-- do we have enough light?
|
||||
local light = minetest.get_node_light(pos)
|
||||
|
||||
if not light
|
||||
or light < 13 then
|
||||
return
|
||||
end
|
||||
|
||||
-- grow to next stage
|
||||
local num = node.name:split("_")[2]
|
||||
|
||||
node.name = "ethereal:strawberry_" .. tonumber(num + 1)
|
||||
|
||||
minetest.swap_node(pos, node)
|
||||
end
|
||||
})
|
||||
|
||||
end -- END IF
|
After Width: | Height: | Size: 211 B |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 425 B |
After Width: | Height: | Size: 207 B |
After Width: | Height: | Size: 564 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 367 B |
After Width: | Height: | Size: 385 B |
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 444 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 177 B |
After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 208 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 357 B |
After Width: | Height: | Size: 148 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 116 B |
After Width: | Height: | Size: 314 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 277 B |
After Width: | Height: | Size: 166 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 229 B |
After Width: | Height: | Size: 187 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 257 B |
After Width: | Height: | Size: 209 B |
After Width: | Height: | Size: 216 B |
After Width: | Height: | Size: 348 B |
After Width: | Height: | Size: 181 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 179 B |
After Width: | Height: | Size: 232 B |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 184 B |
After Width: | Height: | Size: 380 B |
After Width: | Height: | Size: 183 B |
After Width: | Height: | Size: 194 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 317 B |
After Width: | Height: | Size: 220 B |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 283 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 300 B |
After Width: | Height: | Size: 670 B |
After Width: | Height: | Size: 317 B |