Commit Graph

137 Commits

Author SHA1 Message Date
kabou 3f4dafc68f Add check for unknown nodes.
* Check if node has a definition table before attempting to evaluate its
  attributes.
* Define local variable to cache multiple accesses to `registered_nodes[]`
  and improve readability.
2022-03-09 14:14:45 +01:00
Lizzy Fleckenstein 970988cb39
Add sugar cane colorisation 2021-11-03 19:58:50 +01:00
NO11 bf62eb33fa Change label of cactus abm 2021-09-03 14:06:21 +00:00
NO11 0da7b3fbda Make cactus mechanisms more MC like (Fix #1741) 2021-09-02 20:38:01 +00:00
NO11 549bdeb6e9 Remove object:is_player 2021-07-12 21:41:57 +00:00
AFCMS e81da3c4ff fix some mods using "core" insteed of "minetest" 2021-06-12 00:18:52 +02:00
AFCMS cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
NO11 bb77443892 [mcl_core] fix function codestyle in functions.lua 2021-05-26 17:43:42 +00:00
AFCMS 402a1d0088 [mcl_core] fix last warning 2021-05-23 00:13:27 +02:00
AFCMS b8488ce55e [mcl_core] fix missing warnings 2021-05-23 00:12:54 +02:00
NO11 a8760c0375 Reduce the radius in which a cactus destroys items 2021-04-15 12:23:08 +00:00
NO11 bbffda3635 Make cactus destroy items 2021-04-15 11:21:15 +00:00
AFCMS 8f30e223e2 I hate reverting something xD 2021-03-16 17:39:06 +01:00
kay27 b0f151147c Fix the trees, Wuzzy/MineClone2#1031 2021-01-30 05:23:34 +04:00
kay27 948265fd6b Fix Wuzzy/MineClone2#1028 - Make tree saplings grow in inactive areas (approx. time calc.) 2021-01-30 04:42:53 +04:00
Lizzy Fleckenstein 96ca23419a Fix #944 2021-01-05 15:40:03 +01:00
Lizzy Fleckenstein 14551edcd2 Remove debugging message from last commit 2021-01-05 15:23:42 +01:00
Lizzy Fleckenstein f253d49a8d Fix #901 2021-01-05 15:19:31 +01:00
Lizzy Fleckenstein abdb76c2a0 Fix #942 2021-01-04 10:09:44 +01:00
Wuzzy d60a0a0949 Fix ice melt not cause surrounding nodes to update 2020-12-03 12:36:58 +01:00
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