Commit graph

8 commits

Author SHA1 Message Date
trans_soup
f134082112 make nuts drop from leaves less often. 2023-10-19 15:14:02 +02:00
trans_soup
9c28941a6a fix error in decomposing leaves placement code.
make sure that the node at the placed position is actually a decomposing
leaves variant before doing anything else. (this may not be the case,
since a node may start falling immediately after being placed.)
2023-10-19 14:15:17 +02:00
trans_soup
a4f121ac24 make some leaves non-walkable.
make leaves and decomposing_leaves non-walkable, and make them support
falling nodes.
2023-10-19 14:14:05 +02:00
trans_soup
4b408d9943 make decomposing leaves have layers.
decomposing leaves now stack in layers, each one 1/4 of a node in
height.

currently this doesn't affect their behaviour, beyond making them stack
when placed or landing.
2023-10-19 12:54:09 +02:00
trans_soup
75e66075d0 simplify node registration.
make the wrapper `blockgame.register_node` make reasonable assumptions
that make node registration more convenient.

change other code to take advantage of that change.

also remove the `blockgame.reg_simple_node` utility since it's now
redundant.
2023-10-17 20:20:42 +02:00
trans_soup
4ea8050c67 simplify leaves falling from trees.
by using minetest builtin support for nodes that fall when they're not
supported.
2023-10-17 19:15:52 +02:00
trans_soup
f31940ffa5 make unsupported leaves die & fall.
leaves that aren't in contact with living logs, or are not in contact
with any supported leaves, or are too far away from living logs, will
now die and fall down.
2023-10-17 16:00:36 +02:00
trans_soup
00829dbce9 cleanup node registration.
separate tree and leaves registrations into own files.
2023-10-17 15:43:18 +02:00