Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minetest_game
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
minetest_game
Commits
08706313
Commit
08706313
authored
7 years ago
by
Ezhh
Committed by
SmallJoker
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add option to disable lavacooling (#1726)
parent
6737952f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
minetest.conf.example
+3
-0
3 additions, 0 deletions
minetest.conf.example
mods/default/functions.lua
+13
-12
13 additions, 12 deletions
mods/default/functions.lua
settingtypes.txt
+3
-0
3 additions, 0 deletions
settingtypes.txt
with
19 additions
and
12 deletions
minetest.conf.example
+
3
−
0
View file @
08706313
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
# Enable flame sound.
# Enable flame sound.
#flame_sound = true
#flame_sound = true
# Whether lavacooling should be enabled.
#enable_lavacooling = true
# Whether the stuff in initial_stuff should be given to new players
# Whether the stuff in initial_stuff should be given to new players
#give_initial_stuff = false
#give_initial_stuff = false
#initial_stuff = default:pick_steel,default:axe_steel,default:shovel_steel,default:torch 99,default:cobble 99
#initial_stuff = default:pick_steel,default:axe_steel,default:shovel_steel,default:torch 99,default:cobble 99
...
...
This diff is collapsed.
Click to expand it.
mods/default/functions.lua
+
13
−
12
View file @
08706313
...
@@ -131,18 +131,19 @@ default.cool_lava = function(pos, node)
...
@@ -131,18 +131,19 @@ default.cool_lava = function(pos, node)
{
pos
=
pos
,
max_hear_distance
=
16
,
gain
=
0
.
25
})
{
pos
=
pos
,
max_hear_distance
=
16
,
gain
=
0
.
25
})
end
end
minetest
.
register_abm
({
if
minetest
.
setting_getbool
(
"enable_lavacooling"
)
~=
false
then
label
=
"Lava cooling"
,
minetest
.
register_abm
({
nodenames
=
{
"default:lava_source"
,
"default:lava_flowing"
},
label
=
"Lava cooling"
,
neighbors
=
{
"group:cools_lava"
,
"group:water"
},
nodenames
=
{
"default:lava_source"
,
"default:lava_flowing"
},
interval
=
1
,
neighbors
=
{
"group:cools_lava"
,
"group:water"
},
chance
=
2
,
interval
=
1
,
catch_up
=
false
,
chance
=
2
,
action
=
function
(
...
)
catch_up
=
false
,
default
.
cool_lava
(
...
)
action
=
function
(
...
)
end
,
default
.
cool_lava
(
...
)
})
end
,
})
end
--
--
-- optimized helper to put all items in an inventory into a drops list
-- optimized helper to put all items in an inventory into a drops list
...
...
This diff is collapsed.
Click to expand it.
settingtypes.txt
+
3
−
0
View file @
08706313
...
@@ -16,6 +16,9 @@ enable_fire (Fire) bool true
...
@@ -16,6 +16,9 @@ enable_fire (Fire) bool true
# Enable flame sound.
# Enable flame sound.
flame_sound (Flame sound) bool true
flame_sound (Flame sound) bool true
# Enable lavacooling.
enable_lavacooling (Lavacooling) bool true
# If enabled, steel tools, torches and cobblestone will be given to new
# If enabled, steel tools, torches and cobblestone will be given to new
# players.
# players.
give_initial_stuff (Give initial items) bool false
give_initial_stuff (Give initial items) bool false
...
...
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