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
3a25e79e
Commit
3a25e79e
authored
9 years ago
by
TenPlus1
Browse files
Options
Downloads
Patches
Plain Diff
Fire Flowers spread
parent
0ec560b3
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
README.md
+1
-0
1 addition, 0 deletions
README.md
flowers.lua
+27
-1
27 additions, 1 deletion
flowers.lua
init.lua
+1
-1
1 addition, 1 deletion
init.lua
with
29 additions
and
2 deletions
README.md
+
1
−
0
View file @
3a25e79e
...
...
@@ -16,6 +16,7 @@ Ethereal v7 Mapgen mod for Minetest
-
Dirt with dry grass turns into green grass when near water
-
Ice or snow above sea level melts into river water
-
Disabling ethereal biomes no longer shows error messages
-
Fire Flowers re-generate, can also be made into Fire Dust
### 1.18
...
...
This diff is collapsed.
Click to expand it.
flowers.lua
+
27
−
1
View file @
3a25e79e
...
...
@@ -3,7 +3,7 @@ minetest.register_abm({
nodenames
=
{
"group:flora"
},
neighbors
=
{
"group:soil"
},
interval
=
25
,
chance
=
1
0
,
chance
=
1
5
,
catch_up
=
false
,
action
=
function
(
pos
,
node
)
...
...
@@ -45,6 +45,32 @@ minetest.register_abm({
return
elseif
num
>
3
and
node
.
name
==
"ethereal:dry_shrub"
then
local
grass
=
minetest
.
find_nodes_in_area_under_air
(
pos0
,
pos1
,
{
"ethereal:dry_shrub"
})
local
fflower
=
minetest
.
find_nodes_in_area_under_air
(
pos0
,
pos1
,
{
"ethereal:fire_flower"
})
if
#
grass
>
4
and
#
fflower
<
1
then
grass
=
grass
[
math.random
(
#
grass
)]
grass
.
y
=
grass
.
y
-
1
if
minetest
.
get_node
(
grass
).
name
==
"ethereal:fiery_dirt"
then
grass
.
y
=
grass
.
y
+
1
minetest
.
set_node
(
grass
,
{
name
=
"ethereal:fire_flower"
})
end
end
return
elseif
num
>
3
then
return
end
...
...
This diff is collapsed.
Click to expand it.
init.lua
+
1
−
1
View file @
3a25e79e
--[[
Minetest Ethereal Mod 1.19 (
3rd
December 2015)
Minetest Ethereal Mod 1.19 (
13th
December 2015)
Created by ChinChow
...
...
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