42 Commits

Author SHA1 Message Date
BramvdnHeuvel
c82e3094c2
Add everness mineral water as dynamic liquid (#9)
* Add everness mineral water as dynamic liquid

* Code style fixes
2024-05-05 21:11:50 +02:00
FaceDeer
7bdc95c60a
Mineclone compatibility (#8)
* splitting up and genericizing some code, localizing default-dependent stuff in one file

* make cooling lava an API as well

* split out spring code, start roughing in mineclone support

* ooh, at some point altitude checking was added to ABM definitions. Awesome.

* fix crash in flow through

* adding mapgen spring clay. Mineclone2 and Mineclone5 both need to accept pull requests fixing bugs before this will work
2022-09-17 17:53:19 -06:00
Jude Melton-Houghton
cf67547455
Combine mapgen callbacks for efficiency (#7)
1. Two read/write pairs to the VM have been replaced with one.
2. If no changes are made to the data, it is not written back to the VM.
2022-04-14 19:34:28 +02:00
FaceDeer
df13b27260 switch to native translator 2020-02-17 23:07:10 -07:00
FaceDeer
ab10a93181 update deprecated functions, add mapgen shortcut to drop water straight down if there's space below 2020-01-31 01:42:23 -07:00
FaceDeer
2910a321ee steal flood-fill algorithm from [waterworks] 2019-07-07 12:32:20 -06:00
FaceDeer
5bc4e452b1 add simple liquid displacement 2018-12-18 02:41:55 -07:00
FaceDeer
c5907a1490 demote error to warning 2018-12-01 20:49:44 -07:00
FaceDeer
1bcdefb766 Add an option to keep floatlands from draining 2018-11-19 00:00:06 -07:00
FaceDeer
6dea6d343d prevent occasional giant water cubes 2018-11-18 19:06:29 -07:00
FaceDeer
ecbb80ec5f better flood-fill 2018-11-18 12:30:57 -07:00
FaceDeer
fb5d80c38e add cart rails to the default flow-through types 2018-04-29 13:54:59 -06:00
FaceDeer
fb249f27fb voxel garden's version of the "default" mod is missing a few things, protecting against nils. 2018-04-17 22:23:54 -06:00
FaceDeer
c44a881a7f remove a deprecated API call 2017-04-07 11:17:26 -06:00
FaceDeer
08989ef513 redo lava/water interaction 2017-04-07 00:23:34 -06:00
FaceDeer
0cb1f2684a add an update_liquids call 2017-03-17 18:05:28 -06:00
FaceDeer
eff43b5993 add mapgen prefill feature for water 2017-03-17 15:20:19 -06:00
FaceDeer
d608cf0500 fix another global/local issue 2017-02-20 15:08:41 -07:00
FaceDeer
16f389a18a fix undeclared global assignment 2017-02-20 14:01:16 -07:00
FaceDeer
ee8d50991d add the "flow-through" feature
allows liquid to teleport through nodes that it should logically be able
to pass through.
2017-02-17 22:28:52 -07:00
FaceDeer
ab3ff81b86 simpler method of overriding water node renewability 2017-02-13 23:50:07 -07:00
FaceDeer
218d925e14 added documentation to the spring block 2017-02-12 12:58:16 -07:00
FaceDeer
9623aec62e Not much to translate here, but why not. Internationalization library support. 2017-02-02 20:27:54 -07:00
FaceDeer
cf90db8544 disable river water dynamicism by default, it makes a mess on valleys mapgen. 2017-02-02 11:26:51 -07:00
FaceDeer
58348b9b4c Removing strict dependency on the default mod
If one should desire to use this mod for liquid in a
non-default-dependent game, I've made the dependency on default
optional. Note that the only thing this mod does in that case is define
an API, all the rest of its features are moot (since they act on
default-defined liquids and mapgen clay).
2017-01-29 15:28:48 -07:00
FaceDeer
dbd14626eb remove old comment 2017-01-27 22:55:59 -07:00
FaceDeer
230b4dda5d Add settings for water flow probabilities too 2017-01-27 20:47:22 -07:00
FaceDeer
572329cfc6 apparently this helps Lua's garbage collection, it was possible to blow Lua's memory budget by flying very fast but this fixes that. 2017-01-26 23:12:06 -07:00
FaceDeer
151d2e034b using water level for mapgen cutoff too 2017-01-26 23:03:27 -07:00
FaceDeer
32b11a29d1 get water level from mapgen params 2017-01-26 22:07:09 -07:00
FaceDeer
4bccd44d6e exposing API so that other mods can use this abm. 2017-01-26 14:12:13 -07:00
FaceDeer
e537155d25 no need to wait for flowing liquid to appear, allow liquid to flow directly into air as well. 2017-01-25 12:10:48 -07:00
FaceDeer
698b0e5883 Remove unnecessary emphasis on a comment
It was bothering me for some reason. This is the most impactful commit
I've sent in for this depot yet.
2017-01-24 20:04:28 -07:00
FaceDeer
96fdd6dd43 update readme, fix missing local declarators 2017-01-24 15:20:46 -07:00
FaceDeer
de43421ba7 add a "spring" node for creative mode that's more generic (and less vigorous) than the damp clay 2017-01-24 15:11:29 -07:00
FaceDeer
63e76bf5f8 fold horiz_add function directly into the ABM, eliminate a few more redundant table lookups 2017-01-24 09:34:30 -07:00
FaceDeer
5d4ea4b55d Save some table lookups in the spring ABM too 2017-01-24 01:27:18 -07:00
FaceDeer
61315b761d squeeze a few more table lookups out of the code 2017-01-24 01:20:45 -07:00
FaceDeer
0a550c5c98 greatly boost the speed of horizontal flow 2017-01-24 01:02:33 -07:00
FaceDeer
319ebfd53e Make springs much more vigorous about replacing missing water above them 2017-01-23 16:53:50 -07:00
FaceDeer
3ce11db25a remove a leftover debug call 2017-01-23 10:49:12 -07:00
FaceDeer
48b6f1be20 Initial commit 2017-01-22 23:45:00 -07:00