Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ethereal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
ethereal
Commits
eca5b6e1
Commit
eca5b6e1
authored
8 years ago
by
TenPlus1
Browse files
Options
Downloads
Patches
Plain Diff
added support for (0.4.15 dev)'s new leafdecay functions
parent
cd40602a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
init.lua
+3
-3
3 additions, 3 deletions
init.lua
leaves.lua
+59
-1
59 additions, 1 deletion
leaves.lua
mapgen.lua
+2
-2
2 additions, 2 deletions
mapgen.lua
with
65 additions
and
6 deletions
README.md
+
1
−
0
View file @
eca5b6e1
...
...
@@ -18,6 +18,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
-
Added bonemeal support for moretree's saplings
-
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 new leafdecay functions (0.4.15 dev)
### 1.21
...
...
This diff is collapsed.
Click to expand it.
init.lua
+
3
−
3
View file @
eca5b6e1
--[[
Minetest Ethereal Mod (
16
th
Jan
uary 2017)
Minetest Ethereal Mod (
28
th
Febr
uary 2017)
Created by ChinChow
...
...
@@ -72,8 +72,9 @@ dofile(path .. "/onion.lua")
dofile
(
path
..
"/crystal.lua"
)
dofile
(
path
..
"/water.lua"
)
dofile
(
path
..
"/dirt.lua"
)
dofile
(
path
..
"/
leaves
.lua"
)
dofile
(
path
..
"/
food
.lua"
)
dofile
(
path
..
"/wood.lua"
)
dofile
(
path
..
"/leaves.lua"
)
dofile
(
path
..
"/sapling.lua"
)
dofile
(
path
..
"/strawberry.lua"
)
dofile
(
path
..
"/fishing.lua"
)
...
...
@@ -82,7 +83,6 @@ dofile(path .. "/sealife.lua")
dofile
(
path
..
"/fences.lua"
)
dofile
(
path
..
"/gates.lua"
)
dofile
(
path
..
"/mapgen.lua"
)
dofile
(
path
..
"/food.lua"
)
dofile
(
path
..
"/compatibility.lua"
)
dofile
(
path
..
"/stairs.lua"
)
dofile
(
path
..
"/lucky_block.lua"
)
...
...
This diff is collapsed.
Click to expand it.
leaves.lua
+
59
−
1
View file @
eca5b6e1
...
...
@@ -46,7 +46,6 @@ minetest.override_item("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
.
4
,
...
...
@@ -386,3 +385,62 @@ minetest.register_craft({
recipe
=
"ethereal:bush3"
,
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
This diff is collapsed.
Click to expand it.
mapgen.lua
+
2
−
2
View file @
eca5b6e1
...
...
@@ -597,9 +597,9 @@ minetest.override_item("default:coral_brown", {groups = {crumbly = 3}})
deco_type
=
"schematic"
,
place_on
=
{
"default:sand"
},
noise_params
=
{
offset
=
-
0
.
1
,
offset
=
-
0
.
1
5
,
scale
=
0
.
1
,
spread
=
{
x
=
2
00
,
y
=
2
00
,
z
=
2
00
},
spread
=
{
x
=
1
00
,
y
=
1
00
,
z
=
1
00
},
seed
=
7013
,
octaves
=
3
,
persist
=
1
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment