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
658703be
Commit
658703be
authored
7 years ago
by
TenPlus1
Browse files
Options
Downloads
Patches
Plain Diff
Added bushes to mapgen
parent
7d0ee517
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
mapgen.lua
+46
-0
46 additions, 0 deletions
mapgen.lua
with
47 additions
and
0 deletions
README.md
+
1
−
0
View file @
658703be
...
...
@@ -20,6 +20,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
-
Added support for Real Torch so that torches near water drop an unlit torch
-
Added support for new leafdecay functions (0.4.15 dev)
-
Mapgen will use dirt_with_rainforest_litter for jungles if found
-
Added bushes to mapgen
### 1.21
...
...
This diff is collapsed.
Click to expand it.
mapgen.lua
+
46
−
0
View file @
658703be
...
...
@@ -333,6 +333,52 @@ add_schem({"ethereal:bamboo_dirt"}, 0.08, {"bamboo"}, 1, 100, ethereal.bush, eth
-- vine tree
add_schem
({
"ethereal:green_dirt"
},
0
.
02
,
{
"swamp"
},
1
,
100
,
path
..
"vinetree.mts"
,
ethereal
.
swamp
)
-- bushes
if
minetest
.
registered_nodes
[
"default:acacia_bush_stem"
]
then
minetest
.
register_decoration
({
deco_type
=
"schematic"
,
place_on
=
{
"default:dirt_with_grass"
,
"default:dirt_with_snow"
},
sidelen
=
16
,
noise_params
=
{
offset
=
-
0
.
004
,
scale
=
0
.
01
,
spread
=
{
x
=
100
,
y
=
100
,
z
=
100
},
seed
=
137
,
octaves
=
3
,
persist
=
0
.
7
,
},
biomes
=
{
"grassy"
,
"grassytwo"
,
"jumble"
},
y_min
=
1
,
y_max
=
31000
,
schematic
=
dpath
..
"/bush.mts"
,
flags
=
"place_center_x, place_center_z"
,
})
-- Acacia bush
minetest
.
register_decoration
({
deco_type
=
"schematic"
,
place_on
=
{
"default:dirt_with_dry_grass"
},
sidelen
=
16
,
noise_params
=
{
offset
=
-
0
.
004
,
scale
=
0
.
01
,
spread
=
{
x
=
100
,
y
=
100
,
z
=
100
},
seed
=
90155
,
octaves
=
3
,
persist
=
0
.
7
,
},
biomes
=
{
"savannah"
,
"mesa"
},
y_min
=
1
,
y_max
=
31000
,
schematic
=
dpath
..
"/acacia_bush.mts"
,
flags
=
"place_center_x, place_center_z"
,
})
end
--= simple decorations
local
add_node
=
function
(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
)
...
...
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