Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
illuna-minetest
Commits
a77c85fa
Commit
a77c85fa
authored
10 years ago
by
paramat
Committed by
kwolekr
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove builtin_biome.lua from builtin and add simple biome minimal
parent
c28a90da
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
builtin/game/builtin_biome.lua
+0
-9
0 additions, 9 deletions
builtin/game/builtin_biome.lua
builtin/game/init.lua
+0
-1
0 additions, 1 deletion
builtin/game/init.lua
games/minimal/mods/default/mapgen.lua
+13
-23
13 additions, 23 deletions
games/minimal/mods/default/mapgen.lua
with
13 additions
and
33 deletions
builtin/game/builtin_biome.lua
deleted
100644 → 0
+
0
−
9
View file @
c28a90da
minetest
.
register_biome
({
name
=
"Grass"
,
heat_point
=
50
.
0
,
humidity_point
=
50
.
0
,
height_min
=
-
31000
,
height_max
=
31000
,
})
This diff is collapsed.
Click to expand it.
builtin/game/init.lua
+
0
−
1
View file @
a77c85fa
...
...
@@ -25,5 +25,4 @@ dofile(gamepath.."features.lua")
dofile
(
gamepath
..
"voxelarea.lua"
)
dofile
(
gamepath
..
"forceloading.lua"
)
dofile
(
gamepath
..
"statbars.lua"
)
dofile
(
gamepath
..
"builtin_biome.lua"
)
This diff is collapsed.
Click to expand it.
games/minimal/mods/default/mapgen.lua
+
13
−
23
View file @
a77c85fa
...
...
@@ -71,29 +71,6 @@ minetest.register_ore({
height_max
=
-
17
,
})
-- for float islands and far scaled
minetest
.
register_ore
({
ore_type
=
"scatter"
,
ore
=
"default:stone_with_coal"
,
wherein
=
"default:stone"
,
clust_scarcity
=
8
*
8
*
8
,
clust_num_ores
=
5
,
clust_size
=
3
,
height_min
=
200
,
height_max
=
31000
,
})
minetest
.
register_ore
({
ore_type
=
"scatter"
,
ore
=
"default:stone_with_iron"
,
wherein
=
"default:stone"
,
clust_scarcity
=
9
*
9
*
9
,
clust_num_ores
=
5
,
clust_size
=
3
,
height_min
=
200
,
height_max
=
31000
,
})
minetest
.
register_on_generated
(
function
(
minp
,
maxp
,
seed
)
-- Generate clay
if
maxp
.
y
>=
2
and
minp
.
y
<=
0
then
...
...
@@ -134,3 +111,16 @@ minetest.register_on_generated(function(minp, maxp, seed)
end
end
)
--
-- Register biome for biome API
--
minetest
.
register_biome
({
name
=
"Grassland"
,
-- Will use defaults of omitted parameters
y_min
=
-
31000
,
y_max
=
31000
,
heat_point
=
50
,
humidity_point
=
50
,
})
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