Version MFF.

This commit is contained in:
sys4-fr
2018-09-08 14:54:14 +02:00
parent 2e0277e558
commit f5ec948679
386 changed files with 244 additions and 240 deletions

2
ferns/crafting.lua Normal file → Executable file
View File

@ -2,7 +2,7 @@
-- Ferns - Crafting 0.0.5
-----------------------------------------------------------------------------------------------
-- (by Mossmanikin)
-- License (everything): WTFPL
-- License (everything): WTFPL
-----------------------------------------------------------------------------------------------
minetest.register_craft({
type = "shapeless",

0
ferns/depends.txt Normal file → Executable file
View File

14
ferns/fern.lua Normal file → Executable file
View File

@ -133,8 +133,8 @@ if abstract_ferns.config.lady_ferns_near_ores == true then -- this one causes a
"default:mossycobble",
"default:stone_with_coal",
"default:stone_with_iron",
"moreores:mineral_tin",
"moreores:mineral_silver",
"default:stone_with_tin",
"default:stone_with_silver",
"sumpf:sumpf"
},
max_count = 1200,--1600, -- maybe too much? :D
@ -146,9 +146,9 @@ if abstract_ferns.config.lady_ferns_near_ores == true then -- this one causes a
--"default:stone_with_mese",
--"default:stone_with_gold",
--"default:stone_with_diamond",
"moreores:mineral_tin",
"moreores:mineral_silver"
--"moreores:mineral_mithril"
"default:stone_with_tin",
"default:stone_with_silver"
--"default:mineral_mithril"
},
near_nodes_size = 2,
near_nodes_vertical = 4,--5,--6,
@ -171,8 +171,8 @@ if abstract_ferns.config.lady_ferns_in_groups == true then -- this one is meant
"default:mossycobble",
"default:stone_with_coal",
"default:stone_with_iron",
"moreores:mineral_tin",
"moreores:mineral_silver",
"default:stone_with_tin",
"default:stone_with_silver",
"sumpf:sumpf"
},
max_count = 70,

19
ferns/gianttreefern.lua Normal file → Executable file
View File

@ -5,7 +5,7 @@
-- License (everything): WTFPL
-- Contains code from: biome_lib
-- Looked at code from: 4seasons, default
-- Supports: vines
-- Supports: vines
-----------------------------------------------------------------------------------------------
assert(abstract_ferns.config.enable_giant_treefern == true)
@ -21,7 +21,7 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
end
local size = math.random(12,16) -- min of range must be >= 4
local leafchecks = {
{
direction = 3,
@ -242,13 +242,12 @@ minetest.register_node("ferns:fern_trunk_big", {
},
groups = {tree=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
after_destruct = function(pos,oldnode)
local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
if node.name == "ferns:fern_trunk_big" or node.name == "ferns:fern_trunk_big_top" then
minetest.dig_node({x=pos.x,y=pos.y+1,z=pos.z})
minetest.add_item(pos,"ferns:fern_trunk_big")
end
end,
after_dig_node = function(pos, oldnode, oldmetadata, digger)
local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
if node.name == "ferns:fern_trunk_big" or node.name == "ferns:fern_trunk_big_top" then
minetest.node_dig({x=pos.x,y=pos.y+1,z=pos.z}, node, digger)
end
end,
})
-----------------------------------------------------------------------------------------------
@ -276,7 +275,7 @@ minetest.register_abm({
chance = 4,
action = function(pos, node, _, _)
abstract_ferns.grow_giant_tree_fern({x = pos.x, y = pos.y-1, z = pos.z})
end
end
})
-----------------------------------------------------------------------------------------------

2
ferns/horsetail.lua Normal file → Executable file
View File

@ -6,7 +6,7 @@
-- Contains code from: biome_lib
-- Looked at code from: default, flowers, trees
-- Dependencies: biome_lib
-- Supports: dryplants, stoneage, sumpf
-- Supports: dryplants, stoneage, sumpf
-----------------------------------------------------------------------------------------------
assert(abstract_ferns.config.enable_horsetails == true)

10
ferns/init.lua Normal file → Executable file
View File

@ -4,7 +4,7 @@ local version = "0.2.0"
local mname = "ferns" -- former "archaeplantae"
-----------------------------------------------------------------------------------------------
-- (by Mossmanikin)
-- License (everything): WTFPL
-- License (everything): WTFPL
-----------------------------------------------------------------------------------------------
abstract_ferns = {}
@ -43,20 +43,20 @@ if run_tests then
-- Check node names
if abstract_ferns.config.enable_horsetails then
print("[Mod] " ..title.. " Checking horsetail item strings")
minetest.log("action", "[Mod] " ..title.. " Checking horsetail item strings")
assert(minetest.registered_items["ferns:horsetail_01"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_02"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_03"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_04"] ~= nil)
end
if abstract_ferns.config.enable_lady_fern then
print("[Mod] ".. title .." Checking lady fern item strings")
minetest.log("action", "[Mod] ".. title .." Checking lady fern item strings")
assert(minetest.registered_items["ferns:fern_01"] ~= nil)
assert(minetest.registered_items["ferns:fern_02"] ~= nil)
assert(minetest.registered_items["ferns:fern_03"] ~= nil)
end
if abstract_ferns.config.enable_treefern then
print("[Mod] ".. title .." Checking tree fern item strings")
minetest.log("action", "[Mod] ".. title .." Checking tree fern item strings")
assert(minetest.registered_items["ferns:tree_fern_leaves"] ~= nil)
assert(minetest.registered_items["ferns:tree_fern_leaves_02"] ~= nil)
assert(minetest.registered_items["ferns:fern_trunk"] ~= nil)
@ -65,5 +65,5 @@ if run_tests then
end
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

2
ferns/settings.lua Normal file → Executable file
View File

@ -1,6 +1,6 @@
-- In case you don't wanna have errors:
-- Only change what's behind a "=" (or "--").
-- Only change what's behind a "=" (or "--").
-- Don't use caps (behind a "=").
-- If there's a "false" (behind a "=") you can change it to "true" (and the other way around).

0
ferns/textures/ferns_5.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 550 B

After

Width:  |  Height:  |  Size: 550 B

0
ferns/textures/ferns_6.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 666 B

After

Width:  |  Height:  |  Size: 666 B

0
ferns/textures/ferns_7.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 669 B

After

Width:  |  Height:  |  Size: 669 B

0
ferns/textures/ferns_8.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 510 B

After

Width:  |  Height:  |  Size: 510 B

0
ferns/textures/ferns_fern.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 362 B

After

Width:  |  Height:  |  Size: 362 B

BIN
ferns/textures/ferns_fern_big.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
ferns/textures/ferns_fern_mid.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 699 B

After

Width:  |  Height:  |  Size: 699 B

BIN
ferns/textures/ferns_fern_tree.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
ferns/textures/ferns_fern_tree_giant.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

0
ferns/textures/ferns_fern_tree_inv.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 391 B

After

Width:  |  Height:  |  Size: 391 B

0
ferns/textures/ferns_fern_tree_tl.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 264 B

0
ferns/textures/ferns_fern_tree_tr.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 256 B

After

Width:  |  Height:  |  Size: 256 B

0
ferns/textures/ferns_fern_trunk.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 765 B

After

Width:  |  Height:  |  Size: 765 B

0
ferns/textures/ferns_fern_trunk_big.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 684 B

After

Width:  |  Height:  |  Size: 684 B

0
ferns/textures/ferns_fern_trunk_big_top.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 398 B

After

Width:  |  Height:  |  Size: 398 B

0
ferns/textures/ferns_fern_trunk_top.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 233 B

After

Width:  |  Height:  |  Size: 233 B

0
ferns/textures/ferns_ferntuber.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 438 B

0
ferns/textures/ferns_ferntuber_roasted.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 428 B

0
ferns/textures/ferns_fiddlehead.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 327 B

0
ferns/textures/ferns_fiddlehead_roasted.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 521 B

After

Width:  |  Height:  |  Size: 521 B

0
ferns/textures/ferns_horsetail_01.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 150 B

After

Width:  |  Height:  |  Size: 150 B

0
ferns/textures/ferns_horsetail_02.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

0
ferns/textures/ferns_horsetail_03.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 199 B

0
ferns/textures/ferns_horsetail_04.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 224 B

After

Width:  |  Height:  |  Size: 224 B

0
ferns/textures/ferns_sapling_tree_fern.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 168 B

After

Width:  |  Height:  |  Size: 168 B

0
ferns/textures/ferns_sapling_tree_fern_giant.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 224 B

After

Width:  |  Height:  |  Size: 224 B

0
ferns/textures/ferns_tree_fern_leave_big.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 560 B

0
ferns/textures/ferns_tree_fern_leave_big_cross.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 724 B

After

Width:  |  Height:  |  Size: 724 B

0
ferns/textures/ferns_tree_fern_leave_big_end.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 456 B

After

Width:  |  Height:  |  Size: 456 B

0
ferns/textures/not_in_use/archaeplantae_horsetails.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 308 B

After

Width:  |  Height:  |  Size: 308 B

BIN
ferns/textures/not_in_use/big picture 3.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
ferns/textures/not_in_use/ferns_fern_big_left.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 640 B

After

Width:  |  Height:  |  Size: 640 B

0
ferns/textures/not_in_use/ferns_fern_big_right.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 623 B

0
ferns/textures/not_in_use/ferns_fern_mid_left.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 393 B

After

Width:  |  Height:  |  Size: 393 B

0
ferns/textures/not_in_use/ferns_fern_mid_right.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 414 B

After

Width:  |  Height:  |  Size: 414 B

0
ferns/textures/not_in_use/ferns_fern_tree_bl.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 554 B

0
ferns/textures/not_in_use/ferns_fern_tree_br.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 544 B

View File

Before

Width:  |  Height:  |  Size: 681 B

After

Width:  |  Height:  |  Size: 681 B

0
ferns/textures/old/archaeplantae_fern_old4.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

0
ferns/textures/old/comb.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 112 B

After

Width:  |  Height:  |  Size: 112 B

0
ferns/textures/old/ferns_5_old.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 461 B

After

Width:  |  Height:  |  Size: 461 B

0
ferns/textures/old/ferns_6_old.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 700 B

After

Width:  |  Height:  |  Size: 700 B

0
ferns/textures/old/ferns_7_old.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 677 B

After

Width:  |  Height:  |  Size: 677 B

BIN
ferns/textures/old/ferns_fern_big_old.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
ferns/textures/old/ferns_fern_mid_old.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 664 B

BIN
ferns/textures/old/ferns_fern_tree_old.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

0
ferns/textures/old/ferns_fern_trunk_big_old2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 669 B

After

Width:  |  Height:  |  Size: 669 B

0
ferns/textures/old/ferns_fern_trunk_big_top_old.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 814 B

After

Width:  |  Height:  |  Size: 814 B

0
ferns/textures/old/ferns_fern_trunk_big_top_old2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 714 B

0
ferns/textures/old/ferns_fern_trunk_top_old.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 230 B

After

Width:  |  Height:  |  Size: 230 B

0
ferns/textures/old/ferns_horsetail_01_old2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 177 B

After

Width:  |  Height:  |  Size: 177 B

0
ferns/textures/old/ferns_horsetail_02_old2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 204 B

0
ferns/textures/old/ferns_horsetail_03_old2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 251 B

0
ferns/textures/old/ferns_horsetail_04_old2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

View File

Before

Width:  |  Height:  |  Size: 712 B

After

Width:  |  Height:  |  Size: 712 B

View File

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 457 B

BIN
ferns/textures/old/ferns_tree_fern_leave_big_old.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 B

After

Width:  |  Height:  |  Size: 518 B

25
ferns/treefern.lua Normal file → Executable file
View File

@ -4,7 +4,7 @@
-- by Mossmanikin
-- License (everything): WTFPL
-- Contains code from: biome_lib
-- Looked at code from: default , trees
-- Looked at code from: default , trees
-----------------------------------------------------------------------------------------------
assert(abstract_ferns.config.enable_treefern == true)
@ -17,14 +17,14 @@ abstract_ferns.grow_tree_fern = function(pos)
and minetest.get_node(pos_01).name ~= "default:junglegrass" then
return
end
local size = math.random(1, 4) + math.random(1, 4)
if (size > 5) then
size = 10 - size
end
size = size + 1
local crown = ({ "ferns:tree_fern_leaves", "ferns:tree_fern_leaves_02" })[math.random(1, 2)]
local i = 1
while (i < size-1) do
if minetest.get_node({x = pos.x, y = pos.y + i + 1, z = pos.z}).name ~= "air" then
@ -67,9 +67,9 @@ minetest.register_node("ferns:tree_fern_leaves", {
{
items = {"ferns:sapling_tree_fern"},
},
{
items = {"ferns:tree_fern_leaves"},
}
-- {
-- items = {"ferns:tree_fern_leaves"},
-- }
}
},
sounds = default.node_sound_leaves_defaults(),
@ -98,9 +98,9 @@ minetest.register_node("ferns:tree_fern_leaves_02", {
{
items = {"ferns:sapling_tree_fern"},
},
{
items = {"ferns:tree_fern_leaves"},
}
-- {
-- items = {"ferns:tree_fern_leaves"},
-- }
}
},
sounds = default.node_sound_leaves_defaults(),
@ -131,11 +131,10 @@ minetest.register_node("ferns:fern_trunk", {
},
groups = {tree=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
after_destruct = function(pos,oldnode)
after_dig_node = function(pos, oldnode, oldmetadata, digger)
local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
if node.name == "ferns:fern_trunk" then
minetest.dig_node({x=pos.x,y=pos.y+1,z=pos.z})
minetest.add_item(pos,"ferns:fern_trunk")
if node.name == "ferns:fern_trunk" then
minetest.node_dig({x=pos.x,y=pos.y+1,z=pos.z}, node, digger)
end
end,
})