added support for (0.4.15 dev)'s new leafdecay functions
This commit is contained in:
parent
cd40602a10
commit
eca5b6e13c
@ -18,6 +18,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
|
|||||||
- Added bonemeal support for moretree's saplings
|
- Added bonemeal support for moretree's saplings
|
||||||
- Added settings.conf file example so that settings remain after mod update
|
- Added settings.conf file example so that settings remain after mod update
|
||||||
- Added support for Real Torch so that torches near water drop an unlit torch
|
- Added support for Real Torch so that torches near water drop an unlit torch
|
||||||
|
- Added support for new leafdecay functions (0.4.15 dev)
|
||||||
|
|
||||||
### 1.21
|
### 1.21
|
||||||
|
|
||||||
|
6
init.lua
6
init.lua
@ -1,6 +1,6 @@
|
|||||||
--[[
|
--[[
|
||||||
|
|
||||||
Minetest Ethereal Mod (16th January 2017)
|
Minetest Ethereal Mod (28th February 2017)
|
||||||
|
|
||||||
Created by ChinChow
|
Created by ChinChow
|
||||||
|
|
||||||
@ -72,8 +72,9 @@ dofile(path .. "/onion.lua")
|
|||||||
dofile(path .. "/crystal.lua")
|
dofile(path .. "/crystal.lua")
|
||||||
dofile(path .. "/water.lua")
|
dofile(path .. "/water.lua")
|
||||||
dofile(path .. "/dirt.lua")
|
dofile(path .. "/dirt.lua")
|
||||||
dofile(path .. "/leaves.lua")
|
dofile(path .. "/food.lua")
|
||||||
dofile(path .. "/wood.lua")
|
dofile(path .. "/wood.lua")
|
||||||
|
dofile(path .. "/leaves.lua")
|
||||||
dofile(path .. "/sapling.lua")
|
dofile(path .. "/sapling.lua")
|
||||||
dofile(path .. "/strawberry.lua")
|
dofile(path .. "/strawberry.lua")
|
||||||
dofile(path .. "/fishing.lua")
|
dofile(path .. "/fishing.lua")
|
||||||
@ -82,7 +83,6 @@ dofile(path .. "/sealife.lua")
|
|||||||
dofile(path .. "/fences.lua")
|
dofile(path .. "/fences.lua")
|
||||||
dofile(path .. "/gates.lua")
|
dofile(path .. "/gates.lua")
|
||||||
dofile(path .. "/mapgen.lua")
|
dofile(path .. "/mapgen.lua")
|
||||||
dofile(path .. "/food.lua")
|
|
||||||
dofile(path .. "/compatibility.lua")
|
dofile(path .. "/compatibility.lua")
|
||||||
dofile(path .. "/stairs.lua")
|
dofile(path .. "/stairs.lua")
|
||||||
dofile(path .. "/lucky_block.lua")
|
dofile(path .. "/lucky_block.lua")
|
||||||
|
60
leaves.lua
60
leaves.lua
@ -46,7 +46,6 @@ minetest.override_item("default:pine_needles", {
|
|||||||
-- default acacia tree leaves
|
-- default acacia tree leaves
|
||||||
minetest.override_item("default:acacia_leaves", {
|
minetest.override_item("default:acacia_leaves", {
|
||||||
drawtype = leaftype,
|
drawtype = leaftype,
|
||||||
-- tiles = {"moretrees_acacia_leaves.png"},
|
|
||||||
inventory_image = "default_acacia_leaves.png",
|
inventory_image = "default_acacia_leaves.png",
|
||||||
wield_image = "default_acacia_leaves.png",
|
wield_image = "default_acacia_leaves.png",
|
||||||
visual_scale = 1.4,
|
visual_scale = 1.4,
|
||||||
@ -386,3 +385,62 @@ minetest.register_craft({
|
|||||||
recipe = "ethereal:bush3",
|
recipe = "ethereal:bush3",
|
||||||
burntime = 1,
|
burntime = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- compatibility check for new mt version with leafdecay function
|
||||||
|
if minetest.registered_nodes["default:dirt_with_rainforest_litter"] then
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"default:tree"},
|
||||||
|
leaves = {"default:apple", "default:leaves", "ethereal:orange", "ethereal:orange_leaves"},
|
||||||
|
radius = 3
|
||||||
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"ethereal:willow_trunk"},
|
||||||
|
leaves = {"ethereal:willow_twig"},
|
||||||
|
radius = 3
|
||||||
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"ethereal:redwood_trunk"},
|
||||||
|
leaves = {"ethereal:redwood_leaves"},
|
||||||
|
radius = 3
|
||||||
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"ethereal:frost_tree"},
|
||||||
|
leaves = {"ethereal:frost_leaves"},
|
||||||
|
radius = 3
|
||||||
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"ethereal:yellow_trunk"},
|
||||||
|
leaves = {"ethereal:yellowleaves", "ethereal:golden_apple"},
|
||||||
|
radius = 3
|
||||||
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"ethereal:palm_trunk"},
|
||||||
|
leaves = {"ethereal:palmleaves", "ethereal:coconut"},
|
||||||
|
radius = 3
|
||||||
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"ethereal:banana_trunk"},
|
||||||
|
leaves = {"ethereal:bananaleaves", "ethereal:banana"},
|
||||||
|
radius = 3
|
||||||
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"ethereal:birch_trunk"},
|
||||||
|
leaves = {"ethereal:birch_leaves"},
|
||||||
|
radius = 3
|
||||||
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = {"ethereal:bamboo"},
|
||||||
|
leaves = {"ethereal:bamboo_leaves"},
|
||||||
|
radius = 1
|
||||||
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
@ -597,9 +597,9 @@ minetest.override_item("default:coral_brown", {groups = {crumbly = 3}})
|
|||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"default:sand"},
|
place_on = {"default:sand"},
|
||||||
noise_params = {
|
noise_params = {
|
||||||
offset = -0.1,
|
offset = -0.15,
|
||||||
scale = 0.1,
|
scale = 0.1,
|
||||||
spread = {x = 200, y = 200, z = 200},
|
spread = {x = 100, y = 100, z = 100},
|
||||||
seed = 7013,
|
seed = 7013,
|
||||||
octaves = 3,
|
octaves = 3,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user