Wuzzy
02213476c6
Fix undocumented vector.new syntax and typo
2024-07-27 07:52:20 +02:00
xXx_GLOCKrzmitz_xXx
3b1762f90c
bug fix
2024-07-26 23:38:37 +00:00
xXx_GLOCKrzmitz_xXx
99417cf8ce
return the text instead of sending a chat message to the player
...
this has multiple pros:
- more consistent with how its done in findbiome command
- the output can be captured when calling the function directly like so
```
local biomes = minetest.registered_chatcommands["listbiomes"].func("singleplayer", "")
```
- its how lua_api.md says it should be done
- same end result for the normal user
2024-07-26 23:34:39 +00:00
xXx_GLOCKrzmitz_xXx
dad67ad2ec
fix jibberish randomly appearing in the file (i dont know how it happened)
2024-07-26 23:25:14 +00:00
xXx_GLOCKrzmitz_xXx
293d966549
stop using old style vectors
2024-07-26 23:00:44 +00:00
xXx_GLOCKrzmitz_xXx
6f559601a3
fixing luacheck warnings and naming unused loop variables "_"
2024-07-26 22:50:27 +00:00
Wuzzy
7fdc7a0ccd
API does not return error for empty biome list
2024-03-24 22:03:56 +01:00
Wuzzy
844e9db145
Mark error messages for translation
2024-03-24 22:01:16 +01:00
Wuzzy
3d1ac0b8df
list_biomes func: Swap return value, improve docs
2024-03-24 21:59:12 +01:00
Skivling
811fa9ffbe
Change how chat command checks errors
2024-03-05 08:53:30 +13:00
Skivling
6f52aa551c
changes
2024-02-26 18:12:52 +13:00
Skivling
05dc9e0185
Most changes
2024-02-19 17:01:01 +13:00
Jacob Lifshay
1c4ee70ef5
fix global variable access to use correct name
2024-01-28 19:17:21 -08:00
Wuzzy
4114c51c2e
Fix typo in code comment
2024-01-11 20:00:53 +01:00
Wuzzy
7dfd9aec62
Expose res and checks to find_biome function
2024-01-11 19:57:46 +01:00
Wuzzy
26db2a0623
Make use of minetest.get_mapgen_edges
2024-01-11 19:35:38 +01:00
Wuzzy
9eb29b3dda
Make find_biome function public
2024-01-11 19:16:59 +01:00
Wuzzy
2bd52f3f33
Add chatcommands on init time
2019-09-29 11:55:38 +02:00
Wuzzy
17927aaa11
Add basic support for finding default biome
2019-08-27 20:18:41 +02:00
Wuzzy
a3653bdab1
Indent code
2019-08-27 16:42:09 +02:00
Wuzzy
f7e468bc60
Add second search attempt with less restrictions
2019-08-27 16:40:52 +02:00
Wuzzy
192582a997
Move player a bit deeper into the biome in adjust
2019-08-27 16:06:08 +02:00
Wuzzy
c62e71858e
Find biomes not in the same height as the player
2019-08-27 15:59:36 +02:00
Wuzzy
ecf9058d7b
Add function to adjust pos to biome limits (unused)
2019-08-27 14:30:58 +02:00
Wuzzy
87f6e3a15b
Fix logic bugs
2019-08-27 06:49:50 +02:00
Wuzzy
39aa2c4ca0
Clean up code
2019-08-27 06:42:52 +02:00
Wuzzy
0d433daa23
Refuse to teleport outside of map
2019-08-27 06:42:14 +02:00
Wuzzy
e427e57e89
Make dependency of biomeinfo mod optional
2019-08-26 21:09:10 +02:00
Wuzzy
68543e38e3
Add support for v6 mapgen
2019-08-26 21:03:31 +02:00
Wuzzy
06cb8dd173
First commit
2019-08-23 10:01:41 +02:00