Commit graph

20 commits

Author SHA1 Message Date
trans_soup
68e005814f refactor sapling support checking.
saplings now only check for groups, not specific nodes, when determining
whether they are supported. the previously checked nodes are now in the
new group that's being checked.
2023-10-19 15:08:53 +02:00
trans_soup
9e43abb69a make living roots drop dead roots. 2023-10-19 14:45:24 +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
00829dbce9 cleanup node registration.
separate tree and leaves registrations into own files.
2023-10-17 15:43:18 +02:00
trans_soup
c5d51e9fe5 make nuts sometimes drop from leaves.
give living & growing leaves a chance of dropping nuts, finally making
trees actually farmable.
2023-10-17 15:14:02 +02:00
trans_soup
31b2242c38 make leaves fall down when unsupported.
also refactor leaves registration code.
2023-10-17 11:25:13 +02:00
trans_soup
19d63efcf5 refactor log registration.
rename log and sapling textures to be more clear. rewrite node
registration code to account for this, and to be overall cleaner.
2023-10-17 11:23:32 +02:00
trans_soup
18117daade make living logs have same texture as dead logs. 2023-10-17 10:30:12 +02:00
trans_soup
5d98c3dadc add growing_leaves node.
create node representing growing leaves, and use it where previously
living leaves was used. this allows for a distinction between leaves
that will try to create more leaves, leaves that can provide nutrients
to other leaves, and leaves that are dead, whereas previously the first
2 of those couldn't be distinguished.
2023-10-17 10:26:15 +02:00
trans_soup
d28bfbdaf3 add root_alive node. 2023-10-17 09:45:49 +02:00
trans_soup
a3012de73f refactor: clean up leaves registration. 2023-10-17 09:44:42 +02:00
trans_soup
c41d161802 make saplings look identical to living logs. 2023-10-17 09:43:25 +02:00
trans_soup
2439b1264f make all leaf variants use air_flowable group. 2023-10-16 21:42:25 +02:00
trans_soup
d04e92a15c add decomposition of leaves into dirt.
make leaves decompose over time into dirt when near dirty nodes. also
remove placeholder pummel recipe that turns leaves into dirt.
2023-10-16 20:41:09 +02:00
trans_soup
06110f157b refactor leaves node registrations. 2023-10-16 20:32:52 +02:00
trans_soup
568e8059f9 refactor: more wrappers
create more wrappers for built-in functions and use them instead.
2023-10-13 09:31:55 +02:00
trans_soup
7df4ddec1c create woodworking mod and refactor.
move plank registration and recipe out of tree mod into newly created
woodworking mod.

also update plank recipe to require cobblestone instead of stone to be
held while pummeling.
2023-10-11 19:05:38 +02:00
trans_soup
09feb14dbb fix log textures. 2023-10-11 18:26:48 +02:00
trans_soup
c3fb8df14a add growing tree nodes.
add `log_alive` and `leaves_alive`. make alive logs actually have a top
texture (bottom texture and dead logs are still wrong, though).

slightly refactor some tree growth code.
2023-10-11 18:23:09 +02:00
trans_soup
a973bbdbf8 initial commit.
created a few proof-of-concept mechanics. took some textures from
minetest game. implemented basic tree growth and stacking in-world
crafting.
2023-10-11 09:17:21 +02:00