Commit graph

13 commits

Author SHA1 Message Date
trans_soup
d1a8ad952b fix random tick crash possibility. 2023-10-15 17:38:11 +02:00
trans_soup
24ec93cd50 fix name fields in mod.conf files. 2023-10-15 17:23:37 +02:00
trans_soup
9585a7a4b3 add random ticks.
every server step, mapblocks near online players will have randomly
selected nodes within them receive a "random tick", the behaviour of
which is determined in node definitions.
2023-10-13 13:22:56 +02:00
trans_soup
6040e73f6c add debug utility to api. 2023-10-13 13:17:47 +02:00
trans_soup
a2ab91c992 fix math.random usage.
fix usage of `math.random` in various places to provide both a minimum
and a maximum number, instead of just maximum.

also renamed some files very slightly.
2023-10-13 13:17:14 +02:00
trans_soup
2e32ca82ba add register_lbm wrapper. 2023-10-13 09:55:09 +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
ccd059aa29 generalize creating wrappers for built-ins.
create utility for creating wrapper functions for `minetest` methods.
2023-10-13 09:19:13 +02:00
trans_soup
91807870fe miscellaneous refactors & fixes.
move several functions into the api.

fix root growth directions.

clean up root and grass growth code.
2023-10-12 11:09:40 +02:00
trans_soup
7b86727e4b create grass mod.
create a new mod that implements basic grass growth and death.
2023-10-12 08:26:37 +02:00
trans_soup
850d397a97 refactor: minor code style change.
change the way some functions are declared.
2023-10-11 19:12:47 +02:00
trans_soup
6fb3f5fde3 refactor and fix errors.
move vector utilities out of tree api into own generic api. fix related
issues.
2023-10-11 10:01:54 +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