Commit graph

14 commits

Author SHA1 Message Date
trans_soup
c0ef9c3677 tweak grass growth rate.
it now grows twice as slowly.
2023-10-19 13:20:36 +02:00
trans_soup
5df44d2b24 rework loose node registration.
loose nodes are now automatically registrered when their settled
counterparts are. also rewrite a small amount of wrapper code and node
registration to work with this.
2023-10-17 20:52:06 +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
c6157df12c remove loose variants.
rewrite some node registration code, removing the so far unused loose
nodes, and putting in place some data that outlines how they might be
implemented in the future.
2023-10-17 20:08:36 +02:00
trans_soup
47e7e4fb0b remove bg_api_fall again.
as it turns out that minetest already handles falling nodes.
2023-10-17 19:19:35 +02:00
trans_soup
0c9f6a7119 move falling node code to own mod.
create `bg_api_fall` mod, and move files `falling_node.lua` and `loose_node.lua` to there from `bg_api`.

update dependencies in other mods to account for this change.
2023-10-17 18:54:23 +02:00
trans_soup
aae1beea64 refactor grass spreading and related api function. 2023-10-17 15:40:49 +02:00
trans_soup
7df5d33d02 refactor: extract repeated code into api function.
move function `starts_with`, which was declared twice in separate files,
to the api, and make those files use that function instead.
2023-10-17 14:58:15 +02:00
trans_soup
6ac310f674 integrate bg_grass into bg_terrain. 2023-10-16 21:40:29 +02:00
trans_soup
da9fb8970d change stone texture to custom texture.
(which accidentally looks very similar to minecraft clay.)
2023-10-16 18:31:56 +02:00
trans_soup
809d394e9a remove unused textures. 2023-10-16 18:31:47 +02:00
trans_soup
b6699fcc68 add loose versions of some terrain nodes.
add loose versions of dirt, grass, and cobblestone nodes.
2023-10-16 10:50:25 +02:00
trans_soup
20b29c833f complete cleanup after rename.
clean up things that were broken after renaming `bg_core` to
`bg_terrain`.

also clean up after global rename that added `bg_` prefix to every mod
name.
2023-10-16 10:14:34 +02:00
trans_soup
7755583fa4 rename mods and add hacky cleanup thing.
rename mods; add `bg_` prefix.

add hacky cleanup ABM (couldn't get LBM:s to work), that converts old
nodes into new ones according to this rename.

the cleanup doesn't do anything for items, though.
2023-10-15 18:22:13 +02:00