1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-14 05:50:19 +01:00
Commit Graph

55 Commits

Author SHA1 Message Date
Maksim
e6aec880de
Use Minetest 5.3 'minetest.is_creative_enabled' API (#2795) 2020-12-13 18:59:19 +01:00
Yves Quemener
bb9279ccb8 Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
2019-09-10 19:09:51 +02:00
t0ny2
54bb0afe7f Make waterlily wave when placed on waving water 2019-06-16 22:09:36 +01:00
An0n3m0us
e19f42d648 Add groups for tools and mushrooms (#2378) 2019-06-01 21:10:30 +02:00
HybridDog
b20725026e flowers: Light check optimisation in mushroom spread 2019-03-31 22:20:28 +01:00
acmgit
891f00e9db Flowers: Remove stack max definition (#2324) 2019-03-05 11:59:23 +01:00
Paramat
bf3efa0bb7
Flora spread: Reduce maximum density
Previously, maximum flora density was chosen based on the extremely rare
occurrence of all 8 flowers being at high density at one location. This
caused flora everywhere to spread to an unacceptably high density.

Revert the threshold to 3, which in testing results in a more acceptable
maximum density of 7 flora per 9x9 area.
2018-07-17 05:04:46 +01:00
tenplus1
11b3407671 Add food_* groups to default edibles (#2089) 2018-04-04 10:59:15 +02:00
paramat
63ebdfd139 Waterlily: Place as Y-offset simple decoration 2018-02-27 01:16:48 +00:00
paramat
495fa32873 Flower spread: Only spread to the same surface node 2018-02-17 09:37:27 +00:00
paramat
a587972010 Flower spread ABM: Optimise
Match maximum spread density to maximum mapgen density for flowers.
Place 3 flora nodes at once instead of 1.
Change ABM chance value to 300 to match previous spread rate.
ABM becomes 3 times less intensive.
2018-02-04 02:34:36 +00:00
paramat
2c5670563a Flowers: Add black tulip, green chrysanthemum
Adds a direct resource of green dye, and a flower resource of black dye.
Completes the colour sequence: red, orange, yellow, green, blue, violet.
Makes all base dyes cultivatable and sustainable, without the presence
of coal.

Add the new flowers to the world with the same density variation as the
others, but obviously with different noise seeds. Results in more flowers
in a world and more variety of flower combinations.
2017-11-27 01:51:33 +00:00
DTA7
a2d7678ffd Add nil checks for placer 2017-11-15 23:16:28 +00:00
tenplus1
2d8207a924 Flowers: Add waterlily right-click checks
Check for on_rightclick functions of nodes when holding a waterlily.
2017-09-25 15:58:59 +01:00
tenplus1
bcf98df5fa Mushroom spread: Optimise and make overridable
Move mushroom spread ABM action into a global and overridable function.
Optimise spread code.
Reduce spread range to reduce spread through walls.
2017-08-25 23:07:19 +01:00
Ezhh
40ed77185e Improve node descriptions (#1834) 2017-07-23 10:26:10 +02:00
Ezhh
3d1fc42f66 Make sapling, leaves and fence descriptions consistent (#1795) 2017-06-25 11:19:12 +02:00
paramat
c714d43319 Flowers: New texture for yellow dandelion
Derived from the white dandelion texture.
Uses the flower head colours of the previous yellow dandelion.
2017-06-08 15:52:00 +01:00
zaoqi
077316b4cd Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
paramat
08eec2beb7 Flora spread: Re-enable dry shrub replacing flora in desert sand
Flora is converted to dry shrub in desert sand and silver sand.
No conversion in sand to preserve sand dune grasses.
Dry shrubs do not spread so this conversion, used by players, is the
only way to generate them.
2017-03-26 03:06:37 +01:00
paramat
91182d6a9e Flora spread: Do not replace flora with dry shrub, only 'return'
If there is no group:soil node found below, do not replace flora with
dry shrub, this was breaking flower pots and other mods.
Originally, flora would only turn to dry shrub if in desert sand.
2017-03-22 22:30:35 +00:00
paramat
86fd616f3c Flora spread: Allow spread on rainforest litter. Other improvements
Use the soil group more instead of checking for multiple node names.
Remove 'neighbors' from ABM.
Turn any flora to dry shrub if on a non-soil, except when on default:sand
to avoid dune grasses being replaced.
Search for "group:soil" when searching for a position for the new flora
node, instead of searching for multiple node names, however do not spread
flora onto desert sand, which is in the soil group.

Remove default:dirt_with_snow from the soil group as it would be frozen
soil. It can be dug and placed to turn it into dirt (consider this some
extra work needed to make it cultivatable).
2017-03-20 00:14:56 +00:00
octacian
f6dfa4a1cb Waterlily: Avoid z-fighting of base texture with water surface
Avoid z-fighting visible from below.
Raise the nodebox base 1/64th of a node.
2017-02-12 01:23:53 +00:00
paramat
178db04526 Default, flowers: Improve plant selection boxes
Selection box width is limited to 14 / 16 node to visually
distinguish box from any neighbouring cubic nodes.
2016-11-05 09:14:10 +00:00
Fernando Carmona Varo
3c9d71e6f7 Make flammable: Flowers, grasses and several crafitems 2016-10-25 02:37:36 +01:00
Megaf
3be2f12beb Flowers: Add missing aliases for mushrooms from the mushroom mod 2016-08-22 00:43:04 +01:00
tenplus1
619ac52693 Add labels to ABMs
Useful for searches and the mod profiler.
2016-08-09 03:56:37 +01:00
paramat
db129f4ca0 Flowers: Fix waterlily on-place itemstack code
Add 'record_protection_violation()'
2016-07-23 04:56:49 +01:00
Tim
71c7e21669 Always return the leftover ItemStack for on_place and on_rightclick 2016-07-09 16:32:41 +01:00
paramat
f4f9e58ef2 Flowers: Make waterlily floodable
When waterlilies are placed near river water source make flowing river
water remove waterlilies instead of flowing around them in an ugly way
2016-07-01 07:05:53 +01:00
Yutao Yuan
e0bec501f2 Flowers: Fix misaligned waterlily texture
Previously waterlily has misaligned top and bottom textures and looks
different when viewed from below.

This also hides the flower in bottom texture.
2016-06-21 02:21:00 +01:00
kilbith
16fe1efcd8 Flowers: Fix waterlily node's duplication with stack of 1 2016-04-23 20:08:43 +01:00
paramat
ab7b7c7504 Flowers: Make flower spread a public function to enable override
Remove search for 'group:flora_block'
Enable flora spread on 'dirt with dry grass'
2016-04-19 02:58:03 +01:00
tenplus1
9ece86cc7a Flowers: Tweak flower and mushroom spreading
Tidy up position numbers and code
Check for flora group aswell
Improve node light check for mushroom growth
Shrooms grow in 3 and below light
2016-04-16 19:27:41 +01:00
kilbith
7be008936e Flowers: Fix itemstack when waterlily is placed 2016-04-12 01:28:16 +01:00
kilbith
47b197e4d5 Flowers: Cleaning of waterlily's placement 2016-04-08 01:13:14 +01:00
paramat
7d55320d5c Default: Make some plant nodes non-flammable 2016-03-22 15:46:07 +00:00
paramat
7d2dfe4101 Consolidate ABMs
Spread ABM intervals evenly across 1 to 16 seconds
16s ensures no nodes are missed when player walks past
Adjust chance values to compensate, for identical action rates
Combine lavacooling ABMs into one, return to chance = 1
Grass growth: add 'neighbors = "air"' to avoid
processing the thousands of underground dirt nodes
Grass death: Reduce action rate to that of grass growth
Fire: Use chance = 1 for flame extinguishing
and flame removal when mod is disabled
2016-02-14 05:22:20 +00:00
Auke Kok
32bdb9a393 Remove spores from mushrooms.
These have almost no value gameplay wise. Mushrooms spread
by their very nature into appropriate soil nearby, and
harvesting spores is something only scientists do. Actual
mushroom farmers leave a few mushrooms and put on more
manure, and keep the light off.

Modify the growth ABM to test for light levels and attempt
to plant a similar mushroom nearby (+/- 2 x,z, +/- y). Light
at both source and destination needs to be low enough. I've
tuned it to be 3-4 spaces from a torch.

Mushrooms will die in full sunlight, but they can survive under
trees and may grow out at night anywhere.

Removed obsolete textures.

Remove unused nodes and provide aliases for them.

Aliased obsolete nodes so no unknown item nodes appear.

Mushrooms die only in full sunlight (light level 15).
2015-12-25 15:37:40 +00:00
paramat
8148bbf95e Flowers: Allow placing waterlily on river water
Add 'buildable_to = true' to flowers and waterlily
2015-10-05 01:47:18 +01:00
paramat
d0fad4b004 Flowers: Make waterlily not walkable. Add missing flower group 2015-09-17 16:50:11 +01:00
paramat
4bb9652c0f Flowers: Add waterlily and add to mapgen 2015-09-17 12:34:17 +01:00
paramat
fd5721faa8 Flowers: Make flowers wave when waving shader enabled 2015-09-10 16:34:18 +01:00
paramat
408ee69fb8 Flowers: Add sporeless mushrooms and edit drops 2015-08-14 01:34:35 +01:00
est31
7066a6a0dd Tweak mushroom drops
-> Don't always drop the main mushroom (allowed endless spore generation loop before)
-> Drop less spores, before you got lots of spores
2015-08-10 01:03:15 +02:00
paramat
47c7b0b187 Mushrooms: Rename spore nodes. Single ABM for mushroom growing
Code re-arranged and clarified
2015-08-07 19:07:48 +01:00
paramat
8d1eef025d Flowers: Make mushrooms farmable using spores 2015-08-04 01:00:47 +01:00
Rui914
da9789e3ce Fix not_in_creative_inventory
Update
2015-07-17 20:53:55 +01:00
jeanpatrick.guerrero@gmail.com
0cf4fd4c18 Add mushrooms 2015-07-17 10:12:00 +02:00
LeMagnesium
01ad09036b Improved flowers' registration system - Specific nodeboxes, - Color groups - All datas were put into a table then unpacked for add_simple_flower 2015-06-06 14:51:25 +02:00