Commit Graph

167 Commits

Author SHA1 Message Date
Wuzzy f91ae540c2 Add leafdecay and anvil damage particles 2020-08-19 13:22:40 +02:00
Wuzzy a08152d8fb Localize some variables in mcl_core 2020-06-03 20:19:27 +02:00
Elias Åström 2e79f1f0ed Check if there is room for tree to grow
Previously tree saplings would grow regardless of the blocks above it.
This could be abused to destroy bedrock and other nodes.

To solve this, checks are added for nodes around the trees.  The volume
checked depends on the tree type.  The volume for each tree has been set
so reject trees where branches would grow into other nodes.  Some nodes
types like torches, plants and wood are ignored in the checks.

Saplings in a 2x2 formation will grow into normal trees if there is no
room for a huge tree.  Oak trees has separate checks for balloon oak
trees and normal oak trees, if there is no room for a balloon oak, it
becomes a normal oak tree.
2020-05-23 19:37:02 +02:00
Wuzzy eea07f0ce7 Fix incomplete dry grass replacement LBM 2020-04-27 14:05:09 +02:00
Wuzzy c5e4ec5e27 Use ephemeral sounds 2020-04-07 00:55:45 +02:00
Wuzzy a5b4a261dc Dry grass replacement: Use fallback param2 2019-12-16 23:59:49 +01:00
Wuzzy aaedf6517a Update grass block param2 when placing snow nodes 2019-12-14 01:52:01 +01:00
Wuzzy 5f2cc506f0 Fix broken legacy dry grass LBM 2019-12-14 01:41:49 +01:00
Wuzzy 40453d597b Add LBM to kill old drygrass nodes 2019-12-14 00:03:43 +01:00
Wuzzy 3e3ed630e5 Add per-biome grass coloring 2019-12-13 23:48:13 +01:00
Wuzzy 6002cd0af5 Fix tallgrass, fern, bonemeal for new grass color 2019-12-13 15:32:57 +01:00
Wuzzy 9c55b6c9c9 Update grass color after placing grass block 2019-12-13 14:18:35 +01:00
Wuzzy 325801efd7 First step towards param2-based grass color 2019-12-13 14:03:12 +01:00
Wuzzy 748b5d4a4b Localize a variable 2019-09-19 00:35:28 +02:00
Wuzzy 6e9d712c5e Fix ice not melting properly by non-Sun light 2019-06-02 10:12:36 +02:00
Wuzzy 435ae85d68 Fix grass block crash in v6 2019-03-25 09:38:39 +01:00
Wuzzy 1b7c41fc81 Grass block: Change grass color depending on biome 2019-03-25 09:25:52 +01:00
Wuzzy 9e57828958 Add tileable_vertical to covered dirt nodes 2019-02-09 21:28:53 +01:00
Wuzzy 626f7f6e97 Delete senseless argument in minetest.remove_node 2019-01-31 05:32:10 +01:00
Wuzzy b992100106 More variations of mega spruces and large oaks 2018-05-13 18:03:57 +02:00
Wuzzy 16bb9b8901 Localize various unneeded global variables 2018-01-26 22:37:42 +01:00
Wuzzy 647524f503 Rework the overly weird vine growth algorithm 2018-01-23 06:40:07 +01:00
Wuzzy 064858ff59 “Still <Liquid>” → “<Liquid> Source” 2018-01-23 04:12:44 +01:00
Wuzzy fc0516cb71 Melt ice and top snow @ light >= 12 2018-01-07 21:01:34 +01:00
Wuzzy f5de6db4aa Add grass path and farmland to creative inventory 2017-11-23 00:32:51 +01:00
Wuzzy 8db574d30e Clean up grass block group stuff 2017-11-15 20:27:29 +01:00
Wuzzy 72f5591400 Add dry-colored grass/fern variants 2017-11-14 23:44:53 +01:00
Wuzzy d66de5adfb Reduce frequency of vines ABM to reduce load 2017-11-02 23:52:09 +01:00
Wuzzy 1e2343d649 Make floating vines decay
Also destroy them immediately with leafdecay and when try try to grow but notice they have been floating the whole time.
2017-11-02 23:21:04 +01:00
Wuzzy 427eb32448 Add a second huge jungle tree schematic, tweak the 1st one 2017-09-12 05:35:02 +02:00
Wuzzy f64423e983 Redo acacia schematics completely 2017-09-09 08:06:02 +02:00
Wuzzy 01f5cc7515 Add mega spruces to sapling growth 2017-09-09 05:35:32 +02:00
Wuzzy 3db3193494 Disable grass spread functions for snowed dirtlike 2017-09-08 00:13:20 +02:00
Wuzzy 5c906f4af6 Update sounds of snowed dirtlike blocks 2017-09-07 06:57:55 +02:00
Wuzzy 661b586a64 Refactor snow cover code 2017-09-06 19:46:51 +02:00
Wuzzy 9fb148f8bf Make grass block and friends snowed if placed below snow cover 2017-09-06 19:33:39 +02:00
Wuzzy 576af661b1 Refactor code of snowed nodes 2017-09-06 19:19:25 +02:00
Wuzzy a31da5efd5 Don't call minetest.add_item for empty itemstring 2017-09-05 15:15:00 +02:00
Wuzzy d8f3a5ee7f Add large oak trees 2017-09-05 08:18:00 +02:00
Wuzzy 594aebfa45 Add new spruce schematics 2017-09-05 03:51:13 +02:00
Wuzzy c315973648 Add a 3rd huge spruce tree variant 2017-08-31 22:36:02 +02:00
Wuzzy 7a47e0dd6d Remove 2 deprecated vm:update_map functions 2017-08-31 22:34:01 +02:00
Wuzzy 8ee837d158 Make huge spruce trees growable by sapling 2017-08-31 22:16:08 +02:00
Wuzzy 52648bcc16 Add small balloon oak (oak variant)
For ca. every 12 oaks, there is 1 small ballon oak.
2017-08-31 18:33:49 +02:00
Wuzzy a4363b975d Change jungle tree schematic, update jungle biome 2017-08-31 18:04:40 +02:00
Wuzzy 0a957ee2ef New oak and birch tree schematics
Also fix broken glacier biome
2017-08-31 04:56:09 +02:00
Wuzzy b9a5843ec7 Implement proper 2×2 sapling check 2017-08-31 02:44:03 +02:00
Wuzzy 4f20ab1950 Simplify leafdecay stuff, add leafdecay factoid 2017-08-31 02:06:35 +02:00
Wuzzy 65ec2c9b54 Add simple 2×2 sapling check
Still not fully complete
2017-08-31 01:53:25 +02:00
Wuzzy 47161169a6 Refactor tree growing code 2017-08-30 23:23:15 +02:00
Wuzzy c335356723 Use new acacia tree schematic, remove apple tree 2017-08-29 22:39:22 +02:00
Wuzzy 058049897c Drop sugar canes when dirt/etc. below was dug 2017-08-22 17:14:27 +02:00
Wuzzy 5ef6cb1f83 Update dark sapling tree growth 2017-08-21 13:02:42 +02:00
Wuzzy b62349bc9f Remove unused jungle tree generation code 2017-08-21 12:50:35 +02:00
Wuzzy 4f03f1c516 Merge branch 'biomes' 2017-08-21 03:43:07 +02:00
Wuzzy 4dc1d6b43b Fix outdated get_node_group 2017-08-18 21:36:28 +02:00
Wuzzy 022682a75e Refactor: Drop legacy get_mapgen_params 2017-08-18 21:25:29 +02:00
Wuzzy e5a34367c9 Use new Minetest settings API syntax for most mods 2017-08-09 16:17:00 +02:00
Wuzzy 25015f9d32 Reduce sapling growth chances 2017-08-04 21:20:42 +02:00
Wuzzy 9ebabff5f4 Add another growth stage for saplings 2017-08-04 21:05:58 +02:00
Wuzzy 722d4cb500 Heavily refactor nodes in mcl_core 2017-07-07 16:37:05 +02:00
Wuzzy fa3ca02906 Fix crash with unknown item in water 2017-06-29 11:49:51 +02:00
Wuzzy b1b73dd100 Don't crash if liquid_range==nil for liquids 2017-06-08 03:11:59 +02:00
Wuzzy 3e58fe6cd8 Add v6-style sapling growth for jungle trees
Taken from Minetest Game 0.4.15. Needs to be replaced later
2017-06-03 03:21:25 +02:00
Wuzzy ad41c9b77a Don't use minetest.inventorycube for stained glass 2017-05-31 18:18:31 +02:00
Wuzzy 24c34b206f Fix acacia/spruce sapling not growing correctly 2017-05-30 15:31:04 +02:00
Wuzzy 7d6bfceeba Don't spread grass block/mycelium below liquid 2017-05-28 00:46:09 +02:00
Wuzzy 2b4dc9fdfa Remove debug message 2017-05-26 21:27:48 +02:00
Wuzzy bf9c990760 New vines growth algorithm (WIP) 2017-05-26 21:25:25 +02:00
Wuzzy de10e2e1a8 Grow proper acacia tree from acacia saplings 2017-05-26 02:36:25 +02:00
Wuzzy b5b8561483 Tree grown from spruce sapling matches v6 pines 2017-05-26 02:16:41 +02:00
Wuzzy 0fe26b785e Make water/lava interactions much more MC-like 2017-05-23 05:31:07 +02:00
Wuzzy 95e4a5a177 Fix sources with param2==0 not washing stuff away 2017-05-22 18:56:46 +02:00
Wuzzy 5f35bd2d2d Proper implemetation of liquid flow node actions 2017-05-20 05:05:58 +02:00
Wuzzy c49e8dfba0 Destroy some nodes by flowing lava 2017-05-20 04:11:14 +02:00
Wuzzy 7140bf71d8 Play sound for cooling lava 2017-05-20 03:36:07 +02:00
Wuzzy 609a967c32 Fix broken stained glass crafting (no groups) 2017-05-15 20:42:23 +02:00
Wuzzy ab9b2056d9 Stained glass is now transparent to sunlight 2017-05-15 01:16:30 +02:00
Wuzzy 91dc94a41f Don't wash away nodes diagonally 2017-05-15 01:09:33 +02:00
Wuzzy 7ac57b7a0b Don't wash away dig_by_water when above water 2017-05-15 01:00:10 +02:00
Wuzzy da3205837b Add label to all ABMs 2017-05-15 00:45:54 +02:00
Wuzzy ad73e81a64 Use minetest.get_nodes_in_area for grass spread 2017-05-15 00:30:49 +02:00
Wuzzy 9dd6350f7d Add back the grass path ABM again 2017-05-14 22:58:37 +02:00
Wuzzy 3f57f80d54 Grass Path+Farmland→Dirt if below solid, instantly 2017-05-14 22:44:34 +02:00
Wuzzy d20de89780 Slowly turn grass path below solid node to dirt 2017-05-14 22:25:56 +02:00
Wuzzy ba87295fa4 Don't catch_up on grass block spread 2017-05-14 19:49:04 +02:00
Wuzzy 31fa759947 Turn grass block and mycelium back to dirt in dark 2017-05-14 02:23:46 +02:00
Wuzzy 04478e5cd3 Uproot plant when mycelium spreads to dirt below 2017-05-14 00:42:20 +02:00
Wuzzy 6221b060fc Spread grass and mycelium on a 3×5×3 area only 2017-05-14 00:02:39 +02:00
Wuzzy 5fb6784813 Spread grass block and mycelium to lit dirt 2017-05-13 23:32:43 +02:00
Wuzzy bb965b6d63 Make still water detach dug_by_water nodes as well 2017-05-09 19:53:07 +02:00
Wuzzy 58383c9db1 Don't auto-remove snow cover 2017-04-01 17:09:33 +02:00
Wuzzy 68e6439e1c Revert "Don't auto-remove snow cover"
This reverts commit 8e3015a208.
2017-04-01 17:08:47 +02:00
Wuzzy 8e3015a208 Don't auto-remove snow cover 2017-04-01 07:42:59 +02:00
Wuzzy a977aca40e Lower chances for snow cleanup ABM 2017-04-01 07:30:40 +02:00
Wuzzy 1bca50e2e8 Remove snow covers periodically 2017-04-01 07:24:56 +02:00
Wuzzy 6eed06f7fc Add equivalence code for the snowy dirt blocks 2017-04-01 06:51:55 +02:00
Wuzzy 01200e9214 Implement proper bone meal behaviour for saplings 2017-04-01 02:29:36 +02:00
Wuzzy bcc07bb2aa Allow placing cactus only on cactus or any sand 2017-03-21 21:48:26 +01:00
Wuzzy 549f541877 Add 4 Minecraft material groups
So they can be used by the noteblock
2017-03-11 05:34:58 +01:00