1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-06-28 14:16:11 +02:00

128 Commits

Author SHA1 Message Date
4b291aabaf Waterlily and seagrass are now waving on top of water source 2025-04-22 12:56:02 +02:00
7aa9cef785 Add abstract_bushes namespace 2025-04-20 17:58:38 +02:00
6d096beca8 Merge remote-tracking branch 'upstream/master' 2024-09-15 09:40:56 +02:00
ef7d33f740 Remove biome_lib usage from vines (#66)
* stuff

* Increase spawn chances
2024-06-14 20:40:11 +02:00
5a8794cd84 make pebbles and their desert variant break with fist (#70) 2024-04-12 12:20:39 +02:00
f629f54d43 Is ground content revision (#69)
* bushes ground content

minetest default game treats all bush parts as ground
content, so we do that here too. The baskets however are
player made and placed, so they aren't ground content

* cavestuff ground content

Pebbles are given to mapgen as decorations, so they have
been left as ground content.
The stalactites are not ground content

* user 'placed' nodes -> not ground content

* ground content revision
2024-03-15 17:54:16 +01:00
455f891275 Optimize textures and delete unused textures (#68) 2023-12-23 23:45:46 +11:00
ee51e847df Fix startup crash caused by bad function call 2023-11-26 14:43:05 +01:00
cd93d09d01 Merge remote-tracking branch 'upstream/master' 2023-11-25 15:30:28 +01:00
54a3e1d98b patch ebiomes being bad by loading after it (#67) 2023-11-03 21:20:01 +01:00
a6c8e4a9d3 Remove biome_lib dep from pl_seaweed (#64)
* Remove biome_lib dep from pl_seaweed

* Push changes (new approach tomorrow)

* no.2
Co-authored-by: wsor4035 <24964441+wsor4035@users.noreply.github.com>
2023-10-27 11:45:01 -04:00
e9eb1f51e8 Re-add grow_reedmace to global namespace 2023-10-27 13:47:52 +02:00
fc1d05978e Remove biome lib from pl_waterlilies (#65)
* remove biome lib from pl_waterlilies

* Add rarity setting

---------

Co-authored-by: Niklp09 <89982526+Niklp09@users.noreply.github.com>
2023-10-27 09:29:04 +02:00
9aa5d85218 Reduce reemace spawn chance 2023-10-26 19:52:30 +02:00
fbd4aaf034 Remove biome_lib dep from dryplants (#63) 2023-10-26 11:53:09 -04:00
3fce92a9f5 Re-add simple spawn settings for some plants (#62)
* Red-add simple spawn settings for some plants

* Add pl_
2023-10-24 06:52:42 -04:00
46608a7fb9 Remove biome_lib dep from bushes (#61)
* Remove biome_lib dep from bushes

* Indent using tabs

* Add configurable spawn rarity
2023-10-23 19:33:59 -04:00
ab9a912598 bump min minetest version to 5.3.0 for is_creative_enabled 2023-09-24 16:55:42 +10:00
72572bb5c8 Use proper creative mode check (#59) 2023-09-23 13:18:18 -04:00
6a3c47157f Add protection check when digging vines (#58) 2023-08-30 23:30:10 +02:00
9e771e2988 Add attached_node group to poisonivy nodes (#56) 2023-08-28 11:34:00 +02:00
69e272cd64 Fix naming incositencies (#54)
* Fix naming incositencies

* Update translations
2023-07-23 15:51:09 -04:00
12cfbe3cb5 Luacheck things (#53)
* add luacheck workflow

* get rid of ancient settings in dryplants

* toss settings.txt code file

* get rid of settings in trunks

* Update .github/workflows/luacheck.yml

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

---------

Co-authored-by: OgelGames <olliverdc28@gmail.com>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2023-07-21 15:29:53 -04:00
2af1d996d2 replace biome_lib ABM's (#48)
* replace biome_lib ABM's

* fix some params

* remove 'group:flora' from poisonivy avoid list

* fixes
2023-07-21 11:09:53 -04:00
3b7fa4e8ea alias obsolete item 2023-07-21 11:06:06 -04:00
877d94dace remove biomelib usage from youngtrees (#52)
* remove biomelib usage from youngtrees

* remove unneeded settingtypes.txt file now
2023-07-21 08:16:57 -04:00
ded2685047 fix farming plus groups override 2023-07-19 23:34:31 -04:00
e58042acd0 use degrotate for sunflowers (#49) 2023-07-15 15:57:47 -04:00
f4185762d5 Some minor German translation fixes (#47) 2023-07-14 07:07:24 -04:00
c7f65aac83 cleanup codebase (#46)
* cleanup codebase

* fix typo

* add nil checks to on_place

* nuke all mod loaded statements
2023-07-10 18:24:25 -04:00
d9782771c3 remove biomelib usage from sunflowers (#44) 2023-07-09 16:14:45 -04:00
d483c2a1ae bump the number of spawnby in molehills decoration registration 2023-07-09 15:55:06 -04:00
c6b1ce5ca5 remove biome lib usage from molehills (#43) 2023-07-09 21:52:04 +02:00
23d04af7d6 remove biomelib dep from cavestuff (#42)
Co-authored-by: Niklp09 <89982526+Niklp09@users.noreply.github.com>
2023-07-09 15:14:43 -04:00
ac33f684b2 Merge remote-tracking branch 'upstream/master' 2023-06-07 22:23:22 +02:00
577404c850 fix https://github.com/mt-mods/plantlife_modpack/issues/38 - add use_texture_alpa param to nodes that have textures with alpa 2023-01-21 15:48:24 -05:00
a2cbc18351 fix upside-down vines ends (#37) 2022-11-12 20:22:16 -05:00
9483fee7b3 Added Esperanto translation (#36)
used the template.txt's
2022-11-06 12:53:16 -05:00
1894d91609 add node dig/placement predictions (#34) 2022-11-04 12:29:34 -04:00
438a1adb32 limit bush duping (#33)
only allow a chance of getting a 2nd bush from bushes with fruit, to prevent instant bush duping.
2022-11-04 12:28:33 -04:00
e159b843d2 restrict tree fern growth (#32) 2022-10-30 17:57:12 -04:00
6e842d9b0d add bush leaves to leaves group (#31) 2022-10-10 18:39:58 +02:00
8287ae2476 Add German translation (#29)
* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German transaltion

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add support for i18n

Add support for i18n, make loading translateable

* Add template for translation

* Add German translation

Add German translation
2022-09-01 21:02:37 -04:00
079a5c1ff8 Merge remote-tracking branch 'upstream/master' 2022-08-26 15:23:42 +02:00
ca2b47492e Merge pull request #28 from Niklp09/mushroom
overwrite wield_image's of mushrooms
2022-08-19 15:06:41 +02:00
f5490e3b58 overwrite wield_images's 2022-08-19 14:53:39 +02:00
156d31280a Merge remote-tracking branch 'upstream/master' 2022-06-25 16:53:46 +02:00
bde2082ee1 Texture update for vines to CC0 (#21)
* Texture update for vines to CC0

recreated the vines and rope textures and releasing them under CC0

* Minor tweaks to textures
2022-06-24 14:32:09 +03:00
d33907ca75 Fix typo in crafting recipes in trunks
Fixes #24 
Co-authored-by: A S Lewis <aslewis@cpan.org>
2022-06-08 22:03:52 +10:00
244d5da0e2 wear too when breaking vines (#22) 2022-05-28 17:35:42 -04:00
183c043066 Merge remote-tracking branch 'upstream/master' 2022-05-27 18:49:45 +02:00
8de8b889c2 fix typo in bushes mod.conf
fixes #17
2022-05-09 23:10:56 +10:00
1d71e2c64e fix https://github.com/mt-mods/plantlife_modpack/issues/16 2022-03-19 17:04:06 -04:00
3239650e68 Merge remote-tracking branch 'upstream/master' 2022-03-06 16:17:20 +01:00
d3edfbeace Merge pull request #14 from nixnoxus/fix_tree_fern_leave_big
fix felling `farns:fern_trunk_big`
2022-01-11 22:19:26 -05:00
c82ba38e68 Merge pull request #15 from nixnoxus/add_group_sapling
Add `group:sapling` for saplings in plantlife
2022-01-11 17:18:14 -05:00
031d5f4e4e add group sapling 2022-01-11 18:55:22 +01:00
32bab30e1f fix felling farns: fern_trunk_big 2022-01-10 19:32:04 +01:00
7094d8a369 Vines: Fix recipes and global variables (#13) 2021-12-28 14:45:05 +11:00
c990942ba2 fix https://github.com/mt-mods/plantlife_modpack/issues/11 2021-12-25 21:44:43 -05:00
4953b1ba54 Rarity / fertility tweaks for various mods (#8)
For bushes, molehills and youngtrees:
Changes to rarity and minimum fertility. Also added use of rarity_fertility. Result is more balanced and less homogeneous, i.e. over a large area you'll see variation.

For vines, some further tweaks to rarity, and using tries field to improve vines distribution.
2021-12-24 09:31:30 +01:00
cb2373f089 Trunks: Prevent crashing when unknown nodes exist (#9)
Extension of commit 9ed4771515

Co-authored-by: OgelGames <olliverdc28@gmail.com>
2021-12-16 20:10:36 +11:00
1a96ac87a7 Breaking up flowers_plus mod (#5)
Splitting up flowers_plus into separate mods for seaweed, sunflowers and waterlillies, for clarity and so the user can disable them individually.
Fixed sunflower maximum heat.
Removed spawning, as we're already creating these things at worldgen.
Added settings for rarity and max count to each mod - waterlilies, seaweed and sunflowers
Removing along_shore mod as it does nothing now.
2021-12-14 13:05:23 +01:00
a6dc4890d9 Vines: Fixed humidity, and set temperature. Also fixed a couple of issues with spawning: Roots are meant to spawn under dirt blocks, also vines were appearing on the side of snow. 2021-12-11 19:45:25 +01:00
a5b752f8b2 Merge pull request #3 from JordanL2/vines_mapgen
Vines overhaul
2021-12-07 17:21:17 -05:00
4c48e5be29 Update vines/init.lua
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2021-12-07 22:19:57 +00:00
a7d0e42cd1 Update vines/init.lua
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2021-12-07 22:19:49 +00:00
2e4e4a2412 Replace vines with air if they've been disabled for compatibility 2021-12-06 10:56:05 +00:00
1d3751d755 Avoid one node vines on top of trees. 2021-12-06 10:55:42 +00:00
e2486ca7f5 Adding default to boolean settings 2021-12-06 09:33:44 +00:00
98f0c6c20f Slight simplification of on_dig. Also minor fix to generating vines of a certain length. 2021-12-05 11:41:49 +00:00
54d3b669be Vines: Simplifying digging logic. 2021-12-05 11:08:51 +00:00
93265656cc Adding vine growth speed settings 2021-12-04 20:28:11 +00:00
c76fd45a2c Option to disable vines:vines item, as it seems pointless.
All recipes allow the vines group, so any vine end item will work.
2021-12-04 20:17:44 +00:00
c7d0fd3c53 Cutting vines with shears now gives the player the vine ends, so they can make their own vine farm 2021-12-04 18:53:39 +00:00
a66b82f1f0 Fixing growth. Vines now grow once every 3-6 minutes. 2021-12-04 17:56:28 +00:00
63914caed1 Removing attached_node from vine groups, as it was causing breaking one vine to break the vine all the way up to the top, instantly 2021-12-04 17:56:28 +00:00
ba98359dd0 When a vine is destroyed, ensure the remaining part of the vine ends with a vine end node. 2021-12-04 17:56:28 +00:00
6df36da4e1 Settings to disable any type of vine and vine rope. Settings to adjust rarity of vines. 2021-12-04 17:55:49 +00:00
28ef3e0c4b Vines now generated at mapgen time. Vines now generated as a vine of random length. 2021-12-04 17:55:08 +00:00
6bdb533906 Fix trunk duplication 2021-08-24 12:15:54 +02:00
c62610f544 Try to fix crash 2021-08-18 16:20:56 +02:00
8e2148ffc3 Merge remote-tracking branch 'upstream/master' 2021-07-24 13:12:23 +02:00
680b02f7e2 fix crash for sure this time 2021-07-19 23:56:47 -04:00
a2976c609a update all generate, spawn, and grow calls
to use "." instead of ":" notation
(quells all those "deprecated" warnings)
2021-07-19 14:18:01 -04:00
46717958bc use biome_lib.get_nodedef_field
instead of biome_lib:get_nodedef_field
(change `.` to `:`)
2021-07-19 14:08:57 -04:00
5ac025cda4 Merge remote-tracking branch 'upstream/master' 2021-07-03 17:29:19 +02:00
52b2d18523 make moss buildable_to
and make sunflower attached_node like other plants
2021-06-29 13:44:00 -04:00
efe869d386 Fix crash caused by the previous merge 2021-06-26 20:04:36 +02:00
b597f99014 Merge remote-tracking branch 'upstream/master' 2021-06-26 19:07:22 +02:00
bfd08f01c8 Just run the conversion LBM on every load
it won't take any appreciable CPU anyway if there's nothing to do.

Minetest seems to not new (or newly-renamed) LBMs when it should, when
it's set to only run once.  Also covers cases where a crash could
prevent mapblocks being checked later.
2021-06-23 21:09:48 -04:00
9ed4771515 fix rare edge-case where unknown nodes cause a crash
When a new mapblock is generated and the mod checks the neighbors around
a target to place a fallen twig, if it finds an unknown node (because
it's in a neighboring, old mapblock from a previous session -- perhaps
an old moss node that hadn't converted-over to wallmounted yet), trying
to check its buildable_to state will fail, since that requires that
there be a node def to look at, which an unknown node wouldn't have.

This substitutes a known not-buildable_to node for those cases, so that
the code won't try to overwrite what it found.
2021-06-23 21:03:06 -04:00
3f107a8067 renamed the LBM in case it got run at the wrong time
between mod updates; forces it to run again
(it's harmless to let it run twice)
2021-06-23 10:09:58 -04:00
b3cbd3df2e fix moss node drops 2021-06-21 05:21:34 -04:00
b1b4a08834 make pebbles fall when ground is dug. 2021-06-21 00:36:14 -04:00
f01e4bb55f Convert moss to wallmounted mode
I couldn't use leaf decay to make moss disappear when a trunk is dug,
because it breaks leaf decay on that tree's leaves: the leafdecay
function is not a true "register"- type function that can be run more
than once on a given trunk node, it's an all-or-nothing override and
only the last call for any given trunk actually sticks.

Since moss is... was facedir, attached_node didn't work right either, as
it doesn't have a mode to look for a vertical surface behind the
attached object (like how it works with wallmounted items), so this
converts moss to true wallmounted and uses attached_node like I
originally wanted.

To avoid losing the effect where moss can be rotated randomly when
generated, I registered 4 nodes for each moss type, with
increasingly-rotated textures.
2021-06-20 23:30:26 -04:00
637f96e215 Merge remote-tracking branch 'upstream/master' 2021-06-20 17:27:50 +02:00
7b4f54ead0 make youngtrees, bushes fall on dig,
make moss fall when the node holding it is dug,
and make trunk roots decay (exploiting the standard leafdecay function)
2021-06-19 20:36:36 -04:00
c061ef23cf Merge branch 'bls-197' into 'master'
Fixes bug with stalactite placement

See merge request VanessaE/plantlife_modpack!7
2021-06-07 17:04:31 +00:00
d87d8e51f5 Fixes bug with stalactite placement 2021-06-07 17:04:31 +00:00
fa9f30043f Merge remote-tracking branch 'upstream/master' 2021-04-08 13:38:00 +02:00
70df655a42 allow pebbles to spawn on a few more surface types 2021-04-06 04:09:34 -04:00
4876fc1265 let biome_lib place pebbles instead of using custom mapgen code 2021-04-06 04:08:41 -04:00
81b2b0898b don't use a function to pick random dry grasses
just use `biome_lib`'s random-choice table feature
(it was only there to let the mod replace junglegrass, but that's pointless
when junglegrass doesn't tend to spawn in the same areas)
2021-04-06 03:32:04 -04:00
d97f25e112 Merge remote-tracking branch 'upstream/master' 2021-02-13 14:19:21 +01:00
a750bac532 Merge branch 'master' into 'master'
Made woodsoils soils tillable.

See merge request VanessaE/plantlife_modpack!6
2021-02-07 23:29:08 +00:00
b4b24dedba Made woodsoils soils tillable. 2021-02-07 21:17:29 +01:00
86896848d5 Merge remote-tracking branch 'upstream/master' 2020-12-03 20:55:06 +01:00
5b66d54632 Add protection check when placing twigs from trunks mod 2020-07-24 23:14:34 +02:00
031260a62d [youngtrees] Optimize math.random call function 2020-07-24 00:08:50 +02:00
d4e83d7e78 [trunks] Tidy code and disable auto roof corners ABM 2020-07-24 00:03:48 +02:00
8d65559828 [nature_classic] Optimize math.random call function 2020-07-23 23:10:37 +02:00
ec8132b06c [flowers_plus] Optimize math.random call function 2020-07-23 23:02:17 +02:00
4dcf14ce1f [ferns] Optimize math.random call function 2020-07-23 22:59:08 +02:00
d7b543f5d7 [dryplants] Tidy code 2020-07-23 22:45:28 +02:00
f661500cb3 [cavestuff] Optimize math.* call functions 2020-07-23 22:14:52 +02:00
c2681261e0 [bushes_classic] Optimize math.random call function 2020-07-23 22:10:33 +02:00
2c433e0b57 [bushes] Tidy code 2020-07-23 22:05:25 +02:00
1f52bbea19 [vines] Optimize math.random call function 2020-07-23 21:23:51 +02:00
10ff005066 Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-14 21:13:14 +02:00
80b548535a Merge branch 'master' of yunohost.local:mtcontrib/plantlife_modpack into nalc-1.2-dev 2020-03-25 23:11:23 +01:00
45a8064d3d Merge branch 'master' of yunohost.local:mtcontrib/plantlife_modpack into nalc-1.2-dev 2019-12-22 14:34:30 +01:00
1696d8bd8f Merge branch 'master' into nalc-1.2 2019-06-09 13:43:28 +02:00
091ce416d0 [trunks] Ajoute moss et moss_fungus dans le groupe attached_node.
* Permet de les dropper quand on récolte le bloc où ils sont attachés.
2019-04-26 20:00:38 +02:00
5dfa02c037 Réécriture de la récolte des fougères arborescentes.
* Cette réécriture emploi une méthode similaire à la récolte du papyrus.
2019-04-12 20:01:22 +02:00
8b42a45d78 Merge branch 'master' into nalc-1.1 2019-04-12 18:33:42 +02:00
b6ed0316b7 Corrige la duplication infinie des ferns trunk 2019-02-09 01:01:36 +01:00
114eaff7f1 Ajoute quelques messages de chargement de mods dans le journal "action" 2019-01-05 22:50:35 +01:00
322 changed files with 2683 additions and 2501 deletions

13
.github/workflows/luacheck.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: luacheck
on: [push, pull_request]
jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./

1
.gitignore vendored
View File

@ -1 +0,0 @@
*~

View File

@ -1,14 +1,21 @@
unused_args = false unused_args = false
allow_defined_top = true allow_defined_top = true
max_line_length = 185
read_globals = { exclude_files = {".luacheckrc"}
globals = {
"biome_lib", "biome_lib",
"DIR_DELIM", "bushes_classic",
"minetest", "core",
"dump",
"vector", "nodeupdate",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
"default",
} }
read_globals = {
table = {fields = {"copy"}},
"minetest", "ItemStack",
"vector",
"default",
"moretrees",
"dump",
}

View File

@ -1,7 +1,5 @@
-- 3D Mushroom mod by VanessaE -- 3D Mushroom mod by VanessaE
mushroom = {}
minetest.override_item("flowers:mushroom_fertile_brown", { minetest.override_item("flowers:mushroom_fertile_brown", {
drawtype = "mesh", drawtype = "mesh",
mesh = "3dmushrooms.obj", mesh = "3dmushrooms.obj",
@ -10,7 +8,8 @@ minetest.override_item("flowers:mushroom_fertile_brown", {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
}, },
inventory_image = "3dmushrooms_brown_inv.png" inventory_image = "3dmushrooms_brown_inv.png",
wield_image = "3dmushrooms_brown_inv.png"
}) })
minetest.override_item("flowers:mushroom_brown", { minetest.override_item("flowers:mushroom_brown", {
@ -21,7 +20,8 @@ minetest.override_item("flowers:mushroom_brown", {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
}, },
inventory_image = "3dmushrooms_brown_inv.png" inventory_image = "3dmushrooms_brown_inv.png",
wield_image = "3dmushrooms_brown_inv.png"
}) })
minetest.override_item("flowers:mushroom_fertile_red", { minetest.override_item("flowers:mushroom_fertile_red", {
@ -32,7 +32,8 @@ minetest.override_item("flowers:mushroom_fertile_red", {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
}, },
inventory_image = "3dmushrooms_red_inv.png" inventory_image = "3dmushrooms_red_inv.png",
wield_image = "3dmushrooms_red_inv.png"
}) })
minetest.override_item("flowers:mushroom_red", { minetest.override_item("flowers:mushroom_red", {
@ -43,7 +44,8 @@ minetest.override_item("flowers:mushroom_red", {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
}, },
inventory_image = "3dmushrooms_red_inv.png" inventory_image = "3dmushrooms_red_inv.png",
wield_image = "3dmushrooms_red_inv.png"
}) })
-- aliases to the default mushrooms -- aliases to the default mushrooms
@ -61,5 +63,3 @@ minetest.register_alias("mushroom:spore1", "flowers:mushroom_spores_red")
minetest.register_alias("mushroom:poison", "flowers:mushroom_red") minetest.register_alias("mushroom:poison", "flowers:mushroom_red")
minetest.register_alias("mushroom:identifier", "default:mese_crystal_fragment") minetest.register_alias("mushroom:identifier", "default:mese_crystal_fragment")
print("[3D Mushrooms] loaded.")

View File

@ -1,2 +1,2 @@
name = 3dmushrooms name = 3dmushrooms
depends = default, flowers depends = flowers

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -1,9 +0,0 @@
-----------------------------------------------------------------------------------------------
local title = "Along the Shore"
local version = "0.0.4"
local mname = "along_shore"
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -1,3 +0,0 @@
name = along_shore
depends = default, biome_lib
optional_depends = flowers_plus

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 B

View File

@ -1,30 +0,0 @@
-------------------------------------------------------------
Credit for textures of "along_shore"
-------------------------------------------------------------
(If more than one author is listed the names are in alphabetical order)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOLDER TEXTURE AUTHORS
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
../along_shore/textures along_shore_seaweed_1Darker.png Neuromancer, VanessaE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
../along_shore/textures/old (along_shore_empty.png) (Mossmanikin)
along_shore_lilypads_1.png Mossmanikin, Neuromancer
along_shore_lilypads_2.png Mossmanikin, Neuromancer
along_shore_lilypads_3.png Mossmanikin, Neuromancer
along_shore_lilypads_4.png Mossmanikin, Neuromancer
along_shore_pondscum_1.png Neuromancer
along_shore_seaweed_1.png Neuromancer, VanessaE
along_shore_seaweed_2.png Mossmanikin, Neuromancer, VanessaE
along_shore_seaweed_3.png Mossmanikin, Neuromancer, VanessaE
along_shore_seaweed_4.png Mossmanikin, Neuromancer, VanessaE
flowers_seaweed.png Neuromancer, VanessaE
flowers_waterlily.png Mossmanikin, VanessaE
flowers_waterlily_22.5.png Mossmanikin, VanessaE
flowers_waterlily_45.png Mossmanikin, VanessaE
flowers_waterlily_67.5.png Mossmanikin, VanessaE
lillypad3Flower16x.png Neuromancer
LillyPad3x16.png Neuromancer
lillyPad5x16.png Neuromancer
MultiLilly16x.png Neuromancer
pondscum16xc.png Neuromancer
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 543 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 543 B

View File

@ -8,33 +8,34 @@
-- support for i18n -- support for i18n
local S = minetest.get_translator("bushes") local S = minetest.get_translator("bushes")
abstract_bushes = {}
minetest.register_node("bushes:youngtree2_bottom", { local bush_rarity = minetest.settings:get("bushes.bush_rarity") or 0.008
local youngtree_rarity = minetest.settings:get("youngtree.bush_rarity") or 0.006
minetest.register_node("bushes:youngtree2_bottom", {
description = S("Young Tree 2 (bottom)"), description = S("Young Tree 2 (bottom)"),
drawtype="nodebox", drawtype="nodebox",
tiles = {"bushes_youngtree2trunk.png"}, tiles = {"bushes_youngtree2trunk.png"},
inventory_image = "bushes_youngtree2trunk_inv.png", inventory_image = "bushes_youngtree2trunk_inv.png",
wield_image = "bushes_youngtree2trunk_inv.png", wield_image = "bushes_youngtree2trunk_inv.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
is_ground_content = true, is_ground_content = true,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
--{0.375000,-0.500000,-0.500000,0.500000,0.500000,-0.375000}, --NodeBox 1 {-0.0612,-0.500000,-0.500000,0.0612,0.500000,-0.375000}, --NodeBox 1
{-0.0612,-0.500000,-0.500000,0.0612,0.500000,-0.375000}, --NodeBox 1 }
} },
}, groups = {snappy=3,flammable=2,attached_node=1},
groups = {snappy=3,flammable=2},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
drop = 'default:stick' drop = 'default:stick'
}) })
local BushBranchCenter = { {1,1}, {3,2} } local BushBranchCenter = { {1,1}, {3,2} }
for i in pairs(BushBranchCenter) do for i in pairs(BushBranchCenter) do
local Num = BushBranchCenter[i][1] local Num = BushBranchCenter[i][1]
local TexNum = BushBranchCenter[i][2] local TexNum = BushBranchCenter[i][2]
minetest.register_node("bushes:bushbranches"..Num, { minetest.register_node("bushes:bushbranches"..Num, {
description = S("Bush Branches @1", Num), description = S("Bush Branches @1", Num),
drawtype = "nodebox", drawtype = "nodebox",
@ -42,6 +43,7 @@ for i in pairs(BushBranchCenter) do
"bushes_leaves_"..TexNum..".png", "bushes_leaves_"..TexNum..".png",
"bushes_branches_center_"..TexNum..".png" "bushes_branches_center_"..TexNum..".png"
}, },
use_texture_alpha = "clip",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -55,23 +57,24 @@ for i in pairs(BushBranchCenter) do
}, },
inventory_image = "bushes_branches_center_"..TexNum..".png", inventory_image = "bushes_branches_center_"..TexNum..".png",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true, sunlight_propagates = true,
groups = { groups = {
-- tree=1, -- MM: disabled because some recipes use group:tree for trunks -- tree=1, -- MM: disabled because some recipes use group:tree for trunks
snappy=3, snappy=3,
flammable=2, flammable=2,
leaves=1 leaves=1,
attached_node=1
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
drop = 'default:stick 4' drop = 'default:stick 4'
}) })
end end
local BushBranchSide = { {2,1}, {4,2} } local BushBranchSide = { {2,1}, {4,2} }
for i in pairs(BushBranchSide) do for i in pairs(BushBranchSide) do
local Num = BushBranchSide[i][1] local Num = BushBranchSide[i][1]
local TexNum = BushBranchSide[i][2] local TexNum = BushBranchSide[i][2]
minetest.register_node("bushes:bushbranches"..Num, { minetest.register_node("bushes:bushbranches"..Num, {
description = S("Bush Branches @1", Num), description = S("Bush Branches @1", Num),
drawtype = "nodebox", drawtype = "nodebox",
@ -80,16 +83,17 @@ for i in pairs(BushBranchSide) do
--[[bottom]]"bushes_branches_center_"..TexNum..".png", --[[bottom]]"bushes_branches_center_"..TexNum..".png",
--[[right]] "bushes_branches_left_"..TexNum..".png", --[[right]] "bushes_branches_left_"..TexNum..".png",
--[[left]] "bushes_branches_right_"..TexNum..".png", -- MM: We could also mirror the previous here, --[[left]] "bushes_branches_right_"..TexNum..".png", -- MM: We could also mirror the previous here,
--[[back]] "bushes_branches_center_"..TexNum..".png",-- unless U really want 'em 2 B different --[[back]] "bushes_branches_center_"..TexNum..".png",-- unless U really want 'em 2 B different
--[[front]] "bushes_branches_right_"..TexNum..".png" --[[front]] "bushes_branches_right_"..TexNum..".png"
}, },
use_texture_alpha = "clip",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
-- { left , bottom , front, right , top , back } -- { left , bottom , front, right , top , back }
{0.137748,-0.491944, 0.5 ,-0.125000,-0.179444,-0.007790}, --NodeBox 1 {0.137748,-0.491944, 0.5 ,-0.125000,-0.179444,-0.007790}, --NodeBox 1
{0.262748,-0.185995, 0.5 ,-0.237252, 0.126505,-0.260269}, --NodeBox 2 {0.262748,-0.185995, 0.5 ,-0.237252, 0.126505,-0.260269}, --NodeBox 2
{0.500000, 0.125000, 0.5 ,-0.500000, 0.500000,-0.500000}, --NodeBox 3 {0.500000, 0.125000, 0.5 ,-0.500000, 0.500000,-0.500000}, --NodeBox 3
}, },
}, },
selection_box = { selection_box = {
@ -98,75 +102,45 @@ for i in pairs(BushBranchSide) do
}, },
inventory_image = "bushes_branches_right_"..TexNum..".png", inventory_image = "bushes_branches_right_"..TexNum..".png",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true, sunlight_propagates = true,
groups = { groups = {
-- tree=1, -- MM: disabled because some recipes use group:tree for trunks -- tree=1, -- MM: disabled because some recipes use group:tree for trunks
snappy=3, snappy=3,
flammable=2, flammable=2,
leaves=1 leaves=1,
attached_node=1
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
drop = 'default:stick 3' drop = 'default:stick 3'
}) })
end end
local BushLeafNode = { {1}, {2}} local BushLeafNode = { {1}, {2}}
for i in pairs(BushLeafNode) do for i in pairs(BushLeafNode) do
local Num = BushLeafNode[i][1] local Num = BushLeafNode[i][1]
minetest.register_node("bushes:BushLeaves"..Num, { minetest.register_node("bushes:BushLeaves"..Num, {
description = S("Bush Leaves @1", Num), description = S("Bush Leaves @1", Num),
drawtype = "allfaces_optional", drawtype = "allfaces_optional",
tiles = {"bushes_leaves_"..Num..".png"}, tiles = {"bushes_leaves_"..Num..".png"},
use_texture_alpha = "clip",
paramtype = "light", paramtype = "light",
groups = { -- MM: Should we add leafdecay? groups = { -- MM: Should we add leafdecay?
snappy=3, snappy=3,
flammable=2, flammable=2,
attached_node=1 attached_node=1,
leaves=1
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
end end
abstract_bushes.grow_bush = function(pos) local function grow_bush_node(pos, dir, leaf_type)
local leaf_type = math.random(1,2)
local bush_side_height = math.random(0,1)
local chance_of_bush_node_right = math.random(1,10)
if chance_of_bush_node_right> 5 then
local right_pos = {x=pos.x+1, y=pos.y+bush_side_height, z=pos.z}
abstract_bushes.grow_bush_node(right_pos,3,leaf_type)
end
local chance_of_bush_node_left = math.random(1,10)
if chance_of_bush_node_left> 5 then
bush_side_height = math.random(0,1)
local left_pos = {x=pos.x-1, y=pos.y+bush_side_height, z=pos.z}
abstract_bushes.grow_bush_node(left_pos,1,leaf_type)
end
local chance_of_bush_node_front = math.random(1,10)
if chance_of_bush_node_front> 5 then
bush_side_height = math.random(0,1)
local front_pos = {x=pos.x, y=pos.y+bush_side_height, z=pos.z+1}
abstract_bushes.grow_bush_node(front_pos,2,leaf_type)
end
local chance_of_bush_node_back = math.random(1,10)
if chance_of_bush_node_back> 5 then
bush_side_height = math.random(0,1)
local back_pos = {x=pos.x, y=pos.y+bush_side_height, z=pos.z-1}
abstract_bushes.grow_bush_node(back_pos,0,leaf_type)
end
abstract_bushes.grow_bush_node(pos,5,leaf_type)
end
abstract_bushes.grow_bush_node = function(pos,dir, leaf_type)
local right_here = {x=pos.x, y=pos.y+1, z=pos.z} local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
local above_right_here = {x=pos.x, y=pos.y+2, z=pos.z} local above_right_here = {x=pos.x, y=pos.y+2, z=pos.z}
local bush_branch_type = 2 local bush_branch_type = 2
-- MM: I'm not sure if it's slower now than before...
if dir ~= 5 and leaf_type == 1 then if dir ~= 5 and leaf_type == 1 then
bush_branch_type = 2 bush_branch_type = 2
end end
@ -182,79 +156,169 @@ abstract_bushes.grow_bush_node = function(pos,dir, leaf_type)
dir = 1 dir = 1
end end
if minetest.get_node(right_here).name == "air" -- instead of check_air = true, local nodename = minetest.get_node(right_here).name
or minetest.get_node(right_here).name == "default:junglegrass" then if nodename == "air" or nodename == "default:junglegrass" then -- instead of check_air = true,
minetest.swap_node(right_here, {name="bushes:bushbranches"..bush_branch_type , param2=dir}) minetest.swap_node(right_here, {name="bushes:bushbranches"..bush_branch_type , param2=dir})
--minetest.chat_send_all("leaf_type: (" .. leaf_type .. ")")
minetest.swap_node(above_right_here, {name="bushes:BushLeaves"..leaf_type}) minetest.swap_node(above_right_here, {name="bushes:BushLeaves"..leaf_type})
local chance_of_high_leaves = math.random(1,10) local chance_of_high_leaves = math.random(1,10)
if chance_of_high_leaves> 5 then if chance_of_high_leaves > 5 then
local two_above_right_here = {x=pos.x, y=pos.y+3, z=pos.z} local two_above_right_here = {x=pos.x, y=pos.y+3, z=pos.z}
--minetest.chat_send_all("leaf_type: (" .. leaf_type .. ")")
minetest.swap_node(two_above_right_here, {name="bushes:BushLeaves"..leaf_type}) minetest.swap_node(two_above_right_here, {name="bushes:BushLeaves"..leaf_type})
end end
end end
end end
local function grow_bush(pos)
-- replace possible grass nodes
minetest.swap_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="air"})
biome_lib:register_generate_plant({ local leaf_type = math.random(1,2)
surface = { local bush_side_height = math.random(0,1)
local chance_of_bush_node_right = math.random(1,10)
if chance_of_bush_node_right > 5 then
local right_pos = {x=pos.x+1, y=pos.y+bush_side_height, z=pos.z}
grow_bush_node(right_pos,3,leaf_type)
end
local chance_of_bush_node_left = math.random(1,10)
if chance_of_bush_node_left > 5 then
local left_pos = {x=pos.x-1, y=pos.y+bush_side_height, z=pos.z}
grow_bush_node(left_pos,1,leaf_type)
end
local chance_of_bush_node_front = math.random(1,10)
if chance_of_bush_node_front > 5 then
local front_pos = {x=pos.x, y=pos.y+bush_side_height, z=pos.z+1}
grow_bush_node(front_pos,2,leaf_type)
end
local chance_of_bush_node_back = math.random(1,10)
if chance_of_bush_node_back > 5 then
local back_pos = {x=pos.x, y=pos.y+bush_side_height, z=pos.z-1}
grow_bush_node(back_pos,0,leaf_type)
end
grow_bush_node(pos,5,leaf_type)
end
minetest.register_decoration({
name = "bushes:bush",
decoration = {
"air"
},
fill_ratio = bush_rarity,
y_min = 1,
y_max = 40,
place_on = {
"default:dirt_with_grass", "default:dirt_with_grass",
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:peat", "sumpf:peat",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = 15, --10,15 deco_type = "simple",
rarity = 101 - 4, --3,4 flags = "all_floors",
min_elevation = 1, -- above sea level })
plantlife_limit = -0.9,
},
abstract_bushes.grow_bush
)
abstract_bushes.grow_youngtree2 = function(pos) --[[
local height = math.random(4,5) this is purposefully wrapped in a on mods loaded callback to that it gets the proper ids
abstract_bushes.grow_youngtree_node2(pos,height) if other mods clear the registered decorations
end ]]
local did
minetest.register_on_mods_loaded(function()
did = minetest.get_decoration_id("bushes:bush")
minetest.set_gen_notify("decoration", {did})
end)
abstract_bushes.grow_youngtree_node2 = function(pos, height) minetest.register_on_generated(function(minp, maxp, blockseed)
local g = minetest.get_mapgen_object("gennotify")
local locations = {}
local deco_locations = g["decoration#" .. did] or {}
for _, pos in pairs(deco_locations) do
locations[#locations+1] = pos
end
if #locations == 0 then return end
for _, pos in ipairs(locations) do
grow_bush(pos)
end
end)
local function grow_youngtree_node2(pos, height)
local right_here = {x=pos.x, y=pos.y+1, z=pos.z} local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
local above_right_here = {x=pos.x, y=pos.y+2, z=pos.z} local above_right_here = {x=pos.x, y=pos.y+2, z=pos.z}
local two_above_right_here = {x=pos.x, y=pos.y+3, z=pos.z} local two_above_right_here = {x=pos.x, y=pos.y+3, z=pos.z}
local three_above_right_here = {x=pos.x, y=pos.y+4, z=pos.z} local three_above_right_here = {x=pos.x, y=pos.y+4, z=pos.z}
if minetest.get_node(right_here).name == "air" -- instead of check_air = true, local nodename = minetest.get_node(right_here).name
or minetest.get_node(right_here).name == "default:junglegrass" then if nodename == "air" or nodename == "default:junglegrass" then -- instead of check_air = true,
if height == 4 then if height == 4 then
local two_above_right_here_south = {x=pos.x, y=pos.y+3, z=pos.z-1} local two_above_right_here_south = {x=pos.x, y=pos.y+3, z=pos.z-1}
local three_above_right_here_south = {x=pos.x, y=pos.y+4, z=pos.z-1} local three_above_right_here_south = {x=pos.x, y=pos.y+4, z=pos.z-1}
minetest.swap_node(right_here, {name="bushes:youngtree2_bottom"})
minetest.swap_node(above_right_here, {name="bushes:youngtree2_bottom"})
minetest.swap_node(two_above_right_here, {name="bushes:bushbranches2" , param2=2})
minetest.swap_node(two_above_right_here_south, {name="bushes:bushbranches2" , param2=0})
minetest.swap_node(three_above_right_here, {name="bushes:BushLeaves1" })
minetest.swap_node(three_above_right_here_south, {name="bushes:BushLeaves1" })
end
minetest.swap_node(right_here, {name="bushes:youngtree2_bottom"})
minetest.swap_node(above_right_here, {name="bushes:youngtree2_bottom"})
minetest.swap_node(two_above_right_here, {name="bushes:bushbranches2" , param2=2})
minetest.swap_node(two_above_right_here_south, {name="bushes:bushbranches2" , param2=0})
minetest.swap_node(three_above_right_here, {name="bushes:BushLeaves1" })
minetest.swap_node(three_above_right_here_south, {name="bushes:BushLeaves1" })
end
end end
end end
local function grow_youngtree2(pos)
local height = math.random(4,5)
grow_youngtree_node2(pos,height)
end
biome_lib:register_generate_plant({ -- NALC purposes
surface = { abstract_bushes = {}
abstract_bushes.grow_youngtree2 = grow_youngtree2
--
minetest.register_decoration({
name = "bushes:youngtree",
decoration = {
"air"
},
fill_ratio = youngtree_rarity,
y_min = 1,
y_max = 40,
place_on = {
"default:dirt_with_grass", "default:dirt_with_grass",
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:peat", "sumpf:peat",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = 55, --10,15 deco_type = "simple",
rarity = 101 - 4, --3,4 flags = "all_floors",
min_elevation = 1, -- above sea level })
plantlife_limit = -0.9,
},
abstract_bushes.grow_youngtree2
)
--http://dev.minetest.net/Node_Drawtypes --[[
this is purposefully wrapped in a on mods loaded callback to that it gets the proper ids
if other mods clear the registered decorations
]]
local did2
minetest.register_on_mods_loaded(function()
did2 = minetest.get_decoration_id("bushes:youngtree")
minetest.set_gen_notify("decoration", {did2})
end)
minetest.register_on_generated(function(minp, maxp, blockseed)
local g = minetest.get_mapgen_object("gennotify")
local locations = {}
local deco_locations = g["decoration#" .. did2] or {}
for _, pos in pairs(deco_locations) do
locations[#locations+1] = pos
end
if #locations == 0 then return end
for _, pos in ipairs(locations) do
grow_youngtree2(pos)
end
end)
minetest.log("action", "[bushes] loaded.")

View File

@ -0,0 +1,4 @@
# textdomain: bushes
Young Tree 2 (bottom)=Strauch 2 (Ansatz)
Bush Branches @1=Buschäste @1
Bush Leaves @1=Buschblätter @1

View File

@ -0,0 +1,4 @@
# textdomain: bushes
Young Tree 2 (bottom)=Juna Arbo 2 (malsupro)
Bush Branches @1=Arbustaj Branĉoj @1
Bush Leaves @1=Arbustaj Folioj @1

View File

@ -1,11 +1,4 @@
# textdomain: bushes # textdomain: bushes
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# fat115 <fat115@framasoft.org>, 2017.
#
Young Tree 2 (bottom)=Arbuste 2 (bas) Young Tree 2 (bottom)=Arbuste 2 (bas)
Bush Branches @1=Branches de buisson @1 Bush Branches @1=Branches de buisson @1
Bush Leaves @1=Feuilles de buisson @1 Bush Leaves @1=Feuilles de buisson @1

View File

@ -1,10 +1,4 @@
# textdomain: bushes # textdomain: bushes
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
Young Tree 2 (bottom)= Young Tree 2 (bottom)=
Bush Branches @1= Bush Branches @1=
Bush Leaves @1= Bush Leaves @1=

View File

@ -1,3 +1,4 @@
name = bushes name = bushes
depends = default, biome_lib title = Bushes
optional_depends = stonage, sumpf depends = default
optional_depends = stoneage, sumpf, ebiomes

5
bushes/settingtypes.txt Normal file
View File

@ -0,0 +1,5 @@
# Bush rarity (higher number -> higher probability)
bushes.bush_rarity (Bush rarity) float 0.008 0.0001 1
# Youngtree rarity (higher number -> higher probability)
bushes.youngtree_rarity (Youngtree rarity) float 0.006 0.0001 1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 609 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 525 B

View File

@ -33,9 +33,12 @@ end
-- override farming_plus strawberry and add food_ group -- override farming_plus strawberry and add food_ group
if minetest.get_modpath("farming_plus") then if minetest.get_modpath("farming_plus") then
local groups = table.copy(minetest.registered_items["farming_plus:strawberry_item"].groups)
groups["food_strawberry"] = 1
groups["food_berry"] = 1
minetest.override_item("farming_plus:strawberry_item", { minetest.override_item("farming_plus:strawberry_item", {
groups = {food_strawberry = 1, food_berry = 1, flammable = 2}, groups = groups,
}) })
end end

View File

@ -7,7 +7,7 @@ bushes_classic = {}
local S = minetest.get_translator("bushes_classic") local S = minetest.get_translator("bushes_classic")
bushes_classic.bushes = { bushes_classic.bushes = {
"strawberry", "strawberry",
"blackberry", "blackberry",
"blueberry", "blueberry",
"raspberry", "raspberry",
@ -30,12 +30,19 @@ local modpath = minetest.get_modpath('bushes_classic')
dofile(modpath..'/cooking.lua') dofile(modpath..'/cooking.lua')
dofile(modpath..'/nodes.lua') dofile(modpath..'/nodes.lua')
biome_lib:spawn_on_surfaces({ local spawn_plants = bushes_classic.spawn_list
spawn_delay = 3600,
spawn_plants = bushes_classic.spawn_list, local function get_biome_data(pos, perlin_fertile)
avoid_radius = 10, local fertility = perlin_fertile:get_2d({x=pos.x, y=pos.z})
spawn_chance = 100,
spawn_surfaces = { local data = minetest.get_biome_data(pos)
-- Original values this method returned were +1 (lowest) to -1 (highest)
-- so we need to convert the 0-100 range from get_biome_data() to that.
return fertility, 1 - (data.heat / 100 * 2), 1 - (data.humidity / 100 * 2)
end
minetest.register_abm({
nodenames = {
"default:dirt_with_grass", "default:dirt_with_grass",
"woodsoils:dirt_with_leaves_1", "woodsoils:dirt_with_leaves_1",
"woodsoils:grass_with_leaves_1", "woodsoils:grass_with_leaves_1",
@ -43,16 +50,31 @@ biome_lib:spawn_on_surfaces({
"farming:soil", "farming:soil",
"farming:soil_wet" "farming:soil_wet"
}, },
avoid_nodes = {"group:bush"}, interval = 3600,
seed_diff = 545342534, -- chosen by a fair mashing of the keyboard - guaranteed to be random :P chance = 100,
plantlife_limit = -0.1, label = "[bushes_classic] spawn bushes",
light_min = 10, min_y = -16,
temp_min = 0.15, -- approx 20C max_y = 48,
temp_max = -0.15, -- approx 35C action = function(pos, node)
humidity_min = 0, -- 50% RH local p_top = {x = pos.x, y = pos.y + 1, z = pos.z}
humidity_max = -1, -- 100% RH local n_top = minetest.get_node_or_nil(p_top)
if not n_top or n_top.name ~= "air" then return end
local perlin_fertile_area = minetest.get_perlin(545342534, 3, 0.6, 100)
local fertility, temperature, humidity = get_biome_data(pos, perlin_fertile_area)
local pos_biome_ok = fertility > -0.1 and temperature <= 0.15 and temperature >= -0.15 and humidity <= 0 and humidity >= -1
if not pos_biome_ok then return end
if minetest.find_node_near(p_top, 10 + math.random(-1.5,2), {"group:bush"}) then
return -- Nodes to avoid are nearby
end
local plant_to_spawn = spawn_plants[math.random(1, #spawn_plants)]
minetest.swap_node(p_top, {name = plant_to_spawn, param2 = 0})
end
}) })
minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry") minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
print("[Bushes] Loaded.")

View File

@ -1,46 +1,39 @@
# textdomain: bushes_classic # textdomain: bushes_classic
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Xanthin, 2017.
#
Sugar=Zucker Sugar=Zucker
Basket with Strawberry pies=Korb mit Erdbeertorten
Cooked Strawberry pie=Erdbeertorte
Raw Strawberry pie=Rohe Erdbeertorte
Slice of Strawberry pie=Erdbeertortenstueck
Strawberry=Erdbeere Strawberry=Erdbeere
Raw Strawberry pie=Rohe Erdbeertorte
Cooked Strawberry pie=Erdbeertorte
Slice of Strawberry pie=Erdbeertortenstück
Basket with Strawberry pies=Korb mit Erdbeertorten
Strawberry Bush=Erdbeerbusch Strawberry Bush=Erdbeerbusch
Basket with Blackberry pies=Korb mit Brombeertorten
Blackberry=Brombeere Blackberry=Brombeere
Blackberry Bush=Brombeerbusch
Cooked Blackberry pie=Brombeertorte
Raw Blackberry pie=Rohe Brombeertorte Raw Blackberry pie=Rohe Brombeertorte
Slice of Blackberry pie=Brombeertortenstueck Cooked Blackberry pie=Brombeertorte
Basket with Blueberry pies=Korb mit Blaubeertorten Slice of Blackberry pie=Brombeertortenstück
Basket with Blackberry pies=Korb mit Brombeertorten
Blackberry Bush=Brombeerbusch
Blueberry=Blaubeere Blueberry=Blaubeere
Blueberry Bush=Blaubeerbusch
Cooked Blueberry pie=Blaubeertorte
Raw Blueberry pie=Rohe Blaubeertorte Raw Blueberry pie=Rohe Blaubeertorte
Slice of Blueberry pie=Blaubeertortenstueck Cooked Blueberry pie=Blaubeertorte
Basket with Raspberry pies=Korb mit Himbeertorten Slice of Blueberry pie=Blaubeertortenstück
Cooked Raspberry pie=Himbeertorte Basket with Blueberry pies=Korb mit Blaubeertorten
Blueberry Bush=Blaubeerbusch
Raspberry=Himbeere Raspberry=Himbeere
Raspberry Bush=Himbeerbusch
Raw Raspberry pie=Rohe Himbeertorte Raw Raspberry pie=Rohe Himbeertorte
Slice of Raspberry pie=Himbeertortenstueck Cooked Raspberry pie=Himbeertorte
Basket with Gooseberry pies=Korb mit Stachelbeertorten Slice of Raspberry pie=Himbeertortenstück
Cooked Gooseberry pie=Stachelbeertorte Basket with Raspberry pies=Korb mit Himbeertorten
Raspberry Bush=Himbeerbusch
Gooseberry=Stachelbeere Gooseberry=Stachelbeere
Gooseberry Bush=Stachelbeerbusch
Raw Gooseberry pie=Rohe Stachelbeertorte Raw Gooseberry pie=Rohe Stachelbeertorte
Slice of Gooseberry pie=Stachelbeertortenstueck Cooked Gooseberry pie=Stachelbeertorte
Basket with Mixed Berry pies=Korb mit Beerenmixtorten Slice of Gooseberry pie=Stachelbeertortenstück
Cooked Mixed Berry pie=Beerenmixtorte Basket with Gooseberry pies=Korb mit Stachelbeertorten
Currently fruitless Bush=zur Zeit fruechteloser Gooseberry Bush=Stachelbeerbusch
Mixed Berry=Beerenmix Mixed Berry=Beerenmix
Raw Mixed Berry pie=Rohe Beerenmixtorte Raw Mixed Berry pie=Rohe Beerenmixtorte
Slice of Mixed Berry pie=Beerenmixtortenstueck Cooked Mixed Berry pie=Beerenmixtorte
Slice of Mixed Berry pie=Beerenmixtortenstück
Basket with Mixed Berry pies=Korb mit Beerenmixtorten
Currently fruitless Bush=Zur Zeit früchteloser Busch
Basket=Korb Basket=Korb

View File

@ -0,0 +1,39 @@
# textdomain: bushes_classic
Sugar=Sukero
Strawberry=Frago
Raw Strawberry pie=Kruda Fragokuko
Cooked Strawberry pie=Kuirita Fragokuko
Slice of Strawberry pie=Tranĉaĵo de Fragokuko
Basket with Strawberry pies=Korbo kun Fragokukoj
Strawberry Bush=Fraga Arbusto
Blackberry=Rubuso
Raw Blackberry pie=Kruda Rubusokuko
Cooked Blackberry pie=Kuirita Rubusokuko
Slice of Blackberry pie=Tranĉaĵo de Rubusokuko
Basket with Blackberry pies=Korbo kun Rubusokukoj
Blackberry Bush=Rubusa Arbusto
Blueberry=Mirtelo
Raw Blueberry pie=Kruda Mirtelokuko
Cooked Blueberry pie=Kuirita Mirtelokuko
Slice of Blueberry pie=Tranĉaĵo de Mirtelokuko
Basket with Blueberry pies=Korbo kun Mirtelokukoj
Blueberry Bush=Mirtela Arbusto
Raspberry=Frambo
Raw Raspberry pie=Kruda Frambokuko
Cooked Raspberry pie=Kuirita Frambokuko
Slice of Raspberry pie=Tranĉaĵo de Frambokuko
Basket with Raspberry pies=Korbo kun Frambokukoj
Raspberry Bush=Framba Arbusto
Gooseberry=Grosbero
Raw Gooseberry pie=Kruda Grosberkuko
Cooked Gooseberry pie=Kuirita Grosberkuko
Slice of Gooseberry pie=Tranĉaĵo de Grosberkuko
Basket with Gooseberry pies=Korbo kun Grosberkuko
Gooseberry Bush=Grosberarbusto
Mixed Berry=Miksita Bero
Raw Mixed Berry pie=Kruda Miksita Bera Kuko
Cooked Mixed Berry pie=Kuirita Miksa Beraj Kukoj
Slice of Mixed Berry pie=Tranĉaĵo de Miksita Bera Kuko
Basket with Mixed Berry pies=Korbo kun Miksitaj Beraj Kukoj
Currently fruitless Bush=Nuntempe senfrukta Arbusto
Basket=Korbo

View File

@ -1,46 +1,39 @@
# textdomain: bushes_classic # textdomain: bushes_classic
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Carlos Barraza <carlosbarrazaes@gmail.com>, 2017.
#
Sugar=Azúcar Sugar=Azúcar
Basket with Strawberry pies=Cesta con Pasteles de Frutilla
Cooked Strawberry pie=Pastel de Frutilla Cocido
Raw Strawberry pie=Pastel de Frutilla Crudo
Slice of Strawberry pie=Rebanada de Pastel de Frutilla
Strawberry=Frutilla Strawberry=Frutilla
Raw Strawberry pie=Pastel de Frutilla Crudo
Cooked Strawberry pie=Pastel de Frutilla Cocido
Slice of Strawberry pie=Rebanada de Pastel de Frutilla
Basket with Strawberry pies=Cesta con Pasteles de Frutilla
Strawberry Bush=Arbusto de Frutilla Strawberry Bush=Arbusto de Frutilla
Basket with Blackberry pies=Cesta con Pasteles de Mora
Blackberry=Mora Blackberry=Mora
Blackberry Bush=Arbusto de Mora
Cooked Blackberry pie=Pastel de Mora Cocido
Raw Blackberry pie=Pastel de Mora Crudo Raw Blackberry pie=Pastel de Mora Crudo
Cooked Blackberry pie=Pastel de Mora Cocido
Slice of Blackberry pie=Rebanada de Pastel de Mora Slice of Blackberry pie=Rebanada de Pastel de Mora
Basket with Blueberry pies=Cesta con Pasteles de Arándano Basket with Blackberry pies=Cesta con Pasteles de Mora
Blackberry Bush=Arbusto de Mora
Blueberry=Arándano Blueberry=Arándano
Blueberry Bush=Arbusto de Arándano
Cooked Blueberry pie=Pastel de Arándano Cocido
Raw Blueberry pie=Pastel de Arándano Crudo Raw Blueberry pie=Pastel de Arándano Crudo
Cooked Blueberry pie=Pastel de Arándano Cocido
Slice of Blueberry pie=Rebanada de Pastel de Arándano Slice of Blueberry pie=Rebanada de Pastel de Arándano
Basket with Raspberry pies=Cesta con Pasteles de Frambuesa Basket with Blueberry pies=Cesta con Pasteles de Arándano
Cooked Raspberry pie=Pastel de Frambuesa Cocido Blueberry Bush=Arbusto de Arándano
Raspberry=Frambuesa Raspberry=Frambuesa
Raspberry Bush=Arbusto de Frambuesa
Raw Raspberry pie=Pastel de Frambuesa Crudo Raw Raspberry pie=Pastel de Frambuesa Crudo
Cooked Raspberry pie=Pastel de Frambuesa Cocido
Slice of Raspberry pie=Rebanada de Pastel de Frambuesa Slice of Raspberry pie=Rebanada de Pastel de Frambuesa
Basket with Gooseberry pies=Cesta con Pasteles de Grosella Basket with Raspberry pies=Cesta con Pasteles de Frambuesa
Cooked Gooseberry pie=Pastel de Grosella Cocido Raspberry Bush=Arbusto de Frambuesa
Gooseberry=Grosella Gooseberry=Grosella
Gooseberry Bush=Arbusto de Grosella
Raw Gooseberry pie=Pastel de Grosella Crudo Raw Gooseberry pie=Pastel de Grosella Crudo
Cooked Gooseberry pie=Pastel de Grosella Cocido
Slice of Gooseberry pie=Rebanada de Pastel de Grosella Slice of Gooseberry pie=Rebanada de Pastel de Grosella
Basket with Mixed Berry pies=Cesta con Pasteles de Mezcla de Baya Basket with Gooseberry pies=Cesta con Pasteles de Grosella
Cooked Mixed Berry pie=Pastel de Mezcla de Bayas Cocido Gooseberry Bush=Arbusto de Grosella
Currently fruitless Bush=Arbusto actualmente infructuoso
Mixed Berry=Mezcla de Baya Mixed Berry=Mezcla de Baya
Raw Mixed Berry pie=Pastel de Mezcla de Bayas Cruda Raw Mixed Berry pie=Pastel de Mezcla de Bayas Cruda
Cooked Mixed Berry pie=Pastel de Mezcla de Bayas Cocido
Slice of Mixed Berry pie=Rebanada de Pastel de Mezcla de Bayas Slice of Mixed Berry pie=Rebanada de Pastel de Mezcla de Bayas
Basket with Mixed Berry pies=Cesta con Pasteles de Mezcla de Baya
Currently fruitless Bush=Arbusto actualmente infructuoso
Basket=Cesta Basket=Cesta

View File

@ -1,46 +1,39 @@
# textdomain: bushes_classic # textdomain: bushes_classic
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# fat115 <fat115@framasoft.org>, 2017.
#
Sugar=Sucre Sugar=Sucre
Basket with Strawberry pies=Panier de tartes aux fraises
Cooked Strawberry pie=Tarte aux fraises (cuite)
Raw Strawberry pie=Tarte aux fraises (crue)
Slice of Strawberry pie=Part de tarte aux fraises
Strawberry=Fraises Strawberry=Fraises
Raw Strawberry pie=Tarte aux fraises (crue)
Cooked Strawberry pie=Tarte aux fraises (cuite)
Slice of Strawberry pie=Part de tarte aux fraises
Basket with Strawberry pies=Panier de tartes aux fraises
Strawberry Bush=Buisson de fraises Strawberry Bush=Buisson de fraises
Basket with Blackberry pies=Panier de tartes aux fraises
Blackberry=Mûres Blackberry=Mûres
Blackberry Bush=Buisson de mûres
Cooked Blackberry pie=Tarte aux mûres (cuite)
Raw Blackberry pie=Tarte aux mûres (crue) Raw Blackberry pie=Tarte aux mûres (crue)
Cooked Blackberry pie=Tarte aux mûres (cuite)
Slice of Blackberry pie=Part de tarte aux mûres Slice of Blackberry pie=Part de tarte aux mûres
Basket with Blueberry pies=Panier de tartes aux mûres Basket with Blackberry pies=Panier de tartes aux fraises
Blackberry Bush=Buisson de mûres
Blueberry=Myrtilles Blueberry=Myrtilles
Blueberry Bush=Buisson de myrtilles
Cooked Blueberry pie=Tarte aux myrtilles (cuite)
Raw Blueberry pie=Tarte aux myrtilles (crue) Raw Blueberry pie=Tarte aux myrtilles (crue)
Cooked Blueberry pie=Tarte aux myrtilles (cuite)
Slice of Blueberry pie=Part de tarte aux myrtilles Slice of Blueberry pie=Part de tarte aux myrtilles
Basket with Raspberry pies=Panier de tartes aux framboises Basket with Blueberry pies=Panier de tartes aux mûres
Cooked Raspberry pie=Tarte aux framboises (cuite) Blueberry Bush=Buisson de myrtilles
Raspberry=Framboises Raspberry=Framboises
Raspberry Bush=Buisson de framboises
Raw Raspberry pie=Tarte aux framboises (crue) Raw Raspberry pie=Tarte aux framboises (crue)
Cooked Raspberry pie=Tarte aux framboises (cuite)
Slice of Raspberry pie=Part de tarts aux framboises Slice of Raspberry pie=Part de tarts aux framboises
Basket with Gooseberry pies=Panier de tartes aux groseilles Basket with Raspberry pies=Panier de tartes aux framboises
Cooked Gooseberry pie=Tarte aux groseilles (cuite) Raspberry Bush=Buisson de framboises
Gooseberry=Groseilles Gooseberry=Groseilles
Gooseberry Bush=Buisson de groseilles
Raw Gooseberry pie=Tarte aux groseilles (crue) Raw Gooseberry pie=Tarte aux groseilles (crue)
Cooked Gooseberry pie=Tarte aux groseilles (cuite)
Slice of Gooseberry pie=Part de tarte aux groseilles Slice of Gooseberry pie=Part de tarte aux groseilles
Basket with Mixed Berry pies=Panier de tartes aux fruits rouges Basket with Gooseberry pies=Panier de tartes aux groseilles
Cooked Mixed Berry pie=Tarte aux fruits rouges (cuite) Gooseberry Bush=Buisson de groseilles
Currently fruitless Bush=Buisson sans fruits pour l'instant
Mixed Berry=Fruits rouges Mixed Berry=Fruits rouges
Raw Mixed Berry pie=Tarte aux fruits rouges (crue) Raw Mixed Berry pie=Tarte aux fruits rouges (crue)
Cooked Mixed Berry pie=Tarte aux fruits rouges (cuite)
Slice of Mixed Berry pie=Part de tarte aux fruits rouges Slice of Mixed Berry pie=Part de tarte aux fruits rouges
Basket with Mixed Berry pies=Panier de tartes aux fruits rouges
Currently fruitless Bush=Buisson sans fruits pour l'instant
Basket=Panier Basket=Panier

View File

@ -1,46 +1,39 @@
# textdomain: bushes_classic # textdomain: bushes_classic
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# mahmutelmas06@hotmail.com, 2017.
#
Sugar=Şeker Sugar=Şeker
Basket with Strawberry pies=Çilekli pasta sepeti
Cooked Strawberry pie=Pişmiş çilekli pasta
Raw Strawberry pie=Çilekli çiğ pasta
Slice of Strawberry pie=Çilekli pasta dilimi
Strawberry=Çilek Strawberry=Çilek
Raw Strawberry pie=Çilekli çiğ pasta
Cooked Strawberry pie=Pişmiş çilekli pasta
Slice of Strawberry pie=Çilekli pasta dilimi
Basket with Strawberry pies=Çilekli pasta sepeti
Strawberry Bush=Çilek fidanı Strawberry Bush=Çilek fidanı
Basket with Blackberry pies=Böğürtlenli pasta sepeti
Blackberry=Böğürtlen Blackberry=Böğürtlen
Blackberry Bush=Böğürtlen fidanı
Cooked Blackberry pie=Pişmiş böğürtlenli pasta
Raw Blackberry pie=Böğürtlenli çiğ pasta Raw Blackberry pie=Böğürtlenli çiğ pasta
Cooked Blackberry pie=Pişmiş böğürtlenli pasta
Slice of Blackberry pie=Böğürtlenli pasta dilimi Slice of Blackberry pie=Böğürtlenli pasta dilimi
Basket with Blueberry pies=Yaban mersini pastalı sepet Basket with Blackberry pies=Böğürtlenli pasta sepeti
Blackberry Bush=Böğürtlen fidanı
Blueberry=Yaban mersini Blueberry=Yaban mersini
Blueberry Bush=Yaban mersini fidanı
Cooked Blueberry pie=Pişmiş yaban mersinli pasta
Raw Blueberry pie=Yaban mersinli çiğ pasta Raw Blueberry pie=Yaban mersinli çiğ pasta
Cooked Blueberry pie=Pişmiş yaban mersinli pasta
Slice of Blueberry pie=Yaban mersinli pasta dilimi Slice of Blueberry pie=Yaban mersinli pasta dilimi
Basket with Raspberry pies=Ahududulu pasta sepeti Basket with Blueberry pies=Yaban mersini pastalı sepet
Cooked Raspberry pie=Pişmiş ahududulu pasta Blueberry Bush=Yaban mersini fidanı
Raspberry=Ahududu Raspberry=Ahududu
Raspberry Bush=Ahududu fidanı
Raw Raspberry pie=Ahududulu çiğ pasta Raw Raspberry pie=Ahududulu çiğ pasta
Cooked Raspberry pie=Pişmiş ahududulu pasta
Slice of Raspberry pie=Ahududulu pasta dilimi Slice of Raspberry pie=Ahududulu pasta dilimi
Basket with Gooseberry pies=Bektaşi üzümlü pasta sepeti Basket with Raspberry pies=Ahududulu pasta sepeti
Cooked Gooseberry pie=Pişmiş bektaşi üzümlü pasta Raspberry Bush=Ahududu fidanı
Gooseberry=Bektaşi üzümü Gooseberry=Bektaşi üzümü
Gooseberry Bush=Bektaşi üzümü fidanı
Raw Gooseberry pie=Bektaşi üzümlü çiğ pasta Raw Gooseberry pie=Bektaşi üzümlü çiğ pasta
Cooked Gooseberry pie=Pişmiş bektaşi üzümlü pasta
Slice of Gooseberry pie=Bektaşi üzümlü pasta dilimi Slice of Gooseberry pie=Bektaşi üzümlü pasta dilimi
Basket with Mixed Berry pies=Dutlu pasta sepeti Basket with Gooseberry pies=Bektaşi üzümlü pasta sepeti
Cooked Mixed Berry pie=Pişmiş dutlu pasta Gooseberry Bush=Bektaşi üzümü fidanı
Currently fruitless Bush=Fidanı şu anda meyvesiz
Mixed Berry=Dut Mixed Berry=Dut
Raw Mixed Berry pie=Dutlu çiğ pasta Raw Mixed Berry pie=Dutlu çiğ pasta
Cooked Mixed Berry pie=Pişmiş dutlu pasta
Slice of Mixed Berry pie=Dutlu pasta dilimi Slice of Mixed Berry pie=Dutlu pasta dilimi
Basket with Mixed Berry pies=Dutlu pasta sepeti
Currently fruitless Bush=Fidanı şu anda meyvesiz
Basket=Sepet Basket=Sepet

View File

@ -1,46 +1,39 @@
# textdomain: bushes_classic # textdomain: bushes_classic
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
Sugar= Sugar=
Basket with Strawberry pies=
Cooked Strawberry pie=
Raw Strawberry pie=
Slice of Strawberry pie=
Strawberry= Strawberry=
Raw Strawberry pie=
Cooked Strawberry pie=
Slice of Strawberry pie=
Basket with Strawberry pies=
Strawberry Bush= Strawberry Bush=
Basket with Blackberry pies=
Blackberry= Blackberry=
Blackberry Bush=
Cooked Blackberry pie=
Raw Blackberry pie= Raw Blackberry pie=
Cooked Blackberry pie=
Slice of Blackberry pie= Slice of Blackberry pie=
Basket with Blueberry pies= Basket with Blackberry pies=
Blackberry Bush=
Blueberry= Blueberry=
Blueberry Bush=
Cooked Blueberry pie=
Raw Blueberry pie= Raw Blueberry pie=
Cooked Blueberry pie=
Slice of Blueberry pie= Slice of Blueberry pie=
Basket with Raspberry pies= Basket with Blueberry pies=
Cooked Raspberry pie= Blueberry Bush=
Raspberry= Raspberry=
Raspberry Bush=
Raw Raspberry pie= Raw Raspberry pie=
Cooked Raspberry pie=
Slice of Raspberry pie= Slice of Raspberry pie=
Basket with Gooseberry pies= Basket with Raspberry pies=
Cooked Gooseberry pie= Raspberry Bush=
Gooseberry= Gooseberry=
Gooseberry Bush=
Raw Gooseberry pie= Raw Gooseberry pie=
Cooked Gooseberry pie=
Slice of Gooseberry pie= Slice of Gooseberry pie=
Basket with Mixed Berry pies= Basket with Gooseberry pies=
Cooked Mixed Berry pie= Gooseberry Bush=
Currently fruitless Bush=
Mixed Berry= Mixed Berry=
Raw Mixed Berry pie= Raw Mixed Berry pie=
Cooked Mixed Berry pie=
Slice of Mixed Berry pie= Slice of Mixed Berry pie=
Basket with Mixed Berry pies=
Currently fruitless Bush=
Basket= Basket=

View File

@ -1,3 +1,2 @@
name = bushes_classic name = bushes_classic
depends = biome_lib
optional_depends = farming, farming_plus optional_depends = farming, farming_plus

View File

@ -4,6 +4,8 @@ local S = minetest.get_translator("bushes_classic")
plantlife_bushes = {} plantlife_bushes = {}
-- TODO: add support for nodebreakers? those dig like mese picks -- TODO: add support for nodebreakers? those dig like mese picks
local random = math.random
plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger) plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger)
if not (digger and pos and oldnode) then if not (digger and pos and oldnode) then
return return
@ -63,7 +65,7 @@ plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger)
-- with a chance of 1/3, return 2 bushes -- with a chance of 1/3, return 2 bushes
local amount local amount
if math.random(1,3) == 1 then if can_harvest and random(1,3) == 1 then
amount = "2" amount = "2"
else else
amount = "1" amount = "1"
@ -75,7 +77,7 @@ plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger)
elseif groupcaps.choppy then elseif groupcaps.choppy then
-- the amount of sticks may vary -- the amount of sticks may vary
local amount = math.random(4, 20) local amount = random(4, 20)
-- return some sticks -- return some sticks
harvested = "default:stick " .. amount harvested = "default:stick " .. amount
@ -136,7 +138,7 @@ minetest.register_abm({
local dirt = minetest.get_node(dirtpos) local dirt = minetest.get_node(dirtpos)
local is_soil = minetest.get_item_group(dirt.name, "soil") or minetest.get_item_group(dirt.name, "potting_soil") local is_soil = minetest.get_item_group(dirt.name, "soil") or minetest.get_item_group(dirt.name, "potting_soil")
if is_soil and (dirt.name == "farming:soil_wet" or math.random(1,3) == 1) then if is_soil and (dirt.name == "farming:soil_wet" or random(1,3) == 1) then
minetest.swap_node( pos, {name = "bushes:" .. bush_name .. "_bush"}) minetest.swap_node( pos, {name = "bushes:" .. bush_name .. "_bush"})
end end
end end
@ -159,19 +161,21 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
paramtype2 = "facedir", paramtype2 = "facedir",
on_use = minetest.item_eat(18), on_use = minetest.item_eat(18),
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
is_ground_content = false,
}) })
local texture_top, texture_bottom
local groups = {snappy = 3, bush = 1, flammable = 2, attached_node=1} local groups = {snappy = 3, bush = 1, flammable = 2, attached_node=1}
if bush_name == "mixed_berry" then if bush_name == "mixed_berry" then
bush_name = "fruitless"; bush_name = "fruitless";
texture_top = "bushes_fruitless_bush_top.png"
texture_bottom = "bushes_fruitless_bush_bottom.png"
groups.not_in_creative_inventory = 1 groups.not_in_creative_inventory = 1
else end
texture_top = "bushes_bush_top.png"
texture_bottom = "bushes_bush_bottom.png" local node_dig_prediction
local node_placement_prediction
if bush_name ~= "fruitless" then
node_dig_prediction = "bushes:fruitless_bush"
node_placement_prediction = "bushes:fruitless_bush"
end end
minetest.register_node(":bushes:" .. bush_name .. "_bush", { minetest.register_node(":bushes:" .. bush_name .. "_bush", {
@ -185,6 +189,8 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
groups = groups, groups = groups,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
drop = "", drop = "",
node_dig_prediction = node_dig_prediction,
node_placement_prediction = node_placement_prediction,
after_dig_node = function( pos, oldnode, oldmetadata, digger ) after_dig_node = function( pos, oldnode, oldmetadata, digger )
return plantlife_bushes.after_dig_node(pos, oldnode, oldmetadata, digger); return plantlife_bushes.after_dig_node(pos, oldnode, oldmetadata, digger);
end, end,
@ -207,4 +213,5 @@ minetest.register_node(":bushes:basket_empty", {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
is_ground_content = false,
}) })

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -1,15 +1,2 @@
-----------------------------------------------------------------------------------------------
local title = "Cave Stuff"
local version = "0.0.3"
local mname = "cavestuff"
-----------------------------------------------------------------------------------------------
-- support for i18n
local S = minetest.get_translator("cavestuff")
dofile(minetest.get_modpath("cavestuff").."/nodes.lua") dofile(minetest.get_modpath("cavestuff").."/nodes.lua")
dofile(minetest.get_modpath("cavestuff").."/mapgen.lua") dofile(minetest.get_modpath("cavestuff").."/mapgen.lua")
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")

View File

@ -0,0 +1,4 @@
# textdomain: cavestuff
Pebble=Kieselstein
Desert Pebble=Wüstenkiesel
Stalactite=Stalaktit

View File

@ -0,0 +1,4 @@
# textdomain: cavestuff
Pebble=Ŝtoneto
Desert Pebble=Dezerta Ŝtoneto
Stalactite=Stalaktito

View File

@ -1,11 +1,4 @@
# textdomain: cavestuff # textdomain: cavestuff
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# fat115 <fat115@framasoft.org>, 2017.
#
Pebble=Caillou Pebble=Caillou
Desert Pebble=Caillou du désert Desert Pebble=Caillou du désert
Stalactite=Stalactite Stalactite=Stalactite

View File

@ -1,11 +1,4 @@
# textdomain: cavestuff # textdomain: cavestuff
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
Pebble= Pebble=
Desert Pebble= Desert Pebble=
Stalactite= Stalactite=

View File

@ -1,52 +1,65 @@
--Map Generation Stuff --Map Generation Stuff
minetest.register_on_generated(function(minp, maxp, seed) minetest.register_decoration({
if maxp.y >= 2 and minp.y <= 0 then decoration = {
-- Generate pebbles "cavestuff:pebble_1",
local perlin1 = minetest.get_perlin(329, 3, 0.6, 100) "cavestuff:pebble_2"
-- Assume X and Z lengths are equal },
local divlen = 16 place_on = {
local divs = (maxp.x-minp.x)/divlen+1; "default:dirt_with_grass",
for divx=0,divs-1 do "default:gravel",
for divz=0,divs-1 do "default:stone",
local x0 = minp.x + math.floor((divx+0)*divlen) "default:permafrost_with_stones"
local z0 = minp.z + math.floor((divz+0)*divlen) },
local x1 = minp.x + math.floor((divx+1)*divlen) noise_params = {
local z1 = minp.z + math.floor((divz+1)*divlen) offset = 0,
-- Determine pebble amount from perlin noise scale = 0.0078125,
local pebble_amount = math.floor(perlin1:get2d({x=x0, y=z0}) ^ 2 * 2) spread = {
-- Find random positions for pebbles based on this random y = 100,
local pr = PseudoRandom(seed+1) z = 100,
for i=0,pebble_amount do x = 100
local x = pr:next(x0, x1) },
local z = pr:next(z0, z1) seed = 0,
-- Find ground level (0...15) octaves = 3,
local ground_y = nil persist = 0.6,
for y=30,0,-1 do flags = "absvalue",
if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then lacunarity = 2
ground_y = y },
break param2 = 0,
end flags = "all_floors",
end deco_type = "simple",
param2_max = 3,
y_min = -16,
y_max = 48
})
if ground_y then minetest.register_decoration({
local p = {x=x,y=ground_y+1,z=z} decoration = {
local nn = minetest.get_node(p).name "cavestuff:desert_pebble_1",
-- Check if the node can be replaced "cavestuff:desert_pebble_2"
if minetest.registered_nodes[nn] and },
minetest.registered_nodes[nn].buildable_to then place_on = {
nn = minetest.get_node({x=x,y=ground_y,z=z}).name "default:desert_sand",
-- If desert sand, add dry shrub "default:desert_stone"
if nn == "default:dirt_with_grass" then },
minetest.swap_node(p,{name="cavestuff:pebble_"..pr:next(1,2), param2=math.random(0,3)}) noise_params = {
elseif nn == "default:desert_sand" then offset = 0,
minetest.swap_node(p,{name="cavestuff:desert_pebble_"..pr:next(1,2), param2=math.random(0,3)}) scale = 0.0078125,
end spread = {
end y = 100,
end z = 100,
x = 100
end },
end seed = 0,
end octaves = 3,
end persist = 0.6,
end) flags = "absvalue",
lacunarity = 2
},
param2 = 0,
flags = "all_floors",
deco_type = "simple",
param2_max = 3,
y_min = -16,
y_max = 48
})

View File

@ -1,6 +1,8 @@
-- support for i18n -- support for i18n
local S = minetest.get_translator("cavestuff") local S = minetest.get_translator("cavestuff")
local random = math.random
--Rocks --Rocks
local cbox = { local cbox = {
@ -12,65 +14,64 @@ minetest.register_node("cavestuff:pebble_1",{
description = S("Pebble"), description = S("Pebble"),
drawtype = "mesh", drawtype = "mesh",
mesh = "cavestuff_pebble.obj", mesh = "cavestuff_pebble.obj",
tiles = {"undergrowth_pebble.png"}, tiles = {"undergrowth_pebble.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky=3, stone=1}, groups = {cracky=3, stone=1, attached_node=1, dig_immediate=3},
selection_box = cbox, selection_box = cbox,
collision_box = cbox, collision_box = cbox,
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
-- place a random pebble node -- place a random pebble node
local stack = ItemStack("cavestuff:pebble_"..math.random(1,2)) local stack = ItemStack("cavestuff:pebble_"..random(1,2))
local ret = minetest.item_place(stack, placer, pointed_thing) local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("cavestuff:pebble_1 "..itemstack:get_count()-(1-ret:get_count())) return ItemStack("cavestuff:pebble_1 "..itemstack:get_count()-(1-ret:get_count()))
end, end,
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
minetest.register_node("cavestuff:pebble_2",{ minetest.register_node("cavestuff:pebble_2",{
drawtype = "mesh", drawtype = "mesh",
mesh = "cavestuff_pebble.obj", mesh = "cavestuff_pebble.obj",
tiles = {"undergrowth_pebble.png"}, tiles = {"undergrowth_pebble.png"},
drop = "cavestuff:pebble_1", drop = "cavestuff:pebble_1",
tiles = {"undergrowth_pebble.png"}, paramtype = "light",
paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky=3, stone=1, not_in_creative_inventory=1}, groups = {cracky=3, stone=1, attached_node=1, not_in_creative_inventory=1, dig_immediate=3},
selection_box = cbox, selection_box = cbox,
collision_box = cbox, collision_box = cbox,
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
minetest.register_node("cavestuff:desert_pebble_1",{ minetest.register_node("cavestuff:desert_pebble_1",{
description = S("Desert Pebble"), description = S("Desert Pebble"),
drawtype = "mesh", drawtype = "mesh",
mesh = "cavestuff_pebble.obj", mesh = "cavestuff_pebble.obj",
tiles = {"default_desert_stone.png"}, tiles = {"default_desert_stone.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky=3, stone=1}, groups = {cracky=3, stone=1, attached_node=1, dig_immediate=3},
selection_box = cbox, selection_box = cbox,
collision_box = cbox, collision_box = cbox,
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
-- place a random pebble node -- place a random pebble node
local stack = ItemStack("cavestuff:desert_pebble_"..math.random(1,2)) local stack = ItemStack("cavestuff:desert_pebble_"..random(1,2))
local ret = minetest.item_place(stack, placer, pointed_thing) local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("cavestuff:desert_pebble_1 "..itemstack:get_count()-(1-ret:get_count())) return ItemStack("cavestuff:desert_pebble_1 "..itemstack:get_count()-(1-ret:get_count()))
end, end,
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
minetest.register_node("cavestuff:desert_pebble_2",{ minetest.register_node("cavestuff:desert_pebble_2",{
drawtype = "mesh", drawtype = "mesh",
mesh = "cavestuff_pebble.obj", mesh = "cavestuff_pebble.obj",
drop = "cavestuff:desert_pebble_1", drop = "cavestuff:desert_pebble_1",
tiles = {"default_desert_stone.png"}, tiles = {"default_desert_stone.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky=3, stone=1, not_in_creative_inventory=1}, groups = {cracky=3, stone=1, attached_node=1, not_in_creative_inventory=1, dig_immediate=3},
selection_box = cbox, selection_box = cbox,
collision_box = cbox, collision_box = cbox,
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
--Staclactites --Staclactites
@ -79,26 +80,42 @@ minetest.register_node("cavestuff:stalactite_1",{
drawtype="nodebox", drawtype="nodebox",
tiles = {"undergrowth_pebble.png"}, tiles = {"undergrowth_pebble.png"},
groups = {cracky=3,attached_node=1}, groups = {cracky=3,attached_node=1},
is_ground_content = false,
description = S("Stalactite"), description = S("Stalactite"),
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.187500,0.425000,-0.150003,0.162500,0.500000,0.162500}, {-0.187500,-0.425000,-0.150003,0.162500,-0.500000,0.162500},
{-0.112500,0.162500,-0.100000,0.087500,0.475000,0.087500}, {-0.112500,-0.162500,-0.100000,0.087500,-0.475000,0.087500},
{-0.062500,-0.275000,-0.062500,0.062500,0.500000,0.062500}, {-0.062500,0.275000,-0.062500,0.062500,-0.500000,0.062500},
{-0.037500,-0.837500,0.037500,0.037500,0.500000,-0.025000}, {-0.037500,0.837500,0.037500,0.037500,-0.500000,-0.025000},
} }
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
local pt = pointed_thing local dir = vector.subtract(pointed_thing.above, pointed_thing.under)
if minetest.get_node(pt.under).name=="default:stone" local base = pointed_thing.under
and minetest.get_node({x=pt.under.x, y=pt.under.y-1, z=pt.under.z}).name=="air" local place = vector.add(base, dir)
and minetest.get_node({x=pt.under.x, y=pt.under.y-2, z=pt.under.z}).name=="air" then local above = vector.add(place, dir)
minetest.swap_node({x=pt.under.x, y=pt.under.y-1, z=pt.under.z}, {name="cavestuff:stalactite_"..math.random(1,3)})
if not minetest.setting_getbool("creative_mode") then if not placer then return end
local playername = placer:get_player_name()
if minetest.is_protected(place, playername)
or minetest.is_protected(above, playername) then
minetest.record_protection_violation(place, playername)
return
end
if minetest.get_node(base).name == "default:stone"
and minetest.get_node(place).name == "air"
and minetest.get_node(above).name == "air"
then
minetest.swap_node(place, {
name = "cavestuff:stalactite_"..math.random(1,3),
param2 = minetest.dir_to_wallmounted(vector.multiply(dir, -1))
})
if not minetest.is_creative_enabled(playername) then
itemstack:take_item() itemstack:take_item()
end end
end end
@ -110,16 +127,17 @@ minetest.register_node("cavestuff:stalactite_2",{
drawtype="nodebox", drawtype="nodebox",
tiles = {"undergrowth_pebble.png"}, tiles = {"undergrowth_pebble.png"},
groups = {cracky=3,attached_node=1,not_in_creative_inventory=1}, groups = {cracky=3,attached_node=1,not_in_creative_inventory=1},
is_ground_content = false,
drop = "cavestuff:stalactite_1", drop = "cavestuff:stalactite_1",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.187500,0.387500,-0.150003,0.162500,0.500000,0.162500}, {-0.187500,-0.387500,-0.150003,0.162500,-0.500000,0.162500},
{-0.112500,0.112500,-0.100000,0.087500,0.475000,0.087500}, {-0.112500,-0.112500,-0.100000,0.087500,-0.475000,0.087500},
{-0.062500,-0.675000,-0.062500,0.062500,0.500000,0.062500}, {-0.062500,0.675000,-0.062500,0.062500,-0.500000,0.062500},
{-0.037500,-0.975000,0.037500,0.037500,0.500000,-0.025000}, {-0.037500,0.975000,0.037500,0.037500,-0.500000,-0.025000},
} }
}, },
}) })
@ -128,18 +146,17 @@ minetest.register_node("cavestuff:stalactite_3",{
drawtype="nodebox", drawtype="nodebox",
tiles = {"undergrowth_pebble.png"}, tiles = {"undergrowth_pebble.png"},
groups = {cracky=3,attached_node=1,not_in_creative_inventory=1}, groups = {cracky=3,attached_node=1,not_in_creative_inventory=1},
is_ground_content = false,
drop = "cavestuff:stalactite_1", drop = "cavestuff:stalactite_1",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.187500,0.387500,-0.150003,0.162500,0.500000,0.162500}, {-0.187500,-0.387500,-0.150003,0.162500,-0.500000,0.162500},
{-0.112500,0.037500,-0.100000,0.087500,0.475000,0.087500}, {-0.112500,-0.037500,-0.100000,0.087500,-0.475000,0.087500},
{-0.062500,-0.437500,-0.062500,0.062500,0.500000,0.062500}, {-0.062500,0.437500,-0.062500,0.062500,-0.500000,0.062500},
{-0.037500,-1.237500,0.037500,0.037500,0.500000,-0.025000}, {-0.037500,1.237500,0.037500,0.037500,-0.500000,-0.025000},
} }
}, },
}) })
--Stalagmites

View File

@ -53,7 +53,7 @@ minetest.register_craft({
{"default:stick",""} {"default:stick",""}
} }
}) })
if minetest.get_modpath("flint") ~= nil then if minetest.get_modpath("flint") then
minetest.register_craft({ minetest.register_craft({
output = "dryplants:sickle", output = "dryplants:sickle",
recipe = { recipe = {
@ -63,7 +63,7 @@ if minetest.get_modpath("flint") ~= nil then
} }
}) })
end end
if minetest.get_modpath("stoneage") ~= nil then if minetest.get_modpath("stoneage") then
minetest.register_craft({ minetest.register_craft({
output = "dryplants:sickle", output = "dryplants:sickle",
recipe = { recipe = {

View File

@ -1,33 +1,15 @@
-----------------------------------------------------------------------------------------------
local title = "Grasses" -- former "Dry plants"
local version = "0.1.5"
local mname = "dryplants"
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- textures & ideas partly by Neuromancer
-- Contains code from: default, farming
-- Looked at code from: darkage, sickle, stairs
-- Dependencies: default, farming, biome_lib
-- Supports:
-----------------------------------------------------------------------------------------------
abstract_dryplants = {}
-- support for i18n -- support for i18n
local S = minetest.get_translator("dryplants") local S = minetest.get_translator("dryplants")
abstract_dryplants = {}
dofile(minetest.get_modpath("dryplants").."/crafting.lua") dofile(minetest.get_modpath("dryplants").."/crafting.lua")
dofile(minetest.get_modpath("dryplants").."/settings.txt")
dofile(minetest.get_modpath("dryplants").."/reed.lua") dofile(minetest.get_modpath("dryplants").."/reed.lua")
if REEDMACE_GENERATES == true then
dofile(minetest.get_modpath("dryplants").."/reedmace.lua") dofile(minetest.get_modpath("dryplants").."/reedmace.lua")
end
if SMALL_JUNCUS_GENERATES == true then
dofile(minetest.get_modpath("dryplants").."/juncus.lua") dofile(minetest.get_modpath("dryplants").."/juncus.lua")
end
if EXTRA_TALL_GRASS_GENERATES == true then
dofile(minetest.get_modpath("dryplants").."/moregrass.lua") dofile(minetest.get_modpath("dryplants").."/moregrass.lua")
end
--dofile(minetest.get_modpath("dryplants").."/meadowvariation.lua") --dofile(minetest.get_modpath("dryplants").."/meadowvariation.lua")
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
@ -130,12 +112,14 @@ minetest.register_node("dryplants:grass", {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
tiles = {"dryplants_grass.png"}, tiles = {"dryplants_grass.png"},
use_texture_alpha = "clip",
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 }, fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 },
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -144,7 +128,7 @@ minetest.register_node("dryplants:grass", {
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
minetest.register_abm({ minetest.register_abm({
nodenames = {"dryplants:grass"}, nodenames = {"dryplants:grass"},
interval = HAY_DRYING_TIME, --1200, -- 20 minutes: a minetest-day/night-cycle interval = 3600, --1200, -- 20 minutes: a minetest-day/night-cycle
chance = 1, chance = 1,
action = function(pos) action = function(pos)
minetest.swap_node(pos, {name="dryplants:hay"}) minetest.swap_node(pos, {name="dryplants:hay"})
@ -161,12 +145,14 @@ minetest.register_node("dryplants:hay", {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
tiles = {"dryplants_hay.png"}, tiles = {"dryplants_hay.png"},
use_texture_alpha = "clip",
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 }, fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 },
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -189,8 +175,8 @@ minetest.register_node("dryplants:grass_short", {
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
minetest.register_abm({ minetest.register_abm({
nodenames = {"dryplants:grass_short"}, nodenames = {"dryplants:grass_short"},
interval = GRASS_REGROWING_TIME, --1200, -- 20 minutes: a minetest-day/night-cycle interval = 1200, --1200, -- 20 minutes: a minetest-day/night-cycle
chance = 100/GRASS_REGROWING_CHANCE, chance = 100/1200,
action = function(pos) action = function(pos)
-- Only become dirt with grass if no cut grass or hay lies on top -- Only become dirt with grass if no cut grass or hay lies on top
local above = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}) local above = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z})
@ -199,7 +185,3 @@ minetest.register_abm({
end end
end, end,
}) })
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -1,21 +1,12 @@
-----------------------------------------------------------------------------------------------
-- Grasses - Juncus 0.0.5
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- textures & ideas partly by Neuromancer
-- Contains code from: biome_lib
-- Looked at code from: default
-----------------------------------------------------------------------------------------------
-- support for i18n -- support for i18n
local S = minetest.get_translator("dryplants") local S = minetest.get_translator("dryplants")
abstract_dryplants.grow_juncus = function(pos) local function grow_juncus(pos)
local juncus_type = math.random(2,3) local juncus_type = math.random(2,3)
local right_here = {x=pos.x, y=pos.y+1, z=pos.z} local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
or minetest.get_node(right_here).name == "default:junglegrass" then local nodename = minetest.get_node(right_here).name
if nodename == "air" or nodename == "default:junglegrass" then
if juncus_type == 2 then if juncus_type == 2 then
minetest.swap_node(right_here, {name="dryplants:juncus_02"}) minetest.swap_node(right_here, {name="dryplants:juncus_02"})
else else
@ -46,6 +37,10 @@ minetest.register_node("dryplants:juncus", {
fixed = {-7/16, -1/2, -7/16, 7/16, 0, 7/16}, fixed = {-7/16, -1/2, -7/16, 7/16, 0, 7/16},
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
if not itemstack or not placer or not pointed_thing then
return
end
local playername = placer:get_player_name() local playername = placer:get_player_name()
if minetest.is_protected(pointed_thing.above, playername) or if minetest.is_protected(pointed_thing.above, playername) or
minetest.is_protected(pointed_thing.under, playername) then minetest.is_protected(pointed_thing.under, playername) then
@ -60,12 +55,13 @@ minetest.register_node("dryplants:juncus", {
else else
minetest.swap_node(right_here, {name="dryplants:juncus"}) minetest.swap_node(right_here, {name="dryplants:juncus"})
end end
if not minetest.setting_getbool("creative_mode") then if not minetest.is_creative_enabled(playername) then
itemstack:take_item() itemstack:take_item()
end end
return itemstack return itemstack
end, end,
}) })
minetest.register_node("dryplants:juncus_02", { minetest.register_node("dryplants:juncus_02", {
description = S("Juncus"), description = S("Juncus"),
drawtype = "plantlike", drawtype = "plantlike",
@ -92,44 +88,69 @@ minetest.register_node("dryplants:juncus_02", {
-- GENERATE SMALL JUNCUS -- GENERATE SMALL JUNCUS
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- near water or swamp -- near water or swamp
biome_lib:register_generate_plant({ minetest.register_decoration({
surface = { name = "dryplants:juncus_water",
decoration = {"air"},
fill_ratio = 0.16,
y_min = 1,
y_max = 40,
place_on = {
"default:dirt_with_grass", "default:dirt_with_grass",
--"default:desert_sand",
--"default:sand",
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:peat", "sumpf:peat",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = JUNCUS_NEAR_WATER_PER_MAPBLOCK, deco_type = "simple",
rarity = 101 - JUNCUS_NEAR_WATER_RARITY, flags = "all_floors",
min_elevation = 1, -- above sea level spawn_by = {
near_nodes = {"default:water_source","sumpf:dirtywater_source","sumpf:sumpf"}, "default:water_source",
near_nodes_size = 2, "sumpf:dirtywater_source",
near_nodes_vertical = 1, "sumpf:sumpf"
near_nodes_count = 1,
plantlife_limit = -0.9,
},
abstract_dryplants.grow_juncus
)
-- at dunes/beach
biome_lib:register_generate_plant({
surface = {
--"default:dirt_with_grass",
--"default:desert_sand",
"default:sand",
--"stoneage:grass_with_silex",
--"sumpf:peat",
--"sumpf:sumpf"
}, },
max_count = JUNCUS_AT_BEACH_PER_MAPBLOCK, check_offset = -1,
rarity = 101 - JUNCUS_AT_BEACH_RARITY, num_spawn_by = 1
min_elevation = 1, -- above sea level })
near_nodes = {"default:dirt_with_grass"},
near_nodes_size = 2, -- at dunes/beach
near_nodes_vertical = 1, minetest.register_decoration({
near_nodes_count = 1, name = "dryplants:juncus_beach",
plantlife_limit = -0.9, decoration = {"air"},
}, fill_ratio = 0.08,
abstract_dryplants.grow_juncus y_min = 1,
) y_max = 40,
place_on = {
"default:sand",
},
deco_type = "simple",
flags = "all_floors",
spawn_by = {"default:dirt_with_grass"},
check_offset = -1,
num_spawn_by = 1
})
local did, did2
minetest.register_on_mods_loaded(function()
did = minetest.get_decoration_id("dryplants:juncus_water")
did2 = minetest.get_decoration_id("dryplants:juncus_beach")
minetest.set_gen_notify("decoration", {did, did2})
end)
minetest.register_on_generated(function(minp, maxp, blockseed)
local g = minetest.get_mapgen_object("gennotify")
local locations = {}
local deco_locations_1 = g["decoration#" .. did] or {}
local deco_locations_2 = g["decoration#" .. did2] or {}
for _, pos in pairs(deco_locations_1) do
locations[#locations+1] = pos
end
for _, pos in pairs(deco_locations_2) do
locations[#locations+1] = pos
end
if #locations == 0 then return end
for _, pos in ipairs(locations) do
grow_juncus(pos)
end
end)

View File

@ -0,0 +1,21 @@
# textdomain: dryplants
Sickle=Sichel
Cut Grass=Grasschnitt
Hay=Heu
Short Grass=Kurzes Gras
Juncus=Binsen
Wet Reed=Nasses Schilf
Wet Reed Slab=Nasse Schilfplatte
Wet Reed Roof=Nasses Schilfdach
Wet Reed Roof Corner 1=Nasser Schilfdachwinkel 1
Wet Reed Roof Corner 2=Nasser Schilfdachwinkel 2
Reed=Schilf
Reed Slab=Schilfstufe
Reed Roof=Schilfdach
Reed Roof Corner 1=Schilfdachwinkel 1
Reed Roof Corner 2=Schilfdachwinkel
Reedmace=Rohrkolben
Reedmace, height: 1=Rohrkolben, Höhe: 1
Reedmace, height: 2=Rohrkolben, Höhe: 2
Reedmace, height: 3=Rohrkolben, Höhe: 3
Reedmace, height: 3 & Spikes=Rohrkolben, Höhe: 3 & Rispe

View File

@ -0,0 +1,21 @@
# textdomain: dryplants
Sickle=
Cut Grass=Tranĉita Herbenon
Hay=Fojno
Short Grass=Mallonga Herbo
Juncus=Junko
Wet Reed=Malseka Kano
Wet Reed Slab=Slabo de Malseka Kano
Wet Reed Roof=Tegmento de Malseka Kano
Wet Reed Roof Corner 1=Tegmentangulo 1 de Malseka Kano
Wet Reed Roof Corner 2=Tegmentangulo 2 de Malseka Kano
Reed=Kano
Reed Slab=Slabo de Kano
Reed Roof=Tegmento de Kano
Reed Roof Corner 1=Tegmentangulo 1 de Kano
Reed Roof Corner 2=Tegmentangulo 2 de Kano
Reedmace=Tifeo
Reedmace, height: 1=Tifeo, alteco: 1
Reedmace, height: 2=Tifeo, alteco: 2
Reedmace, height: 3=Tifeo, alteco: 3
Reedmace, height: 3 & Spikes=Tifeo, alteco: 3 & Pikiloj

View File

@ -1,11 +1,4 @@
# textdomain: dryplants # textdomain: dryplants
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# fat115 <fat115@framasoft.org>, 2017.
#
Sickle=Faucille Sickle=Faucille
Cut Grass=Herbe coupée Cut Grass=Herbe coupée
Hay=Foin Hay=Foin
@ -14,12 +7,12 @@ Juncus=Joncs
Wet Reed=Bloc de roseau humide Wet Reed=Bloc de roseau humide
Wet Reed Slab=Dalle en roseau humide Wet Reed Slab=Dalle en roseau humide
Wet Reed Roof=Toit en roseau humide Wet Reed Roof=Toit en roseau humide
Wet Reed Roof Corner=Angle de toit en roseau humide Wet Reed Roof Corner 1=Angle de toit en roseau humide 1
Wet Reed Roof Corner 2=Angle de toit en roseau humide 2 Wet Reed Roof Corner 2=Angle de toit en roseau humide 2
Reed=Roseau Reed=Roseau
Reed Slab=Dalle en roseau Reed Slab=Dalle en roseau
Reed Roof=Toit en roseau Reed Roof=Toit en roseau
Reed Roof Corner=Angle de toit en roseau Reed Roof Corner 1=Angle de toit en roseau 1
Reed Roof Corner 2=Angle de toit en roseau 2 Reed Roof Corner 2=Angle de toit en roseau 2
Reedmace=Roseau Reedmace=Roseau
Reedmace, height: 1=Roseau, 1 de hauteur Reedmace, height: 1=Roseau, 1 de hauteur

View File

@ -1,11 +1,4 @@
# textdomain: dryplants # textdomain: dryplants
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
Sickle= Sickle=
Cut Grass= Cut Grass=
Hay= Hay=
@ -14,12 +7,12 @@ Juncus=
Wet Reed= Wet Reed=
Wet Reed Slab= Wet Reed Slab=
Wet Reed Roof= Wet Reed Roof=
Wet Reed Roof Corner= Wet Reed Roof Corner 1=
Wet Reed Roof Corner 2= Wet Reed Roof Corner 2=
Reed= Reed=
Reed Slab= Reed Slab=
Reed Roof= Reed Roof=
Reed Roof Corner= Reed Roof Corner 1=
Reed Roof Corner 2= Reed Roof Corner 2=
Reedmace= Reedmace=
Reedmace, height: 1= Reedmace, height: 1=

View File

@ -1,25 +1,12 @@
----------------------------------------------------------------------------------------------- -- @reviewer: couldn't even find using biome_lib
-- Grasses - Meadow Variation 0.0.1 minetest.register_decoration({
----------------------------------------------------------------------------------------------- decoration = {"dryplants:grass_short"},
-- by Mossmanikin fill_ratio = 0.8,
y_min = 1,
-- Contains code from: biome_lib y_max = 40,
-- Looked at code from: default place_on = {
-----------------------------------------------------------------------------------------------
abstract_dryplants.grow_grass_variation = function(pos)
local right_here = {x=pos.x, y=pos.y, z=pos.z}
minetest.swap_node(right_here, {name="dryplants:grass_short"})
end
biome_lib:register_generate_plant({
surface = {
"default:dirt_with_grass", "default:dirt_with_grass",
}, },
max_count = 4800, deco_type = "simple",
rarity = 25, flags = "all_floors"
min_elevation = 1, -- above sea level })
plantlife_limit = -0.9,
},
abstract_dryplants.grow_grass_variation
)

View File

@ -1,3 +1,3 @@
name = dryplants name = dryplants
depends = default, biome_lib depends = default
optional_depends = farming optional_depends = farming, ebiomes

View File

@ -1,32 +1,20 @@
----------------------------------------------------------------------------------------------- minetest.register_decoration({
-- Grasses - More Tall Grass 0.0.2 decoration = {
----------------------------------------------------------------------------------------------- "default:grass_1",
-- by Mossmanikin "default:grass_2",
"default:grass_3",
-- Contains code from: biome_lib "default:grass_4",
-- Looked at code from: default "default:grass_5"
----------------------------------------------------------------------------------------------- },
fill_ratio = 0.8,
abstract_dryplants.grow_grass = function(pos) y_min = 1,
local right_here = {x=pos.x, y=pos.y+1, z=pos.z} y_max = 40,
local grass_size = math.random(1,5) place_on = {
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
or minetest.get_node(right_here).name == "default:junglegrass" then
minetest.swap_node(right_here, {name="default:grass_"..grass_size})
end
end
biome_lib:register_generate_plant({
surface = {
"default:dirt_with_grass", "default:dirt_with_grass",
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:peat", "sumpf:peat",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = TALL_GRASS_PER_MAPBLOCK, deco_type = "simple",
rarity = 101 - TALL_GRASS_RARITY, flags = "all_floors"
min_elevation = 1, -- above sea level })
plantlife_limit = -0.9,
},
abstract_dryplants.grow_grass
)

View File

@ -44,6 +44,7 @@ minetest.register_node("dryplants:wetreed_slab", {
fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2}, fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2},
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -72,109 +73,107 @@ minetest.register_node("dryplants:wetreed_roof", {
} }
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
if AUTO_ROOF_CORNER == true then local CoRNeR = {
local CoRNeR = {
-- MaTeRiaL -- MaTeRiaL
{"wetreed"}, {"wetreed"},
{"reed"} {"reed"}
} }
for i in pairs(CoRNeR) do for i in pairs(CoRNeR) do
local MaTeRiaL = CoRNeR[i][1] local MaTeRiaL = CoRNeR[i][1]
local roof = "dryplants:"..MaTeRiaL.."_roof" local roof = "dryplants:"..MaTeRiaL.."_roof"
local corner = "dryplants:"..MaTeRiaL.."_roof_corner" local corner = "dryplants:"..MaTeRiaL.."_roof_corner"
local corner_2 = "dryplants:"..MaTeRiaL.."_roof_corner_2" local corner_2 = "dryplants:"..MaTeRiaL.."_roof_corner_2"
minetest.register_abm({ minetest.register_abm({
nodenames = {roof}, nodenames = {roof},
interval = 1, interval = 1,
chance = 1, chance = 1,
action = function(pos) action = function(pos)
local node_east = minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z }) local node_east = minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z })
local node_west = minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z }) local node_west = minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z })
local node_north = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) local node_north = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1})
local node_south = minetest.get_node({x=pos.x, y=pos.y, z=pos.z-1}) local node_south = minetest.get_node({x=pos.x, y=pos.y, z=pos.z-1})
-- corner 1 -- corner 1
if ((node_west.name == roof and node_west.param2 == 0) if ((node_west.name == roof and node_west.param2 == 0)
or (node_west.name == corner and node_west.param2 == 1)) or (node_west.name == corner and node_west.param2 == 1))
and ((node_north.name == roof and node_north.param2 == 3) and ((node_north.name == roof and node_north.param2 == 3)
or (node_north.name == corner and node_north.param2 == 3)) or (node_north.name == corner and node_north.param2 == 3))
then then
minetest.swap_node(pos, {name=corner, param2=0}) minetest.swap_node(pos, {name=corner, param2=0})
end end
if ((node_north.name == roof and node_north.param2 == 1) if ((node_north.name == roof and node_north.param2 == 1)
or (node_north.name == corner and node_north.param2 == 2)) or (node_north.name == corner and node_north.param2 == 2))
and ((node_east.name == roof and node_east.param2 == 0) and ((node_east.name == roof and node_east.param2 == 0)
or (node_east.name == corner and node_east.param2 == 0)) or (node_east.name == corner and node_east.param2 == 0))
then then
minetest.swap_node(pos, {name=corner, param2=1}) minetest.swap_node(pos, {name=corner, param2=1})
end end
if ((node_east.name == roof and node_east.param2 == 2) if ((node_east.name == roof and node_east.param2 == 2)
or (node_east.name == corner and node_east.param2 == 3)) or (node_east.name == corner and node_east.param2 == 3))
and ((node_south.name == roof and node_south.param2 == 1) and ((node_south.name == roof and node_south.param2 == 1)
or (node_south.name == corner and node_south.param2 == 1)) or (node_south.name == corner and node_south.param2 == 1))
then then
minetest.swap_node(pos, {name=corner, param2=2}) minetest.swap_node(pos, {name=corner, param2=2})
end end
if ((node_south.name == roof and node_south.param2 == 3) if ((node_south.name == roof and node_south.param2 == 3)
or (node_south.name == corner and node_south.param2 == 0)) or (node_south.name == corner and node_south.param2 == 0))
and ((node_west.name == roof and node_west.param2 == 2) and ((node_west.name == roof and node_west.param2 == 2)
or (node_west.name == corner and node_west.param2 == 2)) or (node_west.name == corner and node_west.param2 == 2))
then then
minetest.swap_node(pos, {name=corner, param2=3}) minetest.swap_node(pos, {name=corner, param2=3})
end end
-- corner 2 -- corner 2
if ((node_west.name == roof and node_west.param2 == 2) if ((node_west.name == roof and node_west.param2 == 2)
or (node_west.name == corner_2 and node_west.param2 == 1)) or (node_west.name == corner_2 and node_west.param2 == 1))
and ((node_north.name == roof and node_north.param2 == 1) and ((node_north.name == roof and node_north.param2 == 1)
or (node_north.name == corner_2 and node_north.param2 == 3)) or (node_north.name == corner_2 and node_north.param2 == 3))
then then
minetest.swap_node(pos, {name=corner_2, param2=0}) minetest.swap_node(pos, {name=corner_2, param2=0})
end end
if ((node_north.name == roof and node_north.param2 == 3) if ((node_north.name == roof and node_north.param2 == 3)
or (node_north.name == corner_2 and node_north.param2 == 2)) or (node_north.name == corner_2 and node_north.param2 == 2))
and ((node_east.name == roof and node_east.param2 == 2) and ((node_east.name == roof and node_east.param2 == 2)
or (node_east.name == corner_2 and node_east.param2 == 0)) or (node_east.name == corner_2 and node_east.param2 == 0))
then then
minetest.swap_node(pos, {name=corner_2, param2=1}) minetest.swap_node(pos, {name=corner_2, param2=1})
end end
if ((node_east.name == roof and node_east.param2 == 0) if ((node_east.name == roof and node_east.param2 == 0)
or (node_east.name == corner_2 and node_east.param2 == 3)) or (node_east.name == corner_2 and node_east.param2 == 3))
and ((node_south.name == roof and node_south.param2 == 3) and ((node_south.name == roof and node_south.param2 == 3)
or (node_south.name == corner_2 and node_south.param2 == 1)) or (node_south.name == corner_2 and node_south.param2 == 1))
then then
minetest.swap_node(pos, {name=corner_2, param2=2}) minetest.swap_node(pos, {name=corner_2, param2=2})
end end
if ((node_south.name == roof and node_south.param2 == 1) if ((node_south.name == roof and node_south.param2 == 1)
or (node_south.name == corner_2 and node_south.param2 == 0)) or (node_south.name == corner_2 and node_south.param2 == 0))
and ((node_west.name == roof and node_west.param2 == 0) and ((node_west.name == roof and node_west.param2 == 0)
or (node_west.name == corner_2 and node_west.param2 == 2)) or (node_west.name == corner_2 and node_west.param2 == 2))
then then
minetest.swap_node(pos, {name=corner_2, param2=3}) minetest.swap_node(pos, {name=corner_2, param2=3})
end end
end, end,
}) })
end
end end
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- Wet Reed Roof Corner -- Wet Reed Roof Corner 1
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
minetest.register_node("dryplants:wetreed_roof_corner", { minetest.register_node("dryplants:wetreed_roof_corner", {
description = S("Wet Reed Roof Corner"), description = S("Wet Reed Roof Corner 1"),
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
@ -197,6 +196,7 @@ minetest.register_node("dryplants:wetreed_roof_corner", {
} }
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -227,37 +227,35 @@ minetest.register_node("dryplants:wetreed_roof_corner_2", {
} }
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- Wet Reed becomes (dry) Reed over time -- Wet Reed becomes (dry) Reed over time
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
if REED_WILL_DRY == true then local DRyiNG = {
local DRyiNG = {
-- WeT DRy -- WeT DRy
{"dryplants:wetreed", "dryplants:reed"}, {"dryplants:wetreed", "dryplants:reed"},
{"dryplants:wetreed_slab", "dryplants:reed_slab"}, {"dryplants:wetreed_slab", "dryplants:reed_slab"},
{"dryplants:wetreed_roof", "dryplants:reed_roof"}, {"dryplants:wetreed_roof", "dryplants:reed_roof"},
{"dryplants:wetreed_roof_corner", "dryplants:reed_roof_corner"}, {"dryplants:wetreed_roof_corner", "dryplants:reed_roof_corner"},
{"dryplants:wetreed_roof_corner_2", "dryplants:reed_roof_corner_2"} {"dryplants:wetreed_roof_corner_2", "dryplants:reed_roof_corner_2"}
} }
for i in pairs(DRyiNG) do for i in pairs(DRyiNG) do
local WeT = DRyiNG[i][1] local WeT = DRyiNG[i][1]
local DRy = DRyiNG[i][2] local DRy = DRyiNG[i][2]
minetest.register_abm({ minetest.register_abm({
nodenames = {WeT}, nodenames = {WeT},
interval = REED_DRYING_TIME, --1200, -- 20 minutes: a minetest-day/night-cycle interval = 3600, --1200, -- 20 minutes: a minetest-day/night-cycle
chance = 1, chance = 1,
action = function(pos) action = function(pos)
local direction = minetest.get_node(pos).param2 local direction = minetest.get_node(pos).param2
minetest.swap_node(pos, {name=DRy, param2=direction}) minetest.swap_node(pos, {name=DRy, param2=direction})
end, end,
}) })
end
end end
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
@ -269,6 +267,7 @@ minetest.register_node("dryplants:reed", {
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"dryplants_reed.png"}, tiles = {"dryplants_reed.png"},
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -290,6 +289,7 @@ minetest.register_node("dryplants:reed_slab", {
fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2}, fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2},
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -318,14 +318,15 @@ minetest.register_node("dryplants:reed_roof", {
} }
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- Reed Roof Corner -- Reed Roof Corner 1
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
minetest.register_node("dryplants:reed_roof_corner", { minetest.register_node("dryplants:reed_roof_corner", {
description = S("Reed Roof Corner"), description = S("Reed Roof Corner 1"),
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
@ -348,6 +349,7 @@ minetest.register_node("dryplants:reed_roof_corner", {
} }
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -378,5 +380,6 @@ minetest.register_node("dryplants:reed_roof_corner_2", {
} }
}, },
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })

View File

@ -1,13 +1,3 @@
-----------------------------------------------------------------------------------------------
-- Grasses - Reedmace 0.1.1
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- textures & ideas partly by Neuromancer
-- Contains code from: biome_lib
-- Looked at code from: default, trees
-----------------------------------------------------------------------------------------------
-- NOTES (from wikipedia, some of this might get implemented) -- NOTES (from wikipedia, some of this might get implemented)
-- rhizomes are edible -- rhizomes are edible
-- outer portion of young plants can be peeled and the heart can be eaten raw or boiled and eaten like asparagus -- outer portion of young plants can be peeled and the heart can be eaten raw or boiled and eaten like asparagus
@ -24,14 +14,16 @@ local S = minetest.get_translator("dryplants")
-- REEDMACE SHAPES -- REEDMACE SHAPES
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
abstract_dryplants.grow_reedmace = function(pos) local function grow_reedmace(pos)
local size = math.random(1,3) local size = math.random(1,3)
local spikes = math.random(1,3) local spikes = math.random(1,3)
local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z} local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z}
local pos_02 = {x = pos.x, y = pos.y + 2, z = pos.z} local pos_02 = {x = pos.x, y = pos.y + 2, z = pos.z}
local pos_03 = {x = pos.x, y = pos.y + 3, z = pos.z} local pos_03 = {x = pos.x, y = pos.y + 3, z = pos.z}
if minetest.get_node(pos_01).name == "air" -- bug fix
or minetest.get_node(pos_01).name == "dryplants:reedmace_sapling" then local nodename = minetest.get_node(pos_01).name
if nodename == "air" -- bug fix
or nodename == "dryplants:reedmace_sapling" then
if minetest.get_node(pos_02).name ~= "air" then if minetest.get_node(pos_02).name ~= "air" then
minetest.swap_node(pos_01, {name="dryplants:reedmace_top"}) minetest.swap_node(pos_01, {name="dryplants:reedmace_top"})
elseif minetest.get_node(pos_03).name ~= "air" then elseif minetest.get_node(pos_03).name ~= "air" then
@ -50,14 +42,16 @@ abstract_dryplants.grow_reedmace = function(pos)
end end
end end
abstract_dryplants.grow_reedmace_water = function(pos) local function grow_reedmace_water(pos)
local size = math.random(1,3) local size = math.random(1,3)
local spikes = math.random(1,3) local spikes = math.random(1,3)
local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z} local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z}
local pos_02 = {x = pos.x, y = pos.y + 2, z = pos.z} local pos_02 = {x = pos.x, y = pos.y + 2, z = pos.z}
local pos_03 = {x = pos.x, y = pos.y + 3, z = pos.z} local pos_03 = {x = pos.x, y = pos.y + 3, z = pos.z}
local pos_04 = {x = pos.x, y = pos.y + 4, z = pos.z} local pos_04 = {x = pos.x, y = pos.y + 4, z = pos.z}
minetest.add_entity(pos_01, "dryplants:reedmace_water_entity") minetest.add_entity(pos_01, "dryplants:reedmace_water_entity")
if minetest.get_node(pos_02).name == "air" then -- bug fix if minetest.get_node(pos_02).name == "air" then -- bug fix
if minetest.get_node(pos_03).name ~= "air" then if minetest.get_node(pos_03).name ~= "air" then
minetest.swap_node(pos_02, {name="dryplants:reedmace_top"}) minetest.swap_node(pos_02, {name="dryplants:reedmace_top"})
@ -77,6 +71,8 @@ abstract_dryplants.grow_reedmace_water = function(pos)
end end
end end
abstract_dryplants.grow_reedmace = grow_reedmace -- compatibility
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- REEDMACE SPIKES -- REEDMACE SPIKES
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
@ -92,6 +88,7 @@ minetest.register_node("dryplants:reedmace_spikes", {
flammable=2, flammable=2,
not_in_creative_inventory=1 not_in_creative_inventory=1
}, },
is_ground_content = false,
drop = 'dryplants:reedmace_sapling', drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
@ -114,6 +111,7 @@ minetest.register_node("dryplants:reedmace_top", {
flammable=2, flammable=2,
not_in_creative_inventory=1 not_in_creative_inventory=1
}, },
is_ground_content = false,
drop = 'dryplants:reedmace_sapling', drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
@ -137,6 +135,7 @@ minetest.register_node("dryplants:reedmace_height_2", {
flammable=2--, flammable=2--,
--not_in_creative_inventory=1 --not_in_creative_inventory=1
}, },
is_ground_content = false,
drop = 'dryplants:reedmace_sapling', drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
@ -160,6 +159,7 @@ minetest.register_node("dryplants:reedmace_height_3", {
flammable=2--, flammable=2--,
--not_in_creative_inventory=1 --not_in_creative_inventory=1
}, },
is_ground_content = false,
drop = 'dryplants:reedmace_sapling', drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
@ -183,6 +183,7 @@ minetest.register_node("dryplants:reedmace_height_3_spikes", {
flammable=2--, flammable=2--,
--not_in_creative_inventory=1 --not_in_creative_inventory=1
}, },
is_ground_content = false,
drop = 'dryplants:reedmace_sapling', drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
@ -205,6 +206,7 @@ minetest.register_node("dryplants:reedmace", {
flammable=2, flammable=2,
not_in_creative_inventory=1 not_in_creative_inventory=1
}, },
is_ground_content = false,
drop = 'dryplants:reedmace_sapling', drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
@ -235,6 +237,7 @@ minetest.register_node("dryplants:reedmace_bottom", {
flammable=2, flammable=2,
not_in_creative_inventory=1 not_in_creative_inventory=1
}, },
is_ground_content = false,
drop = 'dryplants:reedmace_sapling', drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
@ -264,7 +267,8 @@ minetest.register_node("dryplants:reedmace_sapling", {
groups = { groups = {
snappy=3, snappy=3,
flammable=2, flammable=2,
attached_node=1 attached_node=1,
sapling=1,
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
@ -275,19 +279,19 @@ minetest.register_node("dryplants:reedmace_sapling", {
-- abm -- abm
minetest.register_abm({ minetest.register_abm({
nodenames = "dryplants:reedmace_sapling", nodenames = "dryplants:reedmace_sapling",
interval = REEDMACE_GROWING_TIME, interval = 600,
chance = 100/REEDMACE_GROWING_CHANCE, chance = 100/5,
action = function(pos, node, _, _) action = function(pos, node, _, _)
if string.find(minetest.get_node({x = pos.x + 1, y = pos.y, z = pos.z }).name, "default:water") if string.find(minetest.get_node({x = pos.x + 1, y = pos.y, z = pos.z }).name, "default:water")
or string.find(minetest.get_node({x = pos.x, y = pos.y, z = pos.z + 1}).name, "default:water") or string.find(minetest.get_node({x = pos.x, y = pos.y, z = pos.z + 1}).name, "default:water")
or string.find(minetest.get_node({x = pos.x - 1, y = pos.y, z = pos.z }).name, "default:water") or string.find(minetest.get_node({x = pos.x - 1, y = pos.y, z = pos.z }).name, "default:water")
or string.find(minetest.get_node({x = pos.x, y = pos.y, z = pos.z - 1}).name, "default:water") then or string.find(minetest.get_node({x = pos.x, y = pos.y, z = pos.z - 1}).name, "default:water") then
if minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name == "air" then if minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name == "air" then
abstract_dryplants.grow_reedmace_water({x = pos.x, y = pos.y - 1, z = pos.z}) grow_reedmace_water({x = pos.x, y = pos.y - 1, z = pos.z})
end end
minetest.swap_node({x=pos.x, y=pos.y, z=pos.z}, {name="default:water_source"}) minetest.swap_node({x=pos.x, y=pos.y, z=pos.z}, {name="default:water_source"})
else else
abstract_dryplants.grow_reedmace({x = pos.x, y = pos.y - 1, z = pos.z}) grow_reedmace({x = pos.x, y = pos.y - 1, z = pos.z})
end end
end end
}) })
@ -317,7 +321,7 @@ minetest.register_entity("dryplants:reedmace_water_entity",{
collisionbox = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}, collisionbox = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
on_punch = function(self, puncher) on_punch = function(self, puncher)
if puncher:is_player() and puncher:get_inventory() then if puncher:is_player() and puncher:get_inventory() then
if not minetest.setting_getbool("creative_mode") then if not minetest.is_creative_enabled(puncher:get_player_name()) then
puncher:get_inventory():add_item("main", "dryplants:reedmace_sapling") puncher:get_inventory():add_item("main", "dryplants:reedmace_sapling")
end end
self.object:remove() self.object:remove()
@ -325,89 +329,120 @@ minetest.register_entity("dryplants:reedmace_water_entity",{
end, end,
}) })
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- SPAWN REEDMACE
-----------------------------------------------------------------------------------------------
--[[biome_lib:spawn_on_surfaces({
spawn_delay = 1200,
spawn_plants = {"dryplants:reedmace_sapling"},
spawn_chance = 400,
spawn_surfaces = {
"default:dirt_with_grass",
"default:desert_sand",
"default:sand",
"dryplants:grass_short",
"stoneage:grass_with_silex"
},
seed_diff = 329,
near_nodes = {"default:water_source"},
near_nodes_size = 2,
near_nodes_vertical = 1,
near_nodes_count = 1,
})]]
-----------------------------------------------------------------------------------------------
-- GENERATE REEDMACE -- GENERATE REEDMACE
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- near water or swamp -- near water or swamp
biome_lib:register_generate_plant({ minetest.register_decoration({
surface = { name = "dryplants:reedmace_swamp",
decoration = {"air"},
fill_ratio = "0.05",
y_min = 1,
y_max = 40,
place_on = {
"default:dirt_with_grass", "default:dirt_with_grass",
"default:desert_sand", "default:desert_sand",
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:peat", "sumpf:peat",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = REEDMACE_NEAR_WATER_PER_MAPBLOCK, deco_type = "simple",
rarity = 101 - REEDMACE_NEAR_WATER_RARITY, flags = "all_floors",
--rarity = 60, spawn_by = {
min_elevation = 1, -- above sea level "default:water_source",
near_nodes = {"default:water_source","sumpf:dirtywater_source","sumpf:sumpf"}, "sumpf:dirtywater_source",
near_nodes_size = 2, "sumpf:sumpf"
near_nodes_vertical = 1, },
near_nodes_count = 1, check_offset = -1,
plantlife_limit = -0.9, num_spawn_by = 1
}, })
abstract_dryplants.grow_reedmace
)
-- in water -- in water
biome_lib:register_generate_plant({ minetest.register_decoration({
surface = { name = "dryplants:reedmace_water",
decoration = {"air"},
fill_ratio = "0.01",
y_min = 0,
y_max = 0,
place_on = {
"default:dirt", "default:dirt",
"default:dirt_with_grass", "default:dirt_with_grass",
--"default:desert_sand",
--"stoneage:grass_with_silex",
"stoneage:sand_with_silex", "stoneage:sand_with_silex",
"sumpf:peat", "sumpf:peat",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = REEDMACE_IN_WATER_PER_MAPBLOCK, deco_type = "simple",
rarity = 101 - REEDMACE_IN_WATER_RARITY, flags = "all_floors",
--rarity = 35, spawn_by = {
min_elevation = 0, -- a bit below sea level "default:water_source",
max_elevation = 0, -- "" "sumpf:dirtywater_source"
near_nodes = {"default:water_source","sumpf:dirtywater_source"}, },
near_nodes_size = 1, check_offset = -1,
near_nodes_count = 1, num_spawn_by = 1
plantlife_limit = -0.9, })
},
abstract_dryplants.grow_reedmace_water
)
-- for oases & tropical beaches & tropical swamps -- for oases & tropical beaches & tropical swamps
biome_lib:register_generate_plant({ minetest.register_decoration({
surface = { name = "dryplants:reedmace_beach",
decoration = {"air"},
fill_ratio = "0.05",
y_min = 1,
y_max = 40,
place_on = {
"default:sand", "default:sand",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = REEDMACE_FOR_OASES_PER_MAPBLOCK, deco_type = "simple",
rarity = 101 - REEDMACE_FOR_OASES_RARITY, flags = "all_floors",
--rarity = 10, spawn_by = {
neighbors = {"default:water_source","sumpf:dirtywater_source","sumpf:sumpf"}, "default:water_source",
ncount = 1, "sumpf:dirtywater_source",
min_elevation = 1, -- above sea level "sumpf:sumpf",
near_nodes = {"default:desert_sand","sumpf:sumpf"}, "default:desert_sand"
near_nodes_size = 2, },
near_nodes_vertical = 1, check_offset = -1,
near_nodes_count = 1, num_spawn_by = 1
plantlife_limit = -0.9, })
},
abstract_dryplants.grow_reedmace local did, did2, did3
) minetest.register_on_mods_loaded(function()
did = minetest.get_decoration_id("dryplants:reedmace_swamp")
did2 = minetest.get_decoration_id("dryplants:reedmace_water")
did3 = minetest.get_decoration_id("dryplants:reedmace_beach")
minetest.set_gen_notify("decoration", {did, did2, did3})
end)
minetest.register_on_generated(function(minp, maxp, blockseed)
local g = minetest.get_mapgen_object("gennotify")
local locations = {}
local deco_locations_1 = g["decoration#" .. did] or {}
local deco_locations_3 = g["decoration#" .. did3] or {}
for _, pos in pairs(deco_locations_1) do
locations[#locations+1] = pos
end
for _, pos in pairs(deco_locations_3) do
locations[#locations+1] = pos
end
if #locations == 0 then return end
for _, pos in ipairs(locations) do
grow_reedmace(pos)
end
end)
minetest.register_on_generated(function(minp, maxp, blockseed)
local g = minetest.get_mapgen_object("gennotify")
local locations = {}
local deco_locations_2 = g["decoration#" .. did2] or {}
for _, pos in pairs(deco_locations_2) do
locations[#locations+1] = pos
end
if #locations == 0 then return end
for _, pos in ipairs(locations) do
grow_reedmace_water(pos)
end
end)

View File

@ -1,52 +0,0 @@
-- Here you can enable/disable the different plants
REEDMACE_GENERATES = true
SMALL_JUNCUS_GENERATES = true
EXTRA_TALL_GRASS_GENERATES = true
-- Amount of Reedmace near water or swamp
REEDMACE_NEAR_WATER_PER_MAPBLOCK = 35 -- plants per 80x80x80 nodes (absolute maximum number)
REEDMACE_NEAR_WATER_RARITY = 40 -- percent
-- Amount of Reedmace in water
REEDMACE_IN_WATER_PER_MAPBLOCK = 35 -- plants per 80x80x80 nodes (absolute maximum number)
REEDMACE_IN_WATER_RARITY = 65 -- percent
-- Amount of Reedmace for oases, tropical beaches and tropical swamps
REEDMACE_FOR_OASES_PER_MAPBLOCK = 35 -- plants per 80x80x80 nodes (absolute maximum number)
REEDMACE_FOR_OASES_RARITY = 90 -- percent
-- growing of reedmace sapling
REEDMACE_GROWING_TIME = 600 -- seconds
REEDMACE_GROWING_CHANCE = 5 -- percent
-- Amount of small Juncus near water or swamp
JUNCUS_NEAR_WATER_PER_MAPBLOCK = 70 -- plants per 80x80x80 nodes (absolute maximum number)
JUNCUS_NEAR_WATER_RARITY = 75 -- percent
-- Amount of small Juncus at dunes/beach
JUNCUS_AT_BEACH_PER_MAPBLOCK = 70 -- plants per 80x80x80 nodes (absolute maximum number)
JUNCUS_AT_BEACH_RARITY = 75 -- percent
-- Tall Grass on dirt with grass
TALL_GRASS_PER_MAPBLOCK = 4800 -- plants per 80x80x80 nodes (absolute maximum number)
TALL_GRASS_RARITY = 75 -- percent
-- short grass becomes dirt with grass again
GRASS_REGROWING_TIME = 1200 -- seconds
GRASS_REGROWING_CHANCE = 5 -- percent
HAY_DRYING_TIME = 3600 -- seconds
REED_WILL_DRY = false -- wet reed nodes will become dry reed nodes
REED_DRYING_TIME = 3600 -- seconds
AUTO_ROOF_CORNER = true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 393 B

Some files were not shown because too many files have changed in this diff Show More