[Mod] Find Biome [1.0.0] [findbiome]

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

[Mod] Find Biome [1.0.0] [findbiome]

by Wuzzy » Fri Aug 23, 2019 08:13

Find biomes with a single command.

This is a mod for game developers. This will help you find biomes quickly. It adds two server commands:

  • findbiome <biome>: Find a biome and teleport to it
  • listbiomes: List all biomes

This is very helpful when you're tweaking biomes of your game and don't want to search all over the world.

Note: To find biomes in v6 mapgen, you need to use the Biome Info API mod.

Limitations
It's rare, but the mod might not find your biome if it is very obcure, but even then it should be unlikely. If this happens, just move somewhere else and try again.

Mod infos:
Last edited by Wuzzy on Tue Aug 27, 2019 18:43, edited 8 times in total.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
Yvanhoe
Member
 
Posts: 120
Joined: Fri Jul 05, 2019 03:18
Location: Japan
 

User avatar
runs
Member
 
Posts: 721
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] Find Biome [0.1.0] [findbiome]

by runs » Sat Aug 24, 2019 22:10

Cool for modders to test things. Or for a mod to teleport to biomes too.
 

User avatar
TumeniNodes
Member
 
Posts: 2794
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: [Mod] Find Biome [0.1.0] [findbiome]

by TumeniNodes » Sat Aug 24, 2019 23:58

Nice Wuzzy... thank you
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am
 

CalebJ
Member
 
Posts: 155
Joined: Sat Dec 29, 2018 19:21
Location: Tunnelers' Abyss
In-game: CalebJ

Re: [Mod] Find Biome [0.1.0] [findbiome]

by CalebJ » Sun Aug 25, 2019 00:15

Awesome, Wuzzy! Thank you, I've been wanting something like this for a long time :)
If you want realism, you're in the wrong place. Get off your mobile.
 

User avatar
StarNinjas
Member
 
Posts: 283
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1
 

Sokomine
Member
 
Posts: 3834
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Find Biome [0.1.0] [findbiome]

by Sokomine » Mon Aug 26, 2019 18:09

Sounds like a very useful mod. If you start a new world and are searching for a particular biome, that biome certainly wouldn't be the one you started in :-) So - thanks for the mod!
A list of my mods can be found here.
 

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

Version 0.2.0

by Wuzzy » Mon Aug 26, 2019 20:03

Version 0.2.0 released!

Now with mapgen v6 support! But you need to use the biomeinfo mod for it to work.
For the other mapgens you don't need any other mod.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

shacknetisp
Member
 
Posts: 29
Joined: Wed Feb 25, 2015 15:27
GitHub: shacknetisp
IRC: behalebabo
In-game: beha

Re: [Mod] Find Biome [0.2.0] [findbiome]

by shacknetisp » Tue Aug 27, 2019 13:51

This is currently broken, attempt to use /findbiome in a biome-mapgen.

Code: Select all
minetest_findbiomes/init.lua:66: attempt to get length of global 'biome_ids' (a nil value)


Seems that bug was introduced when v6 support was added and variable scope was messed up.


Edit: It's been fixed in the latest commits.
Last edited by shacknetisp on Tue Aug 27, 2019 19:06, edited 1 time in total.
 

User avatar
texmex
Member
 
Posts: 1524
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

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

Version 1.0.0

by Wuzzy » Wed Aug 28, 2019 17:09

Version 1.0.0 released!

Changelog:
  • You can now find biomes not in the same height as you. Much more convenient that way!
  • No longer teleport outside the map
  • /findbiome now supports searching the special “default” biome (fallback biome in non-v6 mapgens), if it exists. There's no 100% chance it will find it (even if it exists in the world) and the algorithm isn't very smart, however. But it helps to see if your biomes still have large “holes”. The “default” biome is intentionally not listed in /listbiomes because it's just a fallback
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
texmex
Member
 
Posts: 1524
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] Find Biome [1.0.0] [findbiome]

by texmex » Mon Sep 02, 2019 08:02

Is this mod supposed to be only for direct player use or do you plan on adding API functions for other mods that may want to search for biomes (and return data only, not necessarily teleport the player).
 

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

Re: [Mod] Find Biome [1.0.0] [findbiome]

by Wuzzy » Mon Sep 02, 2019 08:46

This mod is a fork from the mod “spawn” in Minetest Game. It finds a spawn position in an “easy” biome for new players. So if you need that, use that.

I do not plan to add an API.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 7 guests