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
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
thediamondlego
minetest_game
Commits
ec1d7447
Commit
ec1d7447
authored
7 years ago
by
Milan
Browse files
Options
Downloads
Patches
Plain Diff
remove fire abm's
update mobs_{redo,animal}
parent
c5b236bb
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
mods/fire/init.lua
+12
-7
12 additions, 7 deletions
mods/fire/init.lua
mods/mobs_animal
+1
-1
1 addition, 1 deletion
mods/mobs_animal
mods/mobs_redo
+1
-1
1 addition, 1 deletion
mods/mobs_redo
with
14 additions
and
9 deletions
mods/fire/init.lua
+
12
−
7
View file @
ec1d7447
...
...
@@ -31,18 +31,18 @@ minetest.register_node("fire:basic_flame", {
damage_per_second
=
4
,
groups
=
{
igniter
=
2
,
dig_immediate
=
3
,
not_in_creative_inventory
=
1
},
on_timer
=
function
(
pos
)
local
f
=
minetest
.
find_node_near
(
pos
,
1
,
{
"group:flammable"
})
if
not
f
then
--
local f = minetest.find_node_near(pos, 1, {"group:flammable"})
--
if not f then
minetest
.
remove_node
(
pos
)
return
end
--
return
--
end
-- Restart timer
return
tru
e
return
fals
e
end
,
drop
=
""
,
on_construct
=
function
(
pos
)
minetest
.
get_node_timer
(
pos
):
start
(
math.random
(
3
0
,
6
0
))
minetest
.
get_node_timer
(
pos
):
start
(
math.random
(
2
0
,
3
0
))
end
,
})
...
...
@@ -288,8 +288,13 @@ minetest.register_abm({
-- Enable the following ABMs according to 'enable fire' setting
<<<<<<<
HEAD
local
fire_enabled
=
minetest
.
setting_getbool
(
"enable_fire"
)
=======
--[[
local fire_enabled = minetest.settings:get_bool("enable_fire")
>>>>>>> 2e47e09... fire: remove fire abm's, make fire nodes last 20-30 seconds
if fire_enabled == nil then
-- New setting not specified, check for old setting.
-- If old setting is also not specified, 'not nil' is true.
...
...
@@ -356,4 +361,4 @@ else -- Fire enabled
end,
})
end
end
]]
This diff is collapsed.
Click to expand it.
mobs_animal
@
80b157eb
Compare
51ac8cc9
...
80b157eb
Subproject commit
51ac8cc9302637c95867a86264cac004e3426325
Subproject commit
80b157eb20d814513a67c1bd65501ebdd71a05ca
This diff is collapsed.
Click to expand it.
mobs_redo
@
95a2e8a4
Compare
622d04b9
...
95a2e8a4
Subproject commit
622d04b9e3bc9285ea6250d25d4d7f1dc0e2d471
Subproject commit
95a2e8a47e4ab430e793e22deed8eb5635f27b89
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