Commit graph

52 commits

Author SHA1 Message Date
trans_soup
dcb0eb257e update decomposition to use increasing ABM:s. 2023-10-16 21:30:57 +02:00
trans_soup
453add021d implement increasing ABM:s.
create public api function that registers "increasing ABM:s"; these
abstract over using numerical values associated with individual nodes in
ABM:s, allowing for straightforward creation of processes that occur
over time.
2023-10-16 21:27:59 +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
5bc048eb12 separate leaf growth from other tree growth. 2023-10-16 19:18:29 +02:00
trans_soup
6478e66ef7 add get_neighbors function to api. 2023-10-16 19:17:52 +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
263e98d526 add basic api support for loose nodes.
expose an api function to register "loose" versions of existing nodes,
and implement some behaviour for such nodes; they will fall down if
there is air below them, and will eventually become their non-loose
counterparts if there is not air below them.
2023-10-16 10:46:32 +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
07987229b5 update the readme. 2023-10-16 08:59:41 +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
trans_soup
7f3535ca27 make util_stringify more robust. 2023-10-15 17:46:08 +02:00
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
8cc8a08f3d create (currently usused) funnel mod. 2023-10-14 15:33:24 +02:00
trans_soup
68202b9c82 minor file rename. 2023-10-14 13:39:53 +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
eef0283c66 fix incorrect naming.
change description of stone tiles from "Brick" to "Tile".
2023-10-13 10:02:35 +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
1dd287a3c3 tweak hand reach range. 2023-10-13 09:00:05 +02:00
trans_soup
3eb6dc0f94 change miscellaneous player properties. 2023-10-13 08:59:51 +02:00
trans_soup
1aecdeb752 refactor: create general player interface.
create utility function for acting on player properties, and refactor
code for running and step height to make use of this.
2023-10-13 08:48:11 +02:00
trans_soup
732a8cb88a tiny refactor. 2023-10-13 08:30:25 +02:00
trans_soup
3c25192944 increase player step height. 2023-10-13 08:30:16 +02:00
trans_soup
48a51a77ce add running.
create mod for player-related stuff and move hand setup from core mod to
this new mod.

add feature where, while moving, players gradually speed up up to a
certain limit. their jump height is also increased while this happens.
2023-10-12 16:19:11 +02:00
trans_soup
8f956b2bfc create readme. 2023-10-12 11:38:09 +02:00
trans_soup
bfc036389c fix root growth error.
roots now extend from below the bottom log, instead of from the log
itself.
2023-10-12 11:13:44 +02:00
trans_soup
9133c0d5c4 minor tree growth changes.
make trees grow further before dying.
2023-10-12 11:12:21 +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
203de199a3 increase hand range. 2023-10-12 10:35:40 +02:00
trans_soup
a68bed3c70 change stoneworking recipes.
tile and bricks recipes now use cobblestone instead of stone, to make
them available again now that stone drops cobblestone.
2023-10-12 10:26:02 +02:00
trans_soup
3bd1e66e29 improve grass growth.
grass now grows up and down diagonally in the cardinal directions.
2023-10-12 10:25:01 +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
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
ac307233a1 add cobblestone and fix some drops.
add cobblestone node. make stone drop cobblestone and grass drop dirt.
2023-10-11 18:22:06 +02:00
trans_soup
2ed91bbcc3 update recipes.
add recipe for planting nuts with dirt.

change plank recipe into pummeling log with stone.

add (currently unusable) recipe to pummel leaves into dirt.
2023-10-11 12:04:16 +02:00
trans_soup
6d3412bba6 change stoneworking recipes.
replace recipes for bricks and tiles to make use of pummeling.
2023-10-11 11:40:41 +02:00
trans_soup
7581aba12a fix pummel error in crafting api.
pummel recipes now successfully make use of a provided `used_item`
value, instead of having a redundant `used_node` value.
2023-10-11 11:39:39 +02:00
trans_soup
9aa96f456f implement basic pummeling. 2023-10-11 11:15:08 +02:00
trans_soup
4e31d3219b start working on stoneworking mod.
create stoneworking mod.

create nodes stone bricks and stone tile, then add placeholder recipe
for both.
2023-10-11 10:28:23 +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