Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
underworlds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
underworlds
Commits
c99b4852
Commit
c99b4852
authored
8 years ago
by
Duane Robertson
Browse files
Options
Downloads
Patches
Plain Diff
Add cave integration option.
parent
580dd54d
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
init.lua
+15
-10
15 additions, 10 deletions
init.lua
undergen.lua
+2
-2
2 additions, 2 deletions
undergen.lua
with
17 additions
and
12 deletions
init.lua
+
15
−
10
View file @
c99b4852
...
...
@@ -8,6 +8,11 @@ underworlds_mod.version = "1.0"
underworlds_mod
.
path
=
minetest
.
get_modpath
(
minetest
.
get_current_modname
())
underworlds_mod
.
world
=
minetest
.
get_worldpath
()
underworlds_mod
.
integration
=
minetest
.
setting_getbool
(
'underworlds_mod_integration'
)
if
underworlds_mod
.
integration
==
nil
then
underworlds_mod
.
integration
=
false
end
underworlds_mod
.
underzones
=
{
Caina
=
{
...
...
@@ -16,8 +21,8 @@ underworlds_mod.underzones = {
column_node
=
'default:ice'
,
column_node_rare
=
'underworlds:thin_ice'
,
floor_node
=
'default:ice'
,
high_chunk
=
-
1
2
,
low_chunk
=
-
1
4
,
high_chunk
=
-
1
4
,
low_chunk
=
-
1
6
,
regular_columns
=
false
,
stalactite
=
'underworlds:icicle_down'
,
stalactite_chance
=
12
,
...
...
@@ -32,8 +37,8 @@ underworlds_mod.underzones = {
floor_node
=
'underworlds:hot_cobble'
,
fluid
=
'default:lava_source'
,
fluid_chance
=
1200
,
high_chunk
=
-
1
6
,
low_chunk
=
-
18
,
high_chunk
=
-
1
8
,
low_chunk
=
-
20
,
lake
=
'default:lava_source'
,
lake_level
=
5
,
regular_columns
=
false
,
...
...
@@ -48,8 +53,8 @@ underworlds_mod.underzones = {
column_node
=
'default:steelblock'
,
floor_depth
=
10
,
floor_node
=
'underworlds:hot_brass'
,
high_chunk
=
-
2
0
,
low_chunk
=
-
2
0
,
high_chunk
=
-
2
2
,
low_chunk
=
-
2
2
,
regular_columns
=
true
,
stone_depth
=
1
,
vary
=
false
,
...
...
@@ -62,10 +67,10 @@ underworlds_mod.underzones = {
floor_node
=
'underworlds:polluted_dirt'
,
fluid
=
'underworlds:water_poison_source'
,
fluid_chance
=
2000
,
high_chunk
=
-
2
2
,
high_chunk
=
-
2
4
,
lake
=
'underworlds:water_poison_source'
,
lake_level
=
10
,
low_chunk
=
-
2
4
,
low_chunk
=
-
2
6
,
regular_columns
=
false
,
stone_depth
=
2
,
vary
=
true
,
...
...
@@ -74,8 +79,8 @@ underworlds_mod.underzones = {
name
=
'Styx'
,
ceiling_node
=
'default:dirt'
,
floor_node
=
'default:dirt'
,
high_chunk
=
-
2
6
,
low_chunk
=
-
3
0
,
high_chunk
=
-
2
8
,
low_chunk
=
-
3
2
,
regular_columns
=
false
,
stone_depth
=
2
,
sea_chunk
=
-
16
,
...
...
This diff is collapsed.
Click to expand it.
undergen.lua
+
2
−
2
View file @
c99b4852
...
...
@@ -77,9 +77,9 @@ underworlds_mod.undergen = function(minp, maxp, data, p2data, area, node, underz
data
[
ivm
]
=
node
[
"air"
]
end
write
=
true
elseif
y
<
underzone
.
ceiling
+
10
-
(
underzone
.
vary
and
terrain
[
index
]
or
0
)
then
elseif
y
<
underzone
.
ceiling
+
10
-
(
underzone
.
vary
and
terrain
[
index
]
or
0
)
and
(
not
underworlds_mod
.
integration
or
data
[
ivm
]
~=
node
[
'air'
])
then
data
[
ivm
]
=
node
[
"default:stone"
]
elseif
y
>
underzone
.
floor
-
10
+
(
underzone
.
vary
and
terrain
[
index
]
or
0
)
then
elseif
y
>
underzone
.
floor
-
10
+
(
underzone
.
vary
and
terrain
[
index
]
or
0
)
and
(
not
underworlds_mod
.
integration
or
data
[
ivm
]
~=
node
[
'air'
])
then
data
[
ivm
]
=
node
[
"default:stone"
]
end
...
...
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