[Mod] Display Biome [display_biome]

Post Reply
kestral
Member
Posts: 96
Joined: Mon Mar 27, 2017 21:56
GitHub: kestral246

[Mod] Display Biome [display_biome]

by kestral » Post

A simple mod that displays temperature, humidity, and biome name on the screen.

Image

Updates: (2020-01-02)
  • New: Default enable state is now changeable through settingtypes.txt, using display_biome_enable = true/false.
  • New: V6 mapgen support has been added when also using Wuzzy's biomeinfo mod (version ≥ 1.0.3).
  • Use chat command /biomes to toggle display state on and off.
  • Enable state is stored using mod storage.
It does perform a simple ground search to try to be more accurate when flying with multi-elevation biomes.

Get it at: https://github.com/kestral246/display_biome

License: LGPL-2.1

Dependencies
Last edited by kestral on Thu Jan 02, 2020 19:05, edited 1 time in total.

ThorfinnS
Member
Posts: 311
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

Re: [Mod] Display Biome [display_biome]

by ThorfinnS » Post

Very nice. Would you mind setting the default through settingtypes.txt rather than just hardcoding it to false? Command console is OK for the coders, but something I'd prefer not to make the playtesters do.

Long-term, a craftable detector made with stuff available shortly after start (glass would be fine, no diamond, mese, maybe even no iron) that could be placed somewhere in inventory to enable display?

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] Display Biome [display_biome]

by FreeGamers » Post

There is a basic hydrometer texture in the "crops" mod that might work for what Thorfinn is suggesting.
https://github.com/minetest-mods/crops/ ... ometer.png
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Display Biome [display_biome]

by Wuzzy » Post

This doesn't seem to support the v6 mapgen.
I made a library that helps you to get the v6 biome: viewtopic.php?f=9&t=23158

kestral
Member
Posts: 96
Joined: Mon Mar 27, 2017 21:56
GitHub: kestral246

Re: [Mod] Display Biome [display_biome]

by kestral » Post

  • Default enable state is now changeable through settingtypes.txt, using display_biome_enable = true/false.
  • V6 mapgen support has been added when also using Wuzzy's biomeinfo mod (version ≥ 1.0.3).

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Display Biome [display_biome]

by Wuzzy » Post

Nice! But the mod still shows incorrect biome values when biomeinfo mod is missing. I suggest to display a warning when using v6 but biomeinfo is missing.

kestral
Member
Posts: 96
Joined: Mon Mar 27, 2017 21:56
GitHub: kestral246

Re: [Mod] Display Biome [display_biome]

by kestral » Post

edit: I now place a warning in the log file, to inform the server operator, when display_biome is used with a v6 mapgen without biomeinfo. The display just shows "temp = ?, humid = ?, unknown", to the player, rather than incorrect data.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 18 guests