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
cd40602a
Commit
cd40602a
authored
8 years ago
by
TenPlus1
Browse files
Options
Downloads
Patches
Plain Diff
added support for Real Torch mod
parent
4f318a94
No related branches found
Branches containing commit
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
water.lua
+9
-2
9 additions, 2 deletions
water.lua
with
10 additions
and
2 deletions
README.md
+
1
−
0
View file @
cd40602a
...
...
@@ -17,6 +17,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
-
Mesa biomes are now topped with dirt with dry grass (redwood saplings grow on dry grass)
-
Added bonemeal support for moretree's saplings
-
Added settings.conf file example so that settings remain after mod update
-
Added support for Real Torch so that torches near water drop an unlit torch
### 1.21
...
...
This diff is collapsed.
Click to expand it.
water.lua
+
9
−
2
View file @
cd40602a
...
...
@@ -125,9 +125,16 @@ minetest.register_abm({
-- If torch touching water then drop as item (when enabled)
if
ethereal
.
torchdrop
==
true
then
local
torch_drop
=
"default:torch"
if
minetest
.
get_modpath
(
"real_torch"
)
then
torch_drop
=
"real_torch:torch"
end
minetest
.
register_abm
({
label
=
"Ethereal drop torch"
,
nodenames
=
{
"default:torch"
,
"default:torch_wall"
,
"default:torch_ceiling"
},
nodenames
=
{
"default:torch"
,
"default:torch_wall"
,
"default:torch_ceiling"
,
"real_torch:torch"
,
"real_torch:torch_wall"
,
"real_torch:torch_ceiling"
},
neighbors
=
{
"group:water"
},
interval
=
5
,
chance
=
1
,
...
...
@@ -154,7 +161,7 @@ end
minetest
.
set_node
(
pos
,
{
name
=
"air"
})
minetest
.
add_item
(
pos
,
{
name
=
"default:torch"
})
minetest
.
add_item
(
pos
,
{
name
=
torch_drop
})
end
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