Skip to content

Commit d1db66b

Browse files
committedDec 24, 2017
Ferns: Add 3 sizes for coniferous forest biome
Remove flowers from coniferous forest. Add 'dirt with coniferous litter' to farming mod overrides.
1 parent 8ab7c54 commit d1db66b

10 files changed

+102
-3
lines changed
 

‎mods/default/README.txt

+3
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ tobyplowy (CC BY-SA 3.0):
218218
CloudyProton (CC BY-SA 3.0):
219219
default_book_written.png, based on default_book.png by Gambit
220220

221+
Mossmanikin (CC BY-SA 3.0):
222+
default_fern_*.png
223+
221224
Glass breaking sounds (CC BY 3.0):
222225
1: http://www.freesound.org/people/cmusounddesign/sounds/71947/
223226
2: http://www.freesound.org/people/Tomlija/sounds/97669/

‎mods/default/crafting.lua

+6
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,12 @@ minetest.register_craft({
10981098
burntime = 2,
10991099
})
11001100

1101+
minetest.register_craft({
1102+
type = "fuel",
1103+
recipe = "default:fern_1",
1104+
burntime = 2,
1105+
})
1106+
11011107
minetest.register_craft({
11021108
type = "fuel",
11031109
recipe = "default:paper",

‎mods/default/license.txt

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Copyright (C) 2010-2017:
4848
tobyplowy
4949
CloudyProton
5050
TumeniNodes
51+
Mossmanikin
5152

5253
You are free to:
5354
Share — copy and redistribute the material in any medium or format.

‎mods/default/mapgen.lua

+26
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,26 @@ local function register_dry_grass_decoration(offset, scale, length)
16401640
})
16411641
end
16421642

1643+
local function register_fern_decoration(seed, length)
1644+
minetest.register_decoration({
1645+
deco_type = "simple",
1646+
place_on = {"default:dirt_with_coniferous_litter"},
1647+
sidelen = 16,
1648+
noise_params = {
1649+
offset = 0,
1650+
scale = 0.2,
1651+
spread = {x = 100, y = 100, z = 100},
1652+
seed = seed,
1653+
octaves = 3,
1654+
persist = 0.7
1655+
},
1656+
biomes = {"coniferous_forest"},
1657+
y_min = 6,
1658+
y_max = 31000,
1659+
decoration = "default:fern_" .. length,
1660+
})
1661+
end
1662+
16431663

16441664
function default.register_decorations()
16451665

@@ -1960,6 +1980,12 @@ function default.register_decorations()
19601980
register_dry_grass_decoration(0.07, -0.01, 2)
19611981
register_dry_grass_decoration(0.09, -0.03, 1)
19621982

1983+
-- Ferns
1984+
1985+
register_fern_decoration(14936, 3)
1986+
register_fern_decoration(801, 2)
1987+
register_fern_decoration(5, 1)
1988+
19631989
-- Junglegrass
19641990

19651991
minetest.register_decoration({

‎mods/default/nodes.lua

+56
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ default:dry_grass_3
143143
default:dry_grass_4
144144
default:dry_grass_5
145145
146+
default:fern_1
147+
default:fern_2
148+
default:fern_3
149+
146150
default:bush_stem
147151
default:bush_leaves
148152
default:bush_sapling
@@ -1315,6 +1319,58 @@ for i = 2, 5 do
13151319
end
13161320

13171321

1322+
minetest.register_node("default:fern_1", {
1323+
description = "Fern",
1324+
drawtype = "plantlike",
1325+
waving = 1,
1326+
tiles = {"default_fern_1.png"},
1327+
inventory_image = "default_fern_1.png",
1328+
wield_image = "default_fern_1.png",
1329+
paramtype = "light",
1330+
sunlight_propagates = true,
1331+
walkable = false,
1332+
buildable_to = true,
1333+
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1},
1334+
sounds = default.node_sound_leaves_defaults(),
1335+
selection_box = {
1336+
type = "fixed",
1337+
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -0.25, 6 / 16},
1338+
},
1339+
1340+
on_place = function(itemstack, placer, pointed_thing)
1341+
-- place a random fern node
1342+
local stack = ItemStack("default:fern_" .. math.random(1, 3))
1343+
local ret = minetest.item_place(stack, placer, pointed_thing)
1344+
return ItemStack("default:fern_1 " ..
1345+
itemstack:get_count() - (1 - ret:get_count()))
1346+
end,
1347+
})
1348+
1349+
for i = 2, 3 do
1350+
minetest.register_node("default:fern_" .. i, {
1351+
description = "Fern",
1352+
drawtype = "plantlike",
1353+
waving = 1,
1354+
visual_scale = 2,
1355+
tiles = {"default_fern_" .. i .. ".png"},
1356+
inventory_image = "default_fern_" .. i .. ".png",
1357+
wield_image = "default_fern_" .. i .. ".png",
1358+
paramtype = "light",
1359+
sunlight_propagates = true,
1360+
walkable = false,
1361+
buildable_to = true,
1362+
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1,
1363+
not_in_creative_inventory=1},
1364+
drop = "default:fern_1",
1365+
sounds = default.node_sound_leaves_defaults(),
1366+
selection_box = {
1367+
type = "fixed",
1368+
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -0.25, 6 / 16},
1369+
},
1370+
})
1371+
end
1372+
1373+
13181374
minetest.register_node("default:bush_stem", {
13191375
description = "Bush Stem",
13201376
drawtype = "plantlike",
370 Bytes
Loading
691 Bytes
Loading
1.14 KB
Loading

‎mods/farming/nodes.lua

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ minetest.override_item("default:dirt_with_rainforest_litter", {
3030
}
3131
})
3232

33+
minetest.override_item("default:dirt_with_coniferous_litter", {
34+
soil = {
35+
base = "default:dirt_with_coniferous_litter",
36+
dry = "farming:soil",
37+
wet = "farming:soil_wet"
38+
}
39+
})
40+
3341
minetest.register_node("farming:soil", {
3442
description = "Soil",
3543
tiles = {"default_dirt.png^farming_soil.png", "default_dirt.png"},

‎mods/flowers/mapgen.lua

+2-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ end
8484
local function register_flower(seed, name)
8585
minetest.register_decoration({
8686
deco_type = "simple",
87-
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
87+
place_on = {"default:dirt_with_grass"},
8888
sidelen = 16,
8989
noise_params = {
9090
offset = -0.02,
@@ -94,8 +94,7 @@ local function register_flower(seed, name)
9494
octaves = 3,
9595
persist = 0.6
9696
},
97-
biomes = {"grassland", "deciduous_forest", "coniferous_forest",
98-
"floatland_grassland"},
97+
biomes = {"grassland", "deciduous_forest", "floatland_grassland"},
9998
y_min = 1,
10099
y_max = 31000,
101100
decoration = "flowers:"..name,

0 commit comments

Comments
 (0)
Please sign in to comment.