Re: [Mod] More Commands! [1.0.10] [morecommands]
Posted: Tue Feb 07, 2017 19:13
Does anybody have any suggestions?
*bump*
*bump*
The official Minetest discussion board
https://forum.minetest.net/
When I want a worldmap, almost everytime I find some unexplored gaps,bigfoot547 wrote:Does anybody have any suggestions?
I think this would be a great idea, but I have a very limited knowledge when it comes to map generation and things of the sort.hajo wrote:When I want a worldmap, almost everytime I find some unexplored gaps,bigfoot547 wrote:Does anybody have any suggestions?
or an 'uneven' border. So, I have to fly/teleport there, then make a new map.
How about some commands, like
* mapgap 0,0 - find nearest unexplored mapchunk (spiraling outward from given coordinate)
* gapfill - call mapgenerator to fill in that chunk
* mapfill 500,500 - call mapgenerator to fill in the whole map to the specified size
This probably only needs to work for a layer of +/-128 to get a nice surface-map.
Also, some commands to find map-features:
* mapfind 0,0, flat50x50 - starting at center, spiral outward to find 'flat' spots
of at least size 50x50, eg. to place a village
Possible features of interest:
* flat - terrain with max. difference in height less then 5
* cliff - terrain with height-difference > 10 on a horizontal distance of 3
* mountain - terrain-height > 60
* mountainXL - terrain-height > 100
* hill - terrain higher than 20, but lower then 60
* float - floating island
* floatland - floating island at y>1280
* water, desert, sandstone, snow, ice ... - looking for types of stones, or biomes
* waterfall
* river - with river-water
* valley
* beach - water bordered by sand
* lake - enclosed water / max. depth 10
* ocean - depth > 10
* cave - space underground
* hole - opening at the surface to a cave
* dungeon - space with mossy cobble underground
* lava
* pinetree, jungletree, acadiatree, papyrus, etc. - to find biomes by plant-type
* flowers - where is the nearest red flower?
* chest, door, torch, bed - find players place
Perhaps with an extra option to call the mapgenerator
to make more terrain until such a spot is found (or some limit is reached).
Also:
* orecount 0,0,0 coal - count number of nodes with coal-ore around position,
to get an idea how suitable a spot is for starting players
* orestat - same, but look at all types of ore
Maybe name it 'nodestat', to also look at trees, clay, etc.
Thank you! I am glad you like it.Mehdi35 wrote: Great!!!!
If you need an idea about that spiral, have a look at rosettacode.org.hajo wrote:* mapgap 0,0 - find nearest unexplored mapchunk (spiraling outward from given coordinate)
Code: Select all
Failed to load and run script from C:\Users\Computer\Downloads\minetest-0.4.15-win64\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:
...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: attempt to call field 'override_chatcommand' (a nil value)
stack traceback:
...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: in main chunk
Siehe debug.txt für Details.
You need minetest after commit efa54f9c460239c23a2014076764d6c6830589e6.Web_44 wrote:Ok. I installed the Mod, renamed it to "morecommands" and put it into Mods folder. But i got this Error:Code: Select all
Failed to load and run script from C:\Users\Computer\Downloads\minetest-0.4.15-win64\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua: ...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: attempt to call field 'override_chatcommand' (a nil value) stack traceback: ...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: in main chunk Siehe debug.txt für Details.
Code: Select all
2017-04-29 18:23:37: ERROR[Main]: ModError: Failed to load and run script from C:\Users\x\Documents\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:
2017-04-29 18:23:37: ERROR[Main]: ...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: attempt to call field 'override_chatcommand' (a nil value)
2017-04-29 18:23:37: ERROR[Main]: stack traceback:
2017-04-29 18:23:37: ERROR[Main]: ...\minetest-0.4.15-win64\bin\..\mods\morecommands\init.lua:1134: in main chunk
2017-04-29 18:23:37: ERROR[Main]: Siehe debug.txt für Details.