Worldgen / Biome angepasst

This commit is contained in:
N-Nachtigal 2025-05-16 23:15:26 +02:00
parent ef2b11dbee
commit 02bd710832
84 changed files with 212 additions and 13456 deletions

View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 ROllerozxa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1,2 @@
# Get Biome Data
Get the biome data available from minetest.get_biome_data() at a given node's position, using the Biome Data Wand (itemstring `get_biome_data:wand`) or chatcommand `/get_biome_data` (`debug` privilege required).

View file

@ -0,0 +1,27 @@
local function get_data(name, pos)
local biomedata = core.get_biome_data(pos)
core.chat_send_player(
name,
core.colorize("#aaa", "Biome: ")
.. core.colorize("#0f0", core.get_biome_name(biomedata.biome))
.. " ( heat: " .. core.colorize("#f00", biomedata.heat) .. ", humidity: " .. core.colorize("#55f", biomedata.humidity) .. ")")
end
core.register_tool("get_biome_data:wand", {
description = "Biome Data Wand\n(right-click to get biome data in node's position)",
inventory_image = "get_biome_data_wand.png",
on_place = function(itemstack, player, pointed_thing)
get_data(player:get_player_name(), pointed_thing.under)
return itemstack
end,
})
core.register_chatcommand("get_biome_data", {
description = "Get biome data in current position",
privs = {debug = true},
func = function(name, params)
get_data(name, core.get_player_by_name(name):get_pos())
end
})

View file

@ -0,0 +1,5 @@
name = get_biome_data
title = Get Biome Data
description = Get the biome data available from minetest.get_biome_data() at a given node's position.
release = 29020
author = ROllerozxa

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B