Commit Graph

7 Commits

Author SHA1 Message Date
Jordan Leppert 932485a6fe
register_on_generate: tries and rarity_fertility (#8)
* Can specify the number of tries when generating
* Added rarity_fertility which means rarity can be affected by fertility level.
Rarity can now be a fraction.
A rarity of 100 (with rarity_fertility of 0) means the object will never appear, and a rarity of 0 means it will always appear.
2021-12-24 09:30:36 +01:00
Jordan Leppert bd92dc1b0b
Fixing humidity/temperature data (#5)
* Fixing humidity/temperature data returned from get_biome_data() to fix the range (and sign) of the original data
* Removing unused variables
Co-authored-by: OgelGames <olliverdc28@gmail.com>
2021-12-11 19:45:04 +01:00
Buckaroo Banzai a3ce221eed
Add luacheck and github workflow (#4)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
Co-authored-by: OgelGames <olliverdc28@gmail.com>
2021-12-10 13:45:31 +11:00
Jordan Leppert 823db77217
Enable generating objects on sides or bottom of nodes at mapgen time (#2)
* biome_lib.register_on_generate now supports spawn_on_sides and spawn_on_bottom flags
* biome_lib.register_on_generate now passes node position and face direction to node placement function
* Replacing spaces with tabs
* Fixing API to ensure it behaves same way it used to, when not passing spawn_on_sides or spawn_on_bottom flags.
2021-12-06 19:22:29 +01:00
sfan5 4e3493a981 use %Y-%m-%d for the date instead of %F
strftime codes don't work in some Windows + LuaJIT setups, see:
https://sourceforge.net/p/mingw-w64/bugs/793/
fc63c938b5
2021-04-23 18:45:40 -04:00
Vanessa Dannenberg e8afe017da Use engine decorations when possible 2021-04-23 17:03:29 -04:00
Vanessa Dannenberg 76b5046009 Split the actual API code into a separate file from init.lua 2021-04-20 21:05:50 -04:00