Worldgen / Biome angepasst
|
@ -1,23 +0,0 @@
|
||||||
name: farlands_reloaded
|
|
||||||
on: [push, pull_request]
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@main
|
|
||||||
- uses: buckaroobanzay/mtt@main
|
|
||||||
with:
|
|
||||||
modname: xcompat
|
|
||||||
git_game_repo: https://github.com/TerraQuest-Studios/farlands_reloaded
|
|
||||||
git_dependencies: |
|
|
||||||
https://github.com/mt-mods/unifieddyes
|
|
||||||
https://github.com/mt-mods/basic_materials
|
|
||||||
https://github.com/OgelGames/fakelib
|
|
||||||
https://github.com/mt-mods/pipeworks
|
|
||||||
https://github.com/mt-mods/steel
|
|
||||||
https://github.com/mt-mods/display_modpack
|
|
||||||
https://github.com/mt-mods/homedecor_modpack
|
|
||||||
additional_config: |
|
|
||||||
mtt_nodelist = farlands_reloaded.txt
|
|
|
@ -1,23 +0,0 @@
|
||||||
name: hades_revisited
|
|
||||||
on: [push, pull_request]
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@main
|
|
||||||
- uses: buckaroobanzay/mtt@main
|
|
||||||
with:
|
|
||||||
modname: xcompat
|
|
||||||
git_game_repo: https://codeberg.org/Wuzzy/Hades_Revisited
|
|
||||||
git_dependencies: |
|
|
||||||
https://github.com/mt-mods/unifieddyes
|
|
||||||
https://github.com/mt-mods/basic_materials
|
|
||||||
https://github.com/OgelGames/fakelib
|
|
||||||
https://github.com/mt-mods/pipeworks
|
|
||||||
https://github.com/mt-mods/steel
|
|
||||||
https://github.com/mt-mods/display_modpack
|
|
||||||
https://github.com/mt-mods/homedecor_modpack
|
|
||||||
additional_config: |
|
|
||||||
mtt_nodelist = hades_revisited.txt
|
|
|
@ -1,10 +0,0 @@
|
||||||
name: luacheck
|
|
||||||
on: [push, pull_request]
|
|
||||||
jobs:
|
|
||||||
luacheck:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@main
|
|
||||||
- name: Luacheck
|
|
||||||
uses: lunarmodules/luacheck@master
|
|
|
@ -1,23 +0,0 @@
|
||||||
name: mineclonia
|
|
||||||
on: [push, pull_request]
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@main
|
|
||||||
- uses: buckaroobanzay/mtt@main
|
|
||||||
with:
|
|
||||||
modname: xcompat
|
|
||||||
git_game_repo: https://codeberg.org/mineclonia/mineclonia
|
|
||||||
git_dependencies: |
|
|
||||||
https://github.com/mt-mods/unifieddyes
|
|
||||||
https://github.com/mt-mods/basic_materials
|
|
||||||
https://github.com/OgelGames/fakelib
|
|
||||||
https://github.com/mt-mods/pipeworks
|
|
||||||
https://github.com/mt-mods/steel
|
|
||||||
https://github.com/mt-mods/display_modpack
|
|
||||||
https://github.com/mt-mods/homedecor_modpack
|
|
||||||
additional_config: |
|
|
||||||
mtt_nodelist = mineclonia.txt
|
|
|
@ -1,23 +0,0 @@
|
||||||
name: minetest_game
|
|
||||||
on: [push, pull_request]
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@main
|
|
||||||
- uses: buckaroobanzay/mtt@main
|
|
||||||
with:
|
|
||||||
modname: xcompat
|
|
||||||
git_game_repo: https://github.com/minetest/minetest_game
|
|
||||||
git_dependencies: |
|
|
||||||
https://github.com/mt-mods/unifieddyes
|
|
||||||
https://github.com/mt-mods/basic_materials
|
|
||||||
https://github.com/OgelGames/fakelib
|
|
||||||
https://github.com/mt-mods/pipeworks
|
|
||||||
https://github.com/mt-mods/steel
|
|
||||||
https://github.com/mt-mods/display_modpack
|
|
||||||
https://github.com/mt-mods/homedecor_modpack
|
|
||||||
additional_config: |
|
|
||||||
mtt_nodelist = minetest.txt
|
|
|
@ -1,23 +0,0 @@
|
||||||
name: voxelibre
|
|
||||||
on: [push, pull_request]
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@main
|
|
||||||
- uses: buckaroobanzay/mtt@main
|
|
||||||
with:
|
|
||||||
modname: xcompat
|
|
||||||
git_game_repo: https://git.minetest.land/VoxeLibre/VoxeLibre/
|
|
||||||
git_dependencies: |
|
|
||||||
https://github.com/mt-mods/unifieddyes
|
|
||||||
https://github.com/mt-mods/basic_materials
|
|
||||||
https://github.com/OgelGames/fakelib
|
|
||||||
https://github.com/mt-mods/pipeworks
|
|
||||||
https://github.com/mt-mods/steel
|
|
||||||
https://github.com/mt-mods/display_modpack
|
|
||||||
https://github.com/mt-mods/homedecor_modpack
|
|
||||||
additional_config: |
|
|
||||||
mtt_nodelist = voxelibre.txt
|
|
|
@ -1,21 +0,0 @@
|
||||||
globals = {
|
|
||||||
"minetest",
|
|
||||||
"xcompat",
|
|
||||||
}
|
|
||||||
|
|
||||||
read_globals = {
|
|
||||||
"default",
|
|
||||||
"mcl_sounds",
|
|
||||||
"ks_sounds",
|
|
||||||
"nodes_nature",
|
|
||||||
"fl_stone",
|
|
||||||
"fl_topsoil",
|
|
||||||
"fl_trees",
|
|
||||||
"hades_sounds",
|
|
||||||
"rp_sounds",
|
|
||||||
"mtt",
|
|
||||||
"sounds",
|
|
||||||
"player_api",
|
|
||||||
"mcl_player",
|
|
||||||
"fl_player",
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
|
|
||||||
MIT Copyright 2021-2024 wsor4035
|
|
||||||
|
|
||||||
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.
|
|
|
@ -1,34 +0,0 @@
|
||||||
# XCompat
|
|
||||||
|
|
||||||
[](https://github.com/mt-mods/xcompat/actions/workflows/luacheck.yml)
|
|
||||||
[](https://content.minetest.net/packages/mt-mods/xcompat/)
|
|
||||||
|
|
||||||
Provides cross compatibility between games and mods for sounds and crafting materials.
|
|
||||||
|
|
||||||
Thanks to:
|
|
||||||
* MisterE, OgelGames, and Blockhead for naming advice/suggestion.
|
|
||||||
* luk3yx, Blockhead, BuckarooBanzai for bouncing ideas on the concept of this mod.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
See the respective sub apis doc file in /doc for detailed documentation.
|
|
||||||
|
|
||||||
## Directly supported games and mods
|
|
||||||
|
|
||||||
| Games | Sounds | Materials | Textures | Player |
|
|
||||||
| ----------------- | --------- | --------- | --------- | ------ |
|
|
||||||
| Minetest Game | x | x | x | x |
|
|
||||||
| MineClone2 | x | x | | x |
|
|
||||||
| Mineclonia | x | x | | x |
|
|
||||||
| Hades Revisited | x | x | | |
|
|
||||||
| Farlands Reloaded | x | x | x | x |
|
|
||||||
| Exile | x | | | |
|
|
||||||
| KSurvive 2 | x | | | |
|
|
||||||
| Forgotten Lands | x | | | |
|
|
||||||
|
|
||||||
For functions see /doc/functions.md for the specifics relating to the function
|
|
||||||
|
|
||||||
**Mods**
|
|
||||||
* `basic_materials`
|
|
||||||
* `mesecons_materials`
|
|
||||||
* `moreores`
|
|
|
@ -1,13 +0,0 @@
|
||||||
# Functions API
|
|
||||||
|
|
||||||
## `can_interact_with_node(player, pos)`
|
|
||||||
returns `bool`
|
|
||||||
|
|
||||||
checks for the ability to interact with a node via:
|
|
||||||
* if a player
|
|
||||||
* owner metadata key
|
|
||||||
* protection_bypass
|
|
||||||
|
|
||||||
supports
|
|
||||||
* minetest game default if present
|
|
||||||
* else polyfill
|
|
|
@ -1,12 +0,0 @@
|
||||||
# GameId API
|
|
||||||
|
|
||||||
## minetest versions >= 5.7
|
|
||||||
|
|
||||||
simply returns `minetest.get_game_info().id`
|
|
||||||
|
|
||||||
## minetest versions < 5.7
|
|
||||||
|
|
||||||
approximates the gameid value via a hardcoded table of gameid=>modname
|
|
||||||
and then checks via `minetest.get_modpath()`. If it fails, it falls
|
|
||||||
back to using `xcompat_unknown_gameid` as the id. See the chart in the
|
|
||||||
readme for which games are supported
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Materials API
|
|
||||||
|
|
||||||
consult `/src/materials/minetest.lua` at this time
|
|
|
@ -1,13 +0,0 @@
|
||||||
# Player API
|
|
||||||
|
|
||||||
mimic mtg player_api
|
|
||||||
|
|
||||||
## NOTE
|
|
||||||
|
|
||||||
`xcompat.player.player_attached`
|
|
||||||
|
|
||||||
read/write from it is fine, looping over it is not as it is a proxy table. this
|
|
||||||
would need lua5.2 __pairs/__ipairs metamethods support which i could polyfill
|
|
||||||
for using https://stackoverflow.com/a/77354254 but didnt feel like doing at
|
|
||||||
this time. (luajit supports this via 5.2 extensions). additionally see issue:
|
|
||||||
https://github.com/minetest/minetest/issues/15133
|
|
|
@ -1,35 +0,0 @@
|
||||||
# Sound API
|
|
||||||
|
|
||||||
## Option 1: Agnostically depend
|
|
||||||
|
|
||||||
You can do this by using a custom field in your node def instead of the `sounds` key.
|
|
||||||
|
|
||||||
```lua
|
|
||||||
minetest.register_node(nodename, {
|
|
||||||
...
|
|
||||||
_sound_def = {
|
|
||||||
key = "",
|
|
||||||
input = {},
|
|
||||||
},
|
|
||||||
...
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
where:
|
|
||||||
|
|
||||||
* key: string name of the field from the sound api you want to use, for example `node_sound_stone_defaults`
|
|
||||||
* input: table input of fields you want passed to the key field, used to override specific sounds.
|
|
||||||
|
|
||||||
## Option 2: Hard depend
|
|
||||||
|
|
||||||
add this mod to your mod.confs depends and directly call the sound_api as follows
|
|
||||||
|
|
||||||
```lua
|
|
||||||
minetest.register_node(nodename, {
|
|
||||||
...
|
|
||||||
sounds = xcompat.sounds.node_sound_stone_defaults(input)
|
|
||||||
...
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
* input: optional table to override some or all of returned values
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Textures API
|
|
||||||
|
|
||||||
consult `/src/texture/minetest.lua` at this time
|
|
|
@ -1,2 +0,0 @@
|
||||||
test export-ignore
|
|
||||||
.github export-ignore
|
|
|
@ -1,51 +0,0 @@
|
||||||
local modpath = minetest.get_modpath("xcompat")
|
|
||||||
|
|
||||||
xcompat = {
|
|
||||||
modpath = modpath,
|
|
||||||
}
|
|
||||||
|
|
||||||
xcompat.gameid = dofile(modpath .. "/src/gameid.lua")
|
|
||||||
xcompat.utilities = dofile(modpath .. "/src/utilities.lua")
|
|
||||||
|
|
||||||
xcompat.sounds = dofile(modpath .. "/src/sounds.lua")
|
|
||||||
xcompat.materials = dofile(modpath .. "/src/materials.lua")
|
|
||||||
xcompat.textures = dofile(modpath .. "/src/textures.lua")
|
|
||||||
xcompat.functions = dofile(modpath .. "/src/functions.lua")
|
|
||||||
xcompat.player = dofile(modpath .. "/src/player.lua")
|
|
||||||
|
|
||||||
local function validate_sound(key)
|
|
||||||
if key and xcompat.sounds[key] then
|
|
||||||
return true
|
|
||||||
elseif key then
|
|
||||||
minetest.log("warning", "attempted to call invalid sound: "..key)
|
|
||||||
else
|
|
||||||
minetest.log("warning", "sound_def is missing a sound_api key")
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_on_mods_loaded(function()
|
|
||||||
for name, def in pairs(minetest.registered_nodes) do
|
|
||||||
if def._sound_def and validate_sound(def._sound_def.key) then
|
|
||||||
minetest.override_item(name, {
|
|
||||||
sounds = xcompat.sounds[def._sound_def.key](def._sound_def.input)
|
|
||||||
})
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local old_reg_node = minetest.register_node
|
|
||||||
function minetest.register_node(name, def)
|
|
||||||
if def._sound_def and validate_sound(def._sound_def.key) then
|
|
||||||
def.sounds = xcompat.sounds[def._sound_def.key](def._sound_def.input)
|
|
||||||
end
|
|
||||||
|
|
||||||
old_reg_node(name, def)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
dofile(modpath .. "/src/commands.lua")
|
|
||||||
|
|
||||||
if minetest.get_modpath("mtt") and mtt.enabled then
|
|
||||||
-- register tests
|
|
||||||
dofile(modpath .. "/mtt.lua")
|
|
||||||
end
|
|
|
@ -1,6 +0,0 @@
|
||||||
name = xcompat
|
|
||||||
description = Provides cross compatibility between mods and games for sounds and crafting materials.
|
|
||||||
optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees, mcl_core, farming, x_farming, sounds, mtt, player_api, mcl_player, fl_player
|
|
||||||
release = 30345
|
|
||||||
author = mt-mods
|
|
||||||
title = Xcompat
|
|
|
@ -1,10 +0,0 @@
|
||||||
|
|
||||||
-- emerge a part of the world (basic smoketest)
|
|
||||||
mtt.emerge_area({ x=0, y=0, z=0 }, { x=10, y=10, z=10 })
|
|
||||||
|
|
||||||
-- check nodelist
|
|
||||||
local mtt_nodelist = minetest.settings:get("mtt_nodelist")
|
|
||||||
if mtt_nodelist then
|
|
||||||
-- nodelist specified, check if all the required nodes are present
|
|
||||||
mtt.validate_nodenames(minetest.get_modpath("xcompat") .. "/test/nodelist/" .. mtt_nodelist)
|
|
||||||
end
|
|
|
@ -1,76 +0,0 @@
|
||||||
local materials_list = minetest.get_dir_list(xcompat.modpath.."/src/materials", false)
|
|
||||||
local materials = {}
|
|
||||||
for _, material in ipairs(materials_list) do
|
|
||||||
local gameid = material:sub(1, -5)
|
|
||||||
materials[gameid] = dofile(xcompat.modpath.."/src/materials/"..material)
|
|
||||||
end
|
|
||||||
|
|
||||||
local textures_list = minetest.get_dir_list(xcompat.modpath.."/src/textures", false)
|
|
||||||
local textures = {}
|
|
||||||
for _, texture in ipairs(textures_list) do
|
|
||||||
local gameid = texture:sub(1, -5)
|
|
||||||
textures[gameid] = dofile(xcompat.modpath.."/src/textures/"..texture)
|
|
||||||
end
|
|
||||||
|
|
||||||
local sounds_list = minetest.get_dir_list(xcompat.modpath.."/src/sounds", false)
|
|
||||||
local sounds = {}
|
|
||||||
for _, sound in ipairs(sounds_list) do
|
|
||||||
local gameid = sound:sub(1, -5)
|
|
||||||
sounds[gameid] = dofile(xcompat.modpath.."/src/sounds/"..sound)
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_chatcommand("xcompat_test_materials", {
|
|
||||||
description = "Test materials",
|
|
||||||
privs = {server=true},
|
|
||||||
func = function(name, _)
|
|
||||||
local reference_materials = materials["minetest"]
|
|
||||||
|
|
||||||
for gameid, game_materials in pairs(materials) do
|
|
||||||
for material, _ in pairs(reference_materials) do
|
|
||||||
if not game_materials[material] then
|
|
||||||
minetest.chat_send_player(name, "Missing material: "..material.." in game: "..gameid)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.chat_send_player(name, "Materials test complete")
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
--WARNING: only handles top level of table currently
|
|
||||||
--TODO: handle nested tables
|
|
||||||
minetest.register_chatcommand("xcompat_test_textures", {
|
|
||||||
description = "Test textures",
|
|
||||||
privs = {server=true},
|
|
||||||
func = function(name, _)
|
|
||||||
local reference_textures = textures["xcompat_agnostic"]
|
|
||||||
|
|
||||||
for gameid, game_textures in pairs(textures) do
|
|
||||||
for texture, _ in pairs(reference_textures) do
|
|
||||||
if not game_textures[texture] then
|
|
||||||
minetest.chat_send_player(name, "Missing texture: "..texture.." in game: "..gameid)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.chat_send_player(name, "Textures test complete")
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_chatcommand("xcompat_test_sounds", {
|
|
||||||
description = "Test sounds",
|
|
||||||
privs = {server=true},
|
|
||||||
func = function(name, _)
|
|
||||||
local reference_sounds = sounds["xcompat_agnostic"]
|
|
||||||
|
|
||||||
for gameid, game_sounds in pairs(sounds) do
|
|
||||||
for sound, _ in pairs(reference_sounds) do
|
|
||||||
if not game_sounds[sound] then
|
|
||||||
minetest.chat_send_player(name, "Missing sound: "..sound.." in game: "..gameid)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.chat_send_player(name, "Sounds test complete")
|
|
||||||
end
|
|
||||||
})
|
|
|
@ -1,55 +0,0 @@
|
||||||
local functions = {}
|
|
||||||
|
|
||||||
function functions.can_interact_with_node(player, pos)
|
|
||||||
--if we have default, use it
|
|
||||||
if default then return default.can_interact_with_node(player, pos) end
|
|
||||||
|
|
||||||
local owner = minetest.get_meta(pos):get_string("owner") or ""
|
|
||||||
|
|
||||||
--check that we have a valid player
|
|
||||||
if not player or not player:is_player() then return false end
|
|
||||||
--check there privs for compat with areas
|
|
||||||
if minetest.check_player_privs(player, "protection_bypass") then return true end
|
|
||||||
--if a normal player, check if they are the owner
|
|
||||||
if owner == "" or owner == player:get_player_name() then return true end
|
|
||||||
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
function functions.sapling_on_place(
|
|
||||||
itemstack, player, pointed_thing, sapling_name, minp_relative, maxp_relative, interval
|
|
||||||
)
|
|
||||||
if default then
|
|
||||||
return default.sapling_on_place(
|
|
||||||
itemstack, player, pointed_thing, sapling_name, minp_relative, maxp_relative, interval
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
local pos = pointed_thing.above
|
|
||||||
local pname = player and player:get_player_name() or ""
|
|
||||||
local below_node = minetest.get_node_or_nil(pointed_thing.under)
|
|
||||||
|
|
||||||
if below_node and minetest.registered_items[below_node.name] and
|
|
||||||
minetest.registered_items[below_node.name].buildable_to then
|
|
||||||
|
|
||||||
pos = pointed_thing.under
|
|
||||||
end
|
|
||||||
|
|
||||||
--check protection
|
|
||||||
if minetest.is_protected(pos, pname) then
|
|
||||||
minetest.record_protection_violation(pos, pname)
|
|
||||||
return itemstack
|
|
||||||
end
|
|
||||||
|
|
||||||
--actually place sapling
|
|
||||||
minetest.set_node(pos, {name = sapling_name})
|
|
||||||
|
|
||||||
--handle survival
|
|
||||||
if not minetest.is_creative_enabled(pname) then
|
|
||||||
itemstack:take_item()
|
|
||||||
end
|
|
||||||
|
|
||||||
return itemstack
|
|
||||||
end
|
|
||||||
|
|
||||||
return functions
|
|
|
@ -1,33 +0,0 @@
|
||||||
local game_alias = {
|
|
||||||
mineclone2 = "mineclonia",
|
|
||||||
}
|
|
||||||
|
|
||||||
local game_modnames = {
|
|
||||||
mineclonia = "mcl_core",
|
|
||||||
farlands_reloaded = "fl_core",
|
|
||||||
minetest = "default",
|
|
||||||
hades = "hades_core",
|
|
||||||
exile = "exile_env_sounds",
|
|
||||||
ksurvive2 = "ks_metals",
|
|
||||||
}
|
|
||||||
|
|
||||||
local gameid = "xcompat_unknown_gameid"
|
|
||||||
|
|
||||||
if type(minetest.get_game_info) == "function" then
|
|
||||||
gameid = minetest.get_game_info().id
|
|
||||||
else
|
|
||||||
for game, modname in pairs(game_modnames) do
|
|
||||||
if minetest.get_modpath(modname) then
|
|
||||||
gameid = game
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
--for games that are similar/derviatives of other games
|
|
||||||
if game_alias[gameid] then gameid = game_alias[gameid] end
|
|
||||||
|
|
||||||
--while minetest game derviates are not supported, we can still try to detect them
|
|
||||||
if minetest.get_modpath("default") then gameid = "minetest" end
|
|
||||||
|
|
||||||
return gameid
|
|
|
@ -1,8 +0,0 @@
|
||||||
local filename = xcompat.gameid
|
|
||||||
|
|
||||||
--if we dont have a materials file for the game, use minetest
|
|
||||||
if not xcompat.utilities.file_exists(xcompat.modpath .. "/src/materials/" .. filename .. ".lua") then
|
|
||||||
filename = "minetest"
|
|
||||||
end
|
|
||||||
|
|
||||||
return dofile(xcompat.modpath .. "/src/materials/" .. filename .. ".lua")
|
|
|
@ -1,106 +0,0 @@
|
||||||
local materials = {
|
|
||||||
sand = "default:sand",
|
|
||||||
sandstone = "default:sandstone",
|
|
||||||
gravel = "default:gravel",
|
|
||||||
flint = "default:flint",
|
|
||||||
copper_ingot = "default:copper_ingot",
|
|
||||||
steel_ingot = "default:steel_ingot",
|
|
||||||
gold_ingot = "default:gold_ingot",
|
|
||||||
tin_ingot = "default:tin_ingot",
|
|
||||||
copper_block = "default:copperblock",
|
|
||||||
steel_block = "default:steelblock",
|
|
||||||
gold_block = "default:goldblock",
|
|
||||||
tin_block = "default:tinblock",
|
|
||||||
axe_steel = "default:axe_steel",
|
|
||||||
axe_diamond = "default:axe_diamond",
|
|
||||||
axe_bronze = "default:axe_bronze",
|
|
||||||
axe_stone = "default:axe_stone",
|
|
||||||
axe_wood = "default:axe_wood",
|
|
||||||
pick_steel = "default:pick_steel",
|
|
||||||
mese = "default:mese",
|
|
||||||
mese_crystal = "default:mese_crystal",
|
|
||||||
mese_crystal_fragment = "default:mese_crystal_fragment",
|
|
||||||
torch = "default:torch",
|
|
||||||
diamond = "default:diamond",
|
|
||||||
clay_lump = "default:clay_lump",
|
|
||||||
water_bucket = "bucket:bucket_water",
|
|
||||||
empty_bucket = "bucket:bucket_empty",
|
|
||||||
dye_dark_grey = "dye:dark_grey",
|
|
||||||
dye_black = "dye:black",
|
|
||||||
dye_white = "dye:white",
|
|
||||||
dye_green = "dye:green",
|
|
||||||
dye_red = "dye:red",
|
|
||||||
dye_yellow = "dye:yellow",
|
|
||||||
dye_brown = "dye:brown",
|
|
||||||
dye_blue = "dye:blue",
|
|
||||||
dye_violet = "dye:violet",
|
|
||||||
dye_grey = "dye:grey",
|
|
||||||
dye_dark_green = "dye:dark_green",
|
|
||||||
dye_orange = "dye:orange",
|
|
||||||
dye_pink = "dye:pink",
|
|
||||||
dye_cyan = "dye:cyan",
|
|
||||||
dye_magenta = "dye:magenta",
|
|
||||||
silicon = "mesecons_materials:silicon",
|
|
||||||
string = "farming:string",
|
|
||||||
paper = "default:paper",
|
|
||||||
book = "default:book",
|
|
||||||
iron_lump = "default:iron_lump",
|
|
||||||
wool_grey = "wool:grey",
|
|
||||||
wool_green = "wool:green",
|
|
||||||
wool_dark_green = "wool:dark_green",
|
|
||||||
wool_brown = "wool:brown",
|
|
||||||
wool_black = "wool:black",
|
|
||||||
wool_white = "wool:white",
|
|
||||||
slab_stone = "stairs:slab_stone",
|
|
||||||
slab_wood = "stairs:slab_wood",
|
|
||||||
glass = "default:glass",
|
|
||||||
glass_block = "default:glass",
|
|
||||||
glass_bottle = "vessels:glass_bottle",
|
|
||||||
coal_lump = "default:coal_lump",
|
|
||||||
stone = "default:stone",
|
|
||||||
desert_stone = "default:desert_stone",
|
|
||||||
desert_sand = "default:desert_sand",
|
|
||||||
chest = "default:chest",
|
|
||||||
cobble = "default:cobble",
|
|
||||||
brick = "default:brick",
|
|
||||||
obsidian_glass = "default:obsidian_glass",
|
|
||||||
water_source = "default:water_source",
|
|
||||||
water_flowing = "default:water_flowing",
|
|
||||||
dirt = "default:dirt",
|
|
||||||
dirt_with_grass = "default:dirt_with_grass",
|
|
||||||
apple_leaves = "default:leaves",
|
|
||||||
apple_log = "default:tree",
|
|
||||||
apple_planks = "default:wood",
|
|
||||||
birch_leaves = "default:aspen_leaves",
|
|
||||||
birch_log = "default:aspen_tree",
|
|
||||||
birch_planks = "default:aspen_wood",
|
|
||||||
jungle_leaves = "default:jungleleaves",
|
|
||||||
bowl = "",
|
|
||||||
stick = "default:stick",
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.registered_items["farming:bowl"] then
|
|
||||||
materials.bowl = "farming:bowl"
|
|
||||||
elseif minetest.get_modpath("x_farming") then
|
|
||||||
materials.bowl = "x_farming:bowl"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("moreores") then
|
|
||||||
materials.silver_ingot = "moreores:silver_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("technic") then
|
|
||||||
materials.lead_ingot = "technic:lead_ingot"
|
|
||||||
materials.carbon_steel_ingot = "technic:carbon_steel_ingot"
|
|
||||||
materials.stainless_steel_ingot = "technic:stainless_steel_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("aloz") then
|
|
||||||
materials.aluminum_ingot = "aloz:aluminum_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("techage") then
|
|
||||||
materials.aluminum_ingot = "techage:aluminum"
|
|
||||||
end
|
|
||||||
|
|
||||||
return materials
|
|
|
@ -1,93 +0,0 @@
|
||||||
local materials = {
|
|
||||||
sand = "fl_stone:sand",
|
|
||||||
sandstone = "fl_stone:sandstone",
|
|
||||||
gravel = "fl_topsoil:gravel",
|
|
||||||
flint = "fl_topsoil:flint",
|
|
||||||
copper_ingot = "fl_ores:copper_ingot",
|
|
||||||
steel_ingot = "fl_ores:iron_ingot",
|
|
||||||
gold_ingot = "fl_ores:gold_ingot",
|
|
||||||
tin_ingot = "fl_ores:tin_ingot",
|
|
||||||
copper_block = "fl_ores:copper_block",
|
|
||||||
steel_block = "fl_ores:iron_block",
|
|
||||||
gold_block = "fl_ores:gold_block",
|
|
||||||
tin_block = "fl_ores:tin_block",
|
|
||||||
axe_steel = "fl_tools:steel_axe",
|
|
||||||
axe_diamond = "fl_tools:diamond_axe",
|
|
||||||
axe_bronze = "fl_tools:bronze_axe",
|
|
||||||
axe_stone = "fl_tools:stone_axe",
|
|
||||||
axe_wood = "fl_tools:wood_axe",
|
|
||||||
pick_steel = "fl_tools:steel_pick",
|
|
||||||
mese = "fl_ores:iron_ingot",
|
|
||||||
mese_crystal = "fl_ores:iron_ingot",
|
|
||||||
mese_crystal_fragment = "fl_ores:iron_ingot",
|
|
||||||
torch = "fl_light_sources:torch",
|
|
||||||
diamond = "fl_ores:diamond",
|
|
||||||
clay_lump = "fl_bricks:clay_lump",
|
|
||||||
water_bucket = "fl_bucket:bucket_water",
|
|
||||||
empty_bucket = "fl_bucket:bucket",
|
|
||||||
dye_dark_grey = "fl_dyes:dark_grey_dye",
|
|
||||||
dye_black = "fl_dyes:black_dye",
|
|
||||||
dye_white = "fl_dyes:white_dye",
|
|
||||||
dye_green = "fl_dyes:green_dye",
|
|
||||||
dye_red = "fl_dyes:red_dye",
|
|
||||||
dye_yellow = "fl_dyes:yellow_dye",
|
|
||||||
dye_brown = "fl_dyes:brown_dye",
|
|
||||||
dye_blue = "fl_dyes:blue_dye",
|
|
||||||
dye_violet = "fl_dyes:violet_dye",
|
|
||||||
dye_grey = "fl_dyes:grey_dye",
|
|
||||||
dye_dark_green = "fl_dyes:dark_green_dye",
|
|
||||||
dye_orange = "fl_dyes:orange_dye",
|
|
||||||
dye_pink = "fl_dyes:pink_dye",
|
|
||||||
dye_cyan = "fl_dyes:cyan_dye",
|
|
||||||
dye_magenta = "fl_dyes:magenta_dye",
|
|
||||||
silver_ingot = "fl_ores:iron_ingot",
|
|
||||||
silicon = "mesecons_materials:silicon",
|
|
||||||
string = "fl_plantlife:oxeye_daisy",
|
|
||||||
paper = "",
|
|
||||||
book = "",
|
|
||||||
iron_lump = "fl_ores:iron_ore",
|
|
||||||
wool_grey = "",
|
|
||||||
wool_green = "",
|
|
||||||
wool_dark_green = "",
|
|
||||||
wool_brown = "",
|
|
||||||
wool_black = "",
|
|
||||||
wool_white = "",
|
|
||||||
slab_stone = "fl_stone:stone_slab",
|
|
||||||
slab_wood = "fl_trees:apple_plank_slab",
|
|
||||||
glass = "fl_glass:framed_glass",
|
|
||||||
glass_block = "fl_glass:framed_glass",
|
|
||||||
glass_bottle = "fl_bottles:bottle",
|
|
||||||
coal_lump = "fl_ores:coal_ore",
|
|
||||||
stone = "fl_stone:stone",
|
|
||||||
desert_stone = "fl_stone:desert_stone",
|
|
||||||
desert_sand = "fl_stone:desert_sand",
|
|
||||||
chest = "fl_storage:wood_chest",
|
|
||||||
cobble = "fl_stone:stone_rubble",
|
|
||||||
brick = "",
|
|
||||||
obsidian_glass = "",
|
|
||||||
water_source = "fl_liquids:water_source",
|
|
||||||
water_flowing = "fl_liquids:water_flowing",
|
|
||||||
dirt = "fl_stone:dirt",
|
|
||||||
dirt_with_grass = "fl_topsoil:dirt_with_grass",
|
|
||||||
apple_leaves = "fl_trees:apple_leaves",
|
|
||||||
apple_log = "fl_trees:apple_trunk",
|
|
||||||
apple_planks = "fl_trees:apple_plank",
|
|
||||||
birch_leaves = "fl_trees:aspen_leaves",
|
|
||||||
birch_log = "fl_trees:aspen_trunk",
|
|
||||||
birch_planks = "fl_trees:aspen_plank",
|
|
||||||
jungle_leaves = "fl_trees:jungletree_leaves",
|
|
||||||
bowl = "",
|
|
||||||
stick = "fl_trees:stick",
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.get_modpath("basic_materials") then
|
|
||||||
materials.paper = "basic_materials:plastic_sheet"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.registered_items["farming:bowl"] then
|
|
||||||
materials.bowl = "farming:bowl"
|
|
||||||
elseif minetest.get_modpath("x_farming") then
|
|
||||||
materials.bowl = "x_farming:bowl"
|
|
||||||
end
|
|
||||||
|
|
||||||
return materials
|
|
|
@ -1,107 +0,0 @@
|
||||||
local materials = {
|
|
||||||
sand = "hades_core:fertile_sand",
|
|
||||||
sandstone = "hades_core:sandstone",
|
|
||||||
gravel = "hades_core:gravel",
|
|
||||||
flint = "",
|
|
||||||
copper_ingot = "hades_core:copper_ingot",
|
|
||||||
steel_ingot = "hades_core:steel_ingot",
|
|
||||||
gold_ingot = "hades_core:gold_ingot",
|
|
||||||
tin_ingot = "hades_core:tin_ingot",
|
|
||||||
silver_ingot = "--unknown--",
|
|
||||||
copper_block = "hades_core:copperblock",
|
|
||||||
steel_block = "hades_core:steelblock",
|
|
||||||
gold_block = "hades_core:goldblock",
|
|
||||||
tin_block = "hades_core:tinblock",
|
|
||||||
axe_steel = "hades_core:axe_steel",
|
|
||||||
axe_diamond = "hades_core:axe_diamond",
|
|
||||||
axe_bronze = "hades_core:axe_bronze",
|
|
||||||
axe_stone = "hades_core:axe_stone",
|
|
||||||
axe_wood = "hades_core:axe_wood",
|
|
||||||
pick_steel = "hades_core:pick_steel",
|
|
||||||
mese = "hades_core:mese",
|
|
||||||
mese_crystal = "hades_core:mese_crystal",
|
|
||||||
mese_crystal_fragment = "hades_core:mese_crystal_fragment",
|
|
||||||
torch = "hades_torches:torch",
|
|
||||||
diamond = "hades_core:diamond",
|
|
||||||
clay_lump = "hades_core:clay_lump",
|
|
||||||
clay_brick = "hades_core:clay_brick",
|
|
||||||
|
|
||||||
--[[
|
|
||||||
Since hades doesnt have buckets or water for the user,
|
|
||||||
using dirt from near water to pull the water out
|
|
||||||
]]
|
|
||||||
water_bucket = "hades_core:dirt",
|
|
||||||
empty_bucket = "hades_core:fertile_sand",
|
|
||||||
dye_dark_grey = "dye:dark_grey",
|
|
||||||
dye_black = "dye:black",
|
|
||||||
dye_white = "dye:white",
|
|
||||||
dye_green = "dye:green",
|
|
||||||
dye_red = "dye:red",
|
|
||||||
dye_yellow = "dye:yellow",
|
|
||||||
dye_brown = "dye:brown",
|
|
||||||
dye_blue = "dye:blue",
|
|
||||||
dye_violet = "dye:violet",
|
|
||||||
dye_grey = "dye:grey",
|
|
||||||
dye_dark_green = "dye:dark_green",
|
|
||||||
dye_orange = "dye:orange",
|
|
||||||
dye_pink = "dye:pink",
|
|
||||||
dye_cyan = "dye:cyan",
|
|
||||||
dye_magenta = "dye:magenta",
|
|
||||||
silicon = "hades_materials:silicon",
|
|
||||||
string = "hades_farming:string",
|
|
||||||
paper = "hades_core:paper",
|
|
||||||
book = "hades_core:book",
|
|
||||||
iron_lump = "hades_core:iron_lump",
|
|
||||||
wool_grey = "wool:grey",
|
|
||||||
wool_green = "wool:green",
|
|
||||||
wool_dark_green = "wool:dark_green",
|
|
||||||
wool_brown = "wool:brown",
|
|
||||||
wool_black = "wool:black",
|
|
||||||
wool_white = "wool:white",
|
|
||||||
slab_stone = "stairs:slab_stone",
|
|
||||||
slab_wood = "stairs:slab_wood",
|
|
||||||
glass = "hades_core:glass",
|
|
||||||
glass_block = "hades_core:glass",
|
|
||||||
glass_bottle = "vessels:glass_bottle",
|
|
||||||
obsidian_glass = "hades_core:obsidian_glass",
|
|
||||||
coal_lump = "hades_core:coal_lump",
|
|
||||||
stone = "hades_core:stone",
|
|
||||||
desert_stone = "hades_core:stone_baked",
|
|
||||||
desert_sand = "hades_core:volcanic_sand",
|
|
||||||
chest = "hades_chests:chest";
|
|
||||||
cobble = "hades_core:cobble",
|
|
||||||
brick = "hades_core:brick",
|
|
||||||
water_source = "hades_core:water_source",
|
|
||||||
water_flowing = "hades_core:water_flowing",
|
|
||||||
dirt = "hades_core:dirt",
|
|
||||||
dirt_with_grass = "hades_core:dirt_with_grass",
|
|
||||||
apple_leaves = "hades_trees:leaves",
|
|
||||||
apple_log = "hades_trees:tree",
|
|
||||||
apple_planks = "hades_trees:wood",
|
|
||||||
birch_leaves = "hades_core:birch_leaves",
|
|
||||||
birch_log = "hades_trees:birch_tree",
|
|
||||||
birch_planks = "hades_trees:cream_wood",
|
|
||||||
jungle_leaves = "hades_trees:jungle_leaves",
|
|
||||||
--hades has no bowl but you get plate on eat so makes most sense?
|
|
||||||
bowl = "hades_food:plate",
|
|
||||||
stick = "hades_core:stick",
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.get_modpath("hades_bucket") then
|
|
||||||
materials["water_bucket"] = "hades_bucket:bucket_water"
|
|
||||||
materials["empty_bucket"] = "hades_bucket:bucket_empty"
|
|
||||||
end
|
|
||||||
if minetest.get_modpath("hades_extraores") then
|
|
||||||
materials["silver_ingot"] = "hades_extraores:silver_ingot"
|
|
||||||
materials["aluminum_ingot"] = "hades_extraores:aluminum_ingot"
|
|
||||||
end
|
|
||||||
if minetest.get_modpath("hades_default") then
|
|
||||||
materials.desert_sand = "hades_default:desert_sand"
|
|
||||||
end
|
|
||||||
if minetest.get_modpath("hades_technic") then
|
|
||||||
materials.lead_ingot = "hades_technic:lead_ingot"
|
|
||||||
materials.carbon_steel_ingot = "hades_technic:carbon_steel_ingot"
|
|
||||||
materials.stainless_steel_ingot = "hades_technic:stainless_steel_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
return materials
|
|
|
@ -1,117 +0,0 @@
|
||||||
--note this file handles mineclonia, mineclone2, and its rename voxelibre
|
|
||||||
|
|
||||||
local mcl_dyes = minetest.get_modpath("mcl_dyes")
|
|
||||||
local mcl_dyes_name = mcl_dyes and "mcl_dyes" or "mcl_dye"
|
|
||||||
|
|
||||||
local materials = {
|
|
||||||
sand = "mcl_core:sand",
|
|
||||||
sandstone = "mcl_core:sandstone",
|
|
||||||
gravel = "mcl_core:gravel",
|
|
||||||
flint = "mcl_core:flint",
|
|
||||||
copper_ingot = "mcl_copper:copper_ingot",
|
|
||||||
steel_ingot = "mcl_core:iron_ingot",
|
|
||||||
gold_ingot = "mcl_core:gold_ingot",
|
|
||||||
tin_ingot = "mcl_core:iron_ingot",
|
|
||||||
copper_block = "mcl_copper:block",
|
|
||||||
steel_block = "mcl_core:ironblock",
|
|
||||||
gold_block = "mcl_core:goldblock",
|
|
||||||
tin_block = "mcl_core:ironblock",
|
|
||||||
axe_steel = "mcl_core:axe_steel",
|
|
||||||
axe_diamond = "mcl_core:axe_diamond",
|
|
||||||
axe_bronze = "mcl_core:axe_bronze",
|
|
||||||
axe_stone = "mcl_core:axe_stone",
|
|
||||||
axe_wood = "mcl_core:axe_wood",
|
|
||||||
pick_steel = "mcl_core:pick_steel",
|
|
||||||
torch = "mcl_torches:torch",
|
|
||||||
diamond = "mcl_core:diamond",
|
|
||||||
clay_lump = "mcl_core:clay_lump",
|
|
||||||
water_bucket = "mcl_buckets:bucket_water",
|
|
||||||
empty_bucket = "mcl_buckets:bucket_empty",
|
|
||||||
dye_dark_grey = mcl_dyes_name .. ":dark_grey",
|
|
||||||
dye_black = mcl_dyes_name .. ":black",
|
|
||||||
dye_white = mcl_dyes_name .. ":white",
|
|
||||||
dye_green = mcl_dyes_name .. ":green",
|
|
||||||
dye_red = mcl_dyes_name .. ":red",
|
|
||||||
dye_yellow = mcl_dyes_name .. ":yellow",
|
|
||||||
dye_brown = mcl_dyes_name .. ":brown",
|
|
||||||
dye_blue = mcl_dyes_name .. ":blue",
|
|
||||||
dye_violet = mcl_dyes_name .. ":violet",
|
|
||||||
dye_grey = mcl_dyes_name .. ":grey",
|
|
||||||
dye_dark_green = mcl_dyes_name .. ":dark_green",
|
|
||||||
dye_orange = mcl_dyes_name .. ":orange",
|
|
||||||
dye_pink = mcl_dyes_name .. ":pink",
|
|
||||||
dye_cyan = mcl_dyes_name .. ":cyan",
|
|
||||||
dye_magenta = mcl_dyes_name .. ":magenta",
|
|
||||||
silicon = "mcl_core:iron_ingot",
|
|
||||||
string = "mcl_mobitems:string",
|
|
||||||
paper = "mcl_core:paper",
|
|
||||||
book = "mcl_books:book",
|
|
||||||
iron_lump = "mcl_raw_ores:raw_iron",
|
|
||||||
wool_grey = "mcl_wool:grey",
|
|
||||||
wool_green = "mcl_wool:green",
|
|
||||||
wool_dark_green = "mcl_wool:dark_green",
|
|
||||||
wool_brown = "mcl_wool:brown",
|
|
||||||
wool_black = "mcl_wool:black",
|
|
||||||
wool_white = "mcl_wool:white",
|
|
||||||
slab_stone = "mcl_stairs:slab_stone",
|
|
||||||
slab_wood = "mcl_stairs:slab_wood",
|
|
||||||
glass = "mcl_core:glass",
|
|
||||||
glass_block = "mcl_core:glass",
|
|
||||||
glass_bottle = "mcl_potions:glass_bottle",
|
|
||||||
coal_lump = "mcl_core:coal_lump",
|
|
||||||
stone = "mcl_core:stone",
|
|
||||||
desert_stone = "mcl_core:redsandstone",
|
|
||||||
desert_sand = "mcl_core:sand",
|
|
||||||
chest = "mcl_chests:chest",
|
|
||||||
cobble = "mcl_core:cobble",
|
|
||||||
brick = "mcl_core:brick",
|
|
||||||
obsidian_glass = "",
|
|
||||||
water_source = "mcl_core:water_source",
|
|
||||||
water_flowing = "mcl_core:water_flowing",
|
|
||||||
dirt = "mcl_core:dirt",
|
|
||||||
dirt_with_grass = "mcl_core:dirt_with_grass",
|
|
||||||
bowl = "mcl_core:bowl",
|
|
||||||
stick = "mcl_core:stick",
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_redstone") then
|
|
||||||
materials.mese = "mcl_redstone_torch:redstoneblock"
|
|
||||||
materials.mese_crystal = "mcl_redstone:redstone"
|
|
||||||
materials.mese_crystal_fragment = "mcl_core:iron_ingot"
|
|
||||||
else
|
|
||||||
materials.mese = "mesecons_torch:redstoneblock"
|
|
||||||
materials.mese_crystal = "mesecons:redstone"
|
|
||||||
materials.mese_crystal_fragment = "mcl_core:iron_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_trees") then
|
|
||||||
materials.apple_leaves = "mcl_trees:leaves_oak"
|
|
||||||
materials.apple_log = "mcl_trees:tree_oak"
|
|
||||||
materials.apple_planks = "mcl_trees:wood_oak"
|
|
||||||
materials.birch_leaves = "mcl_trees:leaves_birch"
|
|
||||||
materials.birch_log = "mcl_trees:tree_birch"
|
|
||||||
materials.birch_planks = "mcl_trees:wood_birch"
|
|
||||||
materials.jungle_leaves = "mcl_trees:leaves_jungle"
|
|
||||||
else
|
|
||||||
materials.apple_leaves = "mcl_core:leaves"
|
|
||||||
materials.apple_log = "mcl_core:tree"
|
|
||||||
materials.apple_planks = "mcl_core:wood"
|
|
||||||
materials.birch_leaves = "mcl_core:birchleaves"
|
|
||||||
materials.birch_log = "mcl_core:birchtree"
|
|
||||||
materials.birch_planks = "mcl_core:birchwood"
|
|
||||||
materials.jungle_leaves = "mcl_core:jungleleaves"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("moreores") then
|
|
||||||
materials.tin_ingot = "moreores:tin_ingot"
|
|
||||||
materials.tin_block = "moreores:tin_block"
|
|
||||||
materials.silver_ingot = "moreores:silver_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("technic") then
|
|
||||||
materials.lead_ingot = "technic:lead_ingot"
|
|
||||||
materials.carbon_steel_ingot = "technic:carbon_steel_ingot"
|
|
||||||
materials.stainless_steel_ingot = "technic:stainless_steel_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
return materials
|
|
|
@ -1,106 +0,0 @@
|
||||||
local materials = {
|
|
||||||
sand = "default:sand",
|
|
||||||
sandstone = "default:sandstone",
|
|
||||||
gravel = "default:gravel",
|
|
||||||
flint = "default:flint",
|
|
||||||
copper_ingot = "default:copper_ingot",
|
|
||||||
steel_ingot = "default:steel_ingot",
|
|
||||||
gold_ingot = "default:gold_ingot",
|
|
||||||
tin_ingot = "default:tin_ingot",
|
|
||||||
copper_block = "default:copperblock",
|
|
||||||
steel_block = "default:steelblock",
|
|
||||||
gold_block = "default:goldblock",
|
|
||||||
tin_block = "default:tinblock",
|
|
||||||
axe_steel = "default:axe_steel",
|
|
||||||
axe_diamond = "default:axe_diamond",
|
|
||||||
axe_bronze = "default:axe_bronze",
|
|
||||||
axe_stone = "default:axe_stone",
|
|
||||||
axe_wood = "default:axe_wood",
|
|
||||||
pick_steel = "default:pick_steel",
|
|
||||||
mese = "default:mese",
|
|
||||||
mese_crystal = "default:mese_crystal",
|
|
||||||
mese_crystal_fragment = "default:mese_crystal_fragment",
|
|
||||||
torch = "default:torch",
|
|
||||||
diamond = "default:diamond",
|
|
||||||
clay_lump = "default:clay_lump",
|
|
||||||
water_bucket = "bucket:bucket_water",
|
|
||||||
empty_bucket = "bucket:bucket_empty",
|
|
||||||
dye_dark_grey = "dye:dark_grey",
|
|
||||||
dye_black = "dye:black",
|
|
||||||
dye_white = "dye:white",
|
|
||||||
dye_green = "dye:green",
|
|
||||||
dye_red = "dye:red",
|
|
||||||
dye_yellow = "dye:yellow",
|
|
||||||
dye_brown = "dye:brown",
|
|
||||||
dye_blue = "dye:blue",
|
|
||||||
dye_violet = "dye:violet",
|
|
||||||
dye_grey = "dye:grey",
|
|
||||||
dye_dark_green = "dye:dark_green",
|
|
||||||
dye_orange = "dye:orange",
|
|
||||||
dye_pink = "dye:pink",
|
|
||||||
dye_cyan = "dye:cyan",
|
|
||||||
dye_magenta = "dye:magenta",
|
|
||||||
silicon = "mesecons_materials:silicon",
|
|
||||||
string = "farming:string",
|
|
||||||
paper = "default:paper",
|
|
||||||
book = "default:book",
|
|
||||||
iron_lump = "default:iron_lump",
|
|
||||||
wool_grey = "wool:grey",
|
|
||||||
wool_green = "wool:green",
|
|
||||||
wool_dark_green = "wool:dark_green",
|
|
||||||
wool_brown = "wool:brown",
|
|
||||||
wool_black = "wool:black",
|
|
||||||
wool_white = "wool:white",
|
|
||||||
slab_stone = "stairs:slab_stone",
|
|
||||||
slab_wood = "stairs:slab_wood",
|
|
||||||
glass = "default:glass",
|
|
||||||
glass_block = "default:glass",
|
|
||||||
glass_bottle = "vessels:glass_bottle",
|
|
||||||
coal_lump = "default:coal_lump",
|
|
||||||
stone = "default:stone",
|
|
||||||
desert_stone = "default:desert_stone",
|
|
||||||
desert_sand = "default:desert_sand",
|
|
||||||
chest = "default:chest",
|
|
||||||
cobble = "default:cobble",
|
|
||||||
brick = "default:brick",
|
|
||||||
obsidian_glass = "default:obsidian_glass",
|
|
||||||
water_source = "default:water_source",
|
|
||||||
water_flowing = "default:water_flowing",
|
|
||||||
dirt = "default:dirt",
|
|
||||||
dirt_with_grass = "default:dirt_with_grass",
|
|
||||||
apple_leaves = "default:leaves",
|
|
||||||
apple_log = "default:tree",
|
|
||||||
apple_planks = "default:wood",
|
|
||||||
birch_leaves = "default:aspen_leaves",
|
|
||||||
birch_log = "default:aspen_tree",
|
|
||||||
birch_planks = "default:aspen_wood",
|
|
||||||
jungle_leaves = "default:jungleleaves",
|
|
||||||
bowl = "",
|
|
||||||
stick = "default:stick",
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.registered_items["farming:bowl"] then
|
|
||||||
materials.bowl = "farming:bowl"
|
|
||||||
elseif minetest.get_modpath("x_farming") then
|
|
||||||
materials.bowl = "x_farming:bowl"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("moreores") then
|
|
||||||
materials.silver_ingot = "moreores:silver_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("technic") then
|
|
||||||
materials.lead_ingot = "technic:lead_ingot"
|
|
||||||
materials.carbon_steel_ingot = "technic:carbon_steel_ingot"
|
|
||||||
materials.stainless_steel_ingot = "technic:stainless_steel_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("aloz") then
|
|
||||||
materials.aluminum_ingot = "aloz:aluminum_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("techage") then
|
|
||||||
materials.aluminum_ingot = "techage:aluminum"
|
|
||||||
end
|
|
||||||
|
|
||||||
return materials
|
|
|
@ -1,8 +0,0 @@
|
||||||
local filename = xcompat.gameid
|
|
||||||
|
|
||||||
--if we dont have a player file for the game, use minetest
|
|
||||||
if not xcompat.utilities.file_exists(xcompat.modpath .. "/src/player/" .. filename .. ".lua") then
|
|
||||||
filename = "xcompat_agnostic"
|
|
||||||
end
|
|
||||||
|
|
||||||
return dofile(xcompat.modpath .. "/src/player/" .. filename .. ".lua")
|
|
|
@ -1,51 +0,0 @@
|
||||||
local papi = {}
|
|
||||||
|
|
||||||
local models = {}
|
|
||||||
function papi.register_model(name, def)
|
|
||||||
models[name] = def
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_model(player, model_name)
|
|
||||||
local model = models[model_name]
|
|
||||||
|
|
||||||
if not model then return end
|
|
||||||
|
|
||||||
player:set_properties({
|
|
||||||
mesh = model_name,
|
|
||||||
textures = model.textures,
|
|
||||||
visual = "mesh",
|
|
||||||
visual_size = model.visual_size,
|
|
||||||
stepheight = model.stepheight
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.get_animation(_)
|
|
||||||
--stub to keep from crashing
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.get_textures(player)
|
|
||||||
return player:get_properties().textures
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_textures(player, textures)
|
|
||||||
player:set_properties({textures = textures})
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_animation(player, anim_name, speed, loop)
|
|
||||||
player:set_animation(fl_player.animations[anim_name], speed, 0, loop)
|
|
||||||
end
|
|
||||||
|
|
||||||
local metatable = {
|
|
||||||
__index = function (_, key)
|
|
||||||
return fl_player.ignore[key]
|
|
||||||
end,
|
|
||||||
__newindex = function (_, key, value)
|
|
||||||
rawset(fl_player.ignore, key, value)
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
papi.player_attached = {}
|
|
||||||
|
|
||||||
setmetatable(papi.player_attached, metatable)
|
|
||||||
|
|
||||||
return papi
|
|
|
@ -1,40 +0,0 @@
|
||||||
local papi = {}
|
|
||||||
|
|
||||||
function papi.register_model(name, def)
|
|
||||||
return mcl_player.player_register_model(name, def)
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_model(player, model)
|
|
||||||
return mcl_player.player_set_model(player, model)
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.get_animation(player)
|
|
||||||
return mcl_player.player_get_animation(player)
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.get_textures(player)
|
|
||||||
return player:get_properties().textures
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_textures(player, textures)
|
|
||||||
player:set_properties({textures = textures})
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_animation(player, anim_name, speed, _)
|
|
||||||
return mcl_player.player_set_animation(player, anim_name, speed)
|
|
||||||
end
|
|
||||||
|
|
||||||
local metatable = {
|
|
||||||
__index = function (_, key)
|
|
||||||
return mcl_player.player_attached[key]
|
|
||||||
end,
|
|
||||||
__newindex = function (_, key, value)
|
|
||||||
rawset(mcl_player.player_attached, key, value)
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
papi.player_attached = {}
|
|
||||||
|
|
||||||
setmetatable(papi.player_attached, metatable)
|
|
||||||
|
|
||||||
return papi
|
|
|
@ -1,41 +0,0 @@
|
||||||
local papi = {}
|
|
||||||
|
|
||||||
function papi.register_model(name, def)
|
|
||||||
return player_api.register_model(name, def)
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_model(player, model)
|
|
||||||
return player_api.set_model(player, model)
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.get_animation(player)
|
|
||||||
return player_api.get_animation(player)
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.get_textures(player)
|
|
||||||
return player_api.get_textures(player)
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_textures(player, texture)
|
|
||||||
return player_api.set_textures(player, texture)
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_animation(player, anim_name, speed, loop)
|
|
||||||
return player_api.set_animation(player, anim_name, speed, loop)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local metatable = {
|
|
||||||
__index = function (_, key)
|
|
||||||
return player_api.player_attached[key]
|
|
||||||
end,
|
|
||||||
__newindex = function (_, key, value)
|
|
||||||
rawset(player_api.player_attached, key, value)
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
papi.player_attached = {}
|
|
||||||
|
|
||||||
setmetatable(papi.player_attached, metatable)
|
|
||||||
|
|
||||||
return papi
|
|
|
@ -1,41 +0,0 @@
|
||||||
local papi = {}
|
|
||||||
|
|
||||||
local models = {}
|
|
||||||
function papi.register_model(name, def)
|
|
||||||
models[name] = def
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_model(player, model_name)
|
|
||||||
local model = models[model_name]
|
|
||||||
|
|
||||||
if not model then return end
|
|
||||||
|
|
||||||
player:set_properties({
|
|
||||||
mesh = model_name,
|
|
||||||
textures = model.textures,
|
|
||||||
visual = "mesh",
|
|
||||||
visual_size = model.visual_size,
|
|
||||||
stepheight = model.stepheight
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.get_animation(_)
|
|
||||||
--stub to keep from crashing
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.get_textures(player)
|
|
||||||
return player:get_properties().textures
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_textures(player, textures)
|
|
||||||
player:set_properties({textures = textures})
|
|
||||||
end
|
|
||||||
|
|
||||||
function papi.set_animation(_, _, _, _)
|
|
||||||
--stub to keep from crashing
|
|
||||||
end
|
|
||||||
|
|
||||||
--nothing to do here as we have no globalstep .....that we know about anyways
|
|
||||||
papi.player_attached = {}
|
|
||||||
|
|
||||||
return papi
|
|
|
@ -1,8 +0,0 @@
|
||||||
local filename = xcompat.gameid
|
|
||||||
|
|
||||||
--if we dont have a materials file for the game, use minetest
|
|
||||||
if not xcompat.utilities.file_exists(xcompat.modpath .. "/src/sounds/" .. filename .. ".lua") then
|
|
||||||
filename = "xcompat_agnostic"
|
|
||||||
end
|
|
||||||
|
|
||||||
return dofile(xcompat.modpath .. "/src/sounds/" .. filename .. ".lua")
|
|
|
@ -1,67 +0,0 @@
|
||||||
local sound_api = {}
|
|
||||||
|
|
||||||
function sound_api.node_sound_default(soundtable)
|
|
||||||
return nodes_nature.node_sound_default(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_stone_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_stone_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
--return dirt as some games use dirt vs grass
|
|
||||||
function sound_api.node_sound_grass_defaults(soundtable)
|
|
||||||
return sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_sand_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_sand_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_gravel_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_gravel_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wood_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_wood_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_leaves_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_leaves_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_glass_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_glass_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function sound_api.node_sound_ice_defaults(soundtable)
|
|
||||||
--s/ice/glass
|
|
||||||
return nodes_nature.node_sound_glass_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_metal_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_water_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_water_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_lava_defaults(soundtable)
|
|
||||||
--s/lava/water
|
|
||||||
return nodes_nature.node_sound_water_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_snow_defaults(soundtable)
|
|
||||||
return nodes_nature.node_sound_snow_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wool_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
return sound_api
|
|
|
@ -1,65 +0,0 @@
|
||||||
local sound_api = {}
|
|
||||||
|
|
||||||
function sound_api.node_sound_default(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_stone_defaults(soundtable)
|
|
||||||
return fl_stone.sounds.stone(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
return fl_topsoil.sounds.grass(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
--return dirt as some games use dirt vs grass
|
|
||||||
function sound_api.node_sound_grass_defaults(soundtable)
|
|
||||||
return sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_sand_defaults(soundtable)
|
|
||||||
return fl_stone.sounds.sand(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_gravel_defaults(soundtable)
|
|
||||||
return fl_topsoil.sounds.gravel(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wood_defaults(soundtable)
|
|
||||||
return fl_trees.sounds.wood(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_leaves_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_glass_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function sound_api.node_sound_ice_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_metal_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_water_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_lava_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_snow_defaults(soundtable)
|
|
||||||
return fl_topsoil.sounds.snow(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wool_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
return sound_api
|
|
|
@ -1,63 +0,0 @@
|
||||||
local sound_api = {}
|
|
||||||
|
|
||||||
function sound_api.node_sound_default(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_stone_defaults(soundtable)
|
|
||||||
return sounds.stone(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
return sounds.dirt(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_grass_defaults(soundtable)
|
|
||||||
return sounds.grass(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_sand_defaults(soundtable)
|
|
||||||
return sounds.sand(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_gravel_defaults(soundtable)
|
|
||||||
return sounds.gravel(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wood_defaults(soundtable)
|
|
||||||
return sounds.wood(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_leaves_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_glass_defaults(soundtable)
|
|
||||||
return sounds.glass(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_ice_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_metal_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_water_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_lava_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_snow_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wool_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
return sound_api
|
|
|
@ -1,66 +0,0 @@
|
||||||
local sound_api = {}
|
|
||||||
|
|
||||||
function sound_api.node_sound_default(soundtable)
|
|
||||||
return hades_sounds.node_sound_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_stone_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_stone_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
--return dirt as some games use dirt vs grass
|
|
||||||
function sound_api.node_sound_grass_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_grass_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_sand_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_sand_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_gravel_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_gravel_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wood_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_wood_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_leaves_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_leaves_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_glass_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_glass_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function sound_api.node_sound_ice_defaults(soundtable)
|
|
||||||
--s/ice/glass
|
|
||||||
return hades_sounds.node_sound_glass_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_metal_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_metal_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_water_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_water_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_lava_defaults(soundtable)
|
|
||||||
return hades_sounds.node_sound_lava_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_snow_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wool_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
return sound_api
|
|
|
@ -1,107 +0,0 @@
|
||||||
local sound_api = {}
|
|
||||||
|
|
||||||
--ks_sounds conversion
|
|
||||||
--currently loggy and bedrock are ignored
|
|
||||||
local ks = {}
|
|
||||||
|
|
||||||
function ks.node_sound_defaults(soundtable)
|
|
||||||
soundtable = soundtable or {}
|
|
||||||
soundtable.footstep = soundtable.footstep or ks_sounds.generalnode_sounds.footstep
|
|
||||||
soundtable.dug = soundtable.dug or ks_sounds.generalnode_sounds.dug
|
|
||||||
soundtable.dig = soundtable.dig or ks_sounds.generalnode_sounds.dig
|
|
||||||
soundtable.place = soundtable.place or ks_sounds.generalnode_sounds.place
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function ks.node_sound_wood_defaults(soundtable)
|
|
||||||
soundtable = soundtable or {}
|
|
||||||
soundtable.footstep = soundtable.footstep or ks_sounds.woodennode_sounds.footstep
|
|
||||||
soundtable.dug = soundtable.dug or ks_sounds.woodennode_sounds.dug
|
|
||||||
soundtable.dig = soundtable.dig or ks_sounds.woodennode_sounds.dig
|
|
||||||
soundtable.place = soundtable.place or ks_sounds.woodennode_sounds.place
|
|
||||||
ks.node_sound_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function ks.node_sound_leaves_defaults(soundtable)
|
|
||||||
soundtable = soundtable or {}
|
|
||||||
soundtable.footstep = soundtable.footstep or ks_sounds.leafynode_sounds.footstep
|
|
||||||
soundtable.dug = soundtable.dug or ks_sounds.leafynode_sounds.dug
|
|
||||||
soundtable.dig = soundtable.dig or ks_sounds.leafynode_sounds.dig
|
|
||||||
soundtable.place = soundtable.place or ks_sounds.leafynode_sounds.place
|
|
||||||
ks.node_sound_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function ks.node_sound_snow_defaults(soundtable)
|
|
||||||
soundtable = soundtable or {}
|
|
||||||
soundtable.footstep = soundtable.footstep or ks_sounds.snowynode_sounds.footstep
|
|
||||||
soundtable.dug = soundtable.dug or ks_sounds.snowynode_sounds.dug
|
|
||||||
soundtable.dig = soundtable.dig or ks_sounds.snowynode_sounds.dig
|
|
||||||
soundtable.place = soundtable.place or ks_sounds.snowynode_sounds.place
|
|
||||||
ks.node_sound_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_default(soundtable)
|
|
||||||
return ks.node_sound_default(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_stone_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
--return dirt as some games use dirt vs grass
|
|
||||||
function sound_api.node_sound_grass_defaults(soundtable)
|
|
||||||
return sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_sand_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_gravel_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wood_defaults(soundtable)
|
|
||||||
return ks.node_sound_wood_default(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_leaves_defaults(soundtable)
|
|
||||||
return ks.node_sound_leaves_default(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_glass_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_ice_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_metal_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_water_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_lava_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_snow_defaults(soundtable)
|
|
||||||
return ks.node_sound_snow_default(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wool_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
return sound_api
|
|
|
@ -1,67 +0,0 @@
|
||||||
--note this file handles mineclonia, mineclone2, and its rename voxelibre
|
|
||||||
|
|
||||||
local sound_api = {}
|
|
||||||
|
|
||||||
function sound_api.node_sound_default(soundtable)
|
|
||||||
return mcl_sounds.node_sound_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_stone_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_stone_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
--return dirt as some games use dirt vs grass
|
|
||||||
function sound_api.node_sound_grass_defaults(soundtable)
|
|
||||||
return sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_sand_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_sand_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_gravel_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_sand_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wood_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_wood_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_leaves_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_leaves_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_glass_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_glass_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function sound_api.node_sound_ice_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_glass_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_metal_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_metal_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_water_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_water_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_lava_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_lava_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_snow_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_snow_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wool_defaults(soundtable)
|
|
||||||
return mcl_sounds.node_sound_wool_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
return sound_api
|
|
|
@ -1,67 +0,0 @@
|
||||||
local sound_api = {}
|
|
||||||
|
|
||||||
function sound_api.node_sound_default(soundtable)
|
|
||||||
return default.node_sound_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_stone_defaults(soundtable)
|
|
||||||
return default.node_sound_stone_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
return default.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
--return dirt as some games use dirt vs grass
|
|
||||||
function sound_api.node_sound_grass_defaults(soundtable)
|
|
||||||
return sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_sand_defaults(soundtable)
|
|
||||||
return default.node_sound_sand_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_gravel_defaults(soundtable)
|
|
||||||
return default.node_sound_gravel_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wood_defaults(soundtable)
|
|
||||||
return default.node_sound_wood_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_leaves_defaults(soundtable)
|
|
||||||
return default.node_sound_leaves_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_glass_defaults(soundtable)
|
|
||||||
return default.node_sound_glass_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function sound_api.node_sound_ice_defaults(soundtable)
|
|
||||||
return default.node_sound_ice_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_metal_defaults(soundtable)
|
|
||||||
return default.node_sound_metal_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_water_defaults(soundtable)
|
|
||||||
return default.node_sound_water_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_lava_defaults(soundtable)
|
|
||||||
--s/lava/water
|
|
||||||
return default.node_sound_water_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_snow_defaults(soundtable)
|
|
||||||
return default.node_sound_snow_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wool_defaults(soundtable)
|
|
||||||
--s/wool/default
|
|
||||||
return default.node_sound_defaults(soundtable)
|
|
||||||
end
|
|
||||||
|
|
||||||
return sound_api
|
|
|
@ -1,63 +0,0 @@
|
||||||
local sound_api = {}
|
|
||||||
|
|
||||||
function sound_api.node_sound_default(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_stone_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_dirt_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_grass_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_sand_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_gravel_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wood_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_leaves_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_glass_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_ice_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_metal_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_water_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_lava_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_snow_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
function sound_api.node_sound_wool_defaults(soundtable)
|
|
||||||
return soundtable
|
|
||||||
end
|
|
||||||
|
|
||||||
return sound_api
|
|
|
@ -1,8 +0,0 @@
|
||||||
local filename = xcompat.gameid
|
|
||||||
|
|
||||||
--if we dont have a materials file for the game, use minetest
|
|
||||||
if not xcompat.utilities.file_exists(xcompat.modpath .. "/src/textures/" .. filename .. ".lua") then
|
|
||||||
filename = "xcompat_agnostic"
|
|
||||||
end
|
|
||||||
|
|
||||||
return dofile(xcompat.modpath .. "/src/textures/" .. filename .. ".lua")
|
|
|
@ -1,57 +0,0 @@
|
||||||
local textures = {
|
|
||||||
gravel = "farlands_gravel.png",
|
|
||||||
brick = "farlands_brick.png",
|
|
||||||
|
|
||||||
metal = {
|
|
||||||
steel = {
|
|
||||||
ore = "farlands_iron_ingot.png",
|
|
||||||
ingot = "farlands_iron_ingot.png",
|
|
||||||
block = "farlands_iron_block.png",
|
|
||||||
},
|
|
||||||
gold = {
|
|
||||||
ore = "farlands_gold_ore.png",
|
|
||||||
ingot = "farlands_gold_ingot.png",
|
|
||||||
block = "farlands_gold_block.png",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
glass = {
|
|
||||||
pane = "farlands_glass.png",
|
|
||||||
detail = "farlands_glass_detail.png",
|
|
||||||
},
|
|
||||||
wood = {
|
|
||||||
apple = {
|
|
||||||
sapling = "farlands_apple_sapling.png",
|
|
||||||
planks = "farlands_apple_planks.png",
|
|
||||||
trunk_side = "farlands_apple_trunk.png",
|
|
||||||
trunk_top = "farlands_apple_trunk_top.png",
|
|
||||||
leaves = "farlands_apple_leaves.png",
|
|
||||||
},
|
|
||||||
jungle = {
|
|
||||||
sapling = "farlands_jungletree_sapling.png",
|
|
||||||
planks = "farlands_jungletree_planks.png",
|
|
||||||
trunk_side = "farlands_jungletree_trunk.png",
|
|
||||||
trunk_top = "farlands_jungletree_trunk_top.png",
|
|
||||||
leaves = "farlands_jungletree_leaves.png",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
water = {
|
|
||||||
tile = "farlands_water.png",
|
|
||||||
animated = {
|
|
||||||
source = "farlands_water_source_animated.png",
|
|
||||||
flowing = "farlands_water_flowing_animated.png",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
wool = {
|
|
||||||
white = "farlands_wool.png",
|
|
||||||
black = "farlands_wool.png",
|
|
||||||
grey = "farlands_wool.png",
|
|
||||||
dark_grey = "farlands_wool.png",
|
|
||||||
},
|
|
||||||
grass = {
|
|
||||||
top = "farlands_grass.png",
|
|
||||||
side = "farlands_dirt.png^farlands_grass_side.png",
|
|
||||||
dirt = "farlands_dirt.png",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return textures
|
|
|
@ -1,57 +0,0 @@
|
||||||
local textures = {
|
|
||||||
gravel = "default_gravel.png",
|
|
||||||
brick = "default_brick.png",
|
|
||||||
|
|
||||||
metal = {
|
|
||||||
steel = {
|
|
||||||
ore = "default_iron_lump.png",
|
|
||||||
ingot = "default_steel_ingot.png",
|
|
||||||
block = "default_steel_block.png",
|
|
||||||
},
|
|
||||||
gold = {
|
|
||||||
ore = "default_gold_lump.png",
|
|
||||||
ingot = "default_gold_ingot.png",
|
|
||||||
block = "default_gold_block.png",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
glass = {
|
|
||||||
pane = "default_glass.png",
|
|
||||||
detail = "default_glass_detail.png",
|
|
||||||
},
|
|
||||||
wood = {
|
|
||||||
apple = {
|
|
||||||
sapling = "default_sapling.png",
|
|
||||||
planks = "default_wood.png",
|
|
||||||
trunk_side = "default_tree.png",
|
|
||||||
trunk_top = "default_tree_top.png",
|
|
||||||
leaves = "default_leaves.png",
|
|
||||||
},
|
|
||||||
jungle = {
|
|
||||||
sapling = "default_junglesapling.png",
|
|
||||||
planks = "default_junglewood.png",
|
|
||||||
trunk_side = "default_jungletree.png",
|
|
||||||
trunk_top = "default_jungletree_top.png",
|
|
||||||
leaves = "default_jungleleaves.png",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
water = {
|
|
||||||
tile = "default_water.png",
|
|
||||||
animated = {
|
|
||||||
source = "default_water_source_animated.png",
|
|
||||||
flowing = "default_water_flowing_animated.png",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
wool = {
|
|
||||||
white = "wool_white.png",
|
|
||||||
black = "wool_black.png",
|
|
||||||
grey = "wool_grey.png",
|
|
||||||
dark_grey = "wool_dark_grey.png",
|
|
||||||
},
|
|
||||||
grass = {
|
|
||||||
top = "default_grass.png",
|
|
||||||
side = "default_dirt.png^default_grass_side.png",
|
|
||||||
dirt = "default_dirt.png",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return textures
|
|
|
@ -1,65 +0,0 @@
|
||||||
local textures = {
|
|
||||||
gravel = "[combine:16x16^[noalpha^[colorize:#3a3b3c",
|
|
||||||
brick = "[combine:16x16^[noalpha^[colorize:#AA4A44",
|
|
||||||
|
|
||||||
metal = {
|
|
||||||
steel = {
|
|
||||||
ore = "[combine:16x16^[noalpha^[colorize:#D3D3D3",
|
|
||||||
ingot = "[combine:16x16^[noalpha^[colorize:#D3D3D3",
|
|
||||||
block = "[combine:16x16^[noalpha^[colorize:#D3D3D3",
|
|
||||||
},
|
|
||||||
gold = {
|
|
||||||
ore = "[combine:16x16^[noalpha^[colorize:#FFD700",
|
|
||||||
ingot = "[combine:16x16^[noalpha^[colorize:#FFD700",
|
|
||||||
block = "[combine:16x16^[noalpha^[colorize:#FFD700",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
glass = {
|
|
||||||
pane = "[combine:16x16:" ..
|
|
||||||
"0,0=\\[combine\\:1x16\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"0,0=\\[combine\\:16x1\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"0,15=\\[combine\\:16x1\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"15,0=\\[combine\\:1x16\\^[noalpha\\^[colorize\\:#ffffff",
|
|
||||||
detail = "[combine:16x16:" ..
|
|
||||||
"0,0=\\[combine\\:1x16\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"0,0=\\[combine\\:16x1\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"0,15=\\[combine\\:16x1\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"15,0=\\[combine\\:1x16\\^[noalpha\\^[colorize\\:#ffffff",
|
|
||||||
},
|
|
||||||
wood = {
|
|
||||||
apple = {
|
|
||||||
sapling = "[combine:16x16^[noalpha^[colorize:#654321",
|
|
||||||
planks = "[combine:16x16^[noalpha^[colorize:#654321",
|
|
||||||
trunk_side = "[combine:16x16^[noalpha^[colorize:#654321",
|
|
||||||
trunk_top = "[combine:16x16^[noalpha^[colorize:#654321",
|
|
||||||
leaves = "[combine:16x16^[noalpha^[colorize:#654321",
|
|
||||||
},
|
|
||||||
jungle = {
|
|
||||||
sapling = "[combine:16x16^[noalpha^[colorize:#563d2d",
|
|
||||||
planks = "[combine:16x16^[noalpha^[colorize:#563d2d",
|
|
||||||
trunk_side = "[combine:16x16^[noalpha^[colorize:#563d2d",
|
|
||||||
trunk_top = "[combine:16x16^[noalpha^[colorize:#563d2d",
|
|
||||||
leaves = "[combine:16x16^[noalpha^[colorize:#563d2d",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
water = {
|
|
||||||
tile = "[combine:16x16^[noalpha^[colorize:#00008b",
|
|
||||||
animated = {
|
|
||||||
source = "[combine:16x16^[noalpha^[colorize:#00008b",
|
|
||||||
flowing = "[combine:16x16^[noalpha^[colorize:#00008b",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
wool = {
|
|
||||||
white = "[combine:16x16^[noalpha^[colorize:#ffffff",
|
|
||||||
black = "[combine:16x16^[noalpha^[colorize:#000000",
|
|
||||||
grey = "[combine:16x16^[noalpha^[colorize:#313b3c",
|
|
||||||
dark_grey = "[combine:16x16^[noalpha^[colorize:#313b3c",
|
|
||||||
},
|
|
||||||
grass = {
|
|
||||||
top = "[combine:16x16^[noalpha^[colorize:#006400",
|
|
||||||
side = "[combine:16x16^[noalpha^[colorize:#006400",
|
|
||||||
dirt = "[combine:16x16^[noalpha^[colorize:#563d2d",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return textures
|
|
|
@ -1,8 +0,0 @@
|
||||||
local utilities = {}
|
|
||||||
|
|
||||||
function utilities.file_exists(name)
|
|
||||||
local f=io.open(name,"r")
|
|
||||||
if f~=nil then io.close(f) return true else return false end
|
|
||||||
end
|
|
||||||
|
|
||||||
return utilities
|
|
|
@ -1,356 +0,0 @@
|
||||||
fl_furniture:yellow_ipe_table
|
|
||||||
fl_trees:palm_trunk
|
|
||||||
fl_stone:mossy_stone
|
|
||||||
fl_trees:acacia_sapling
|
|
||||||
fl_doors:copper_door_a
|
|
||||||
fl_trees:jungletree_plank
|
|
||||||
fl_workshop:furnace_active
|
|
||||||
fl_topsoil:wet_farmland
|
|
||||||
fl_trees:spruce_leaves
|
|
||||||
fl_stone:stone_brick
|
|
||||||
fl_light_sources:lantern
|
|
||||||
fl_plantlife:red_mushroom_leaves
|
|
||||||
fl_stone:basalt
|
|
||||||
fl_topsoil:condensed_ice
|
|
||||||
fl_doors:apple_door_b
|
|
||||||
fl_beds:bed_pink
|
|
||||||
fl_plantlife:petunia_blue
|
|
||||||
fl_trees:acacia_leaves
|
|
||||||
fl_stone:basalt_block
|
|
||||||
fl_ores:coal_in_tuff
|
|
||||||
fl_topsoil:sea_grass_3
|
|
||||||
fl_agriculture:carrot_2
|
|
||||||
fl_beds:bed_violet
|
|
||||||
fl_stone:basalt_rubble
|
|
||||||
fl_furniture:spruce_bench
|
|
||||||
fl_ores:copper_in_tuff
|
|
||||||
fl_trees:willow_plank
|
|
||||||
fl_trees:yellow_ipe_plank_fence
|
|
||||||
fl_storage:spruce_vessel_shelf
|
|
||||||
fl_beds:bed_blue
|
|
||||||
fl_stone:stone_block
|
|
||||||
fl_stone:tuff_rubble
|
|
||||||
fl_ores:mithite_in_stone
|
|
||||||
fl_topsoil:savannah_dirt_with_grass
|
|
||||||
fl_furniture:pine_table
|
|
||||||
fl_trees:pine_plank_fence
|
|
||||||
fl_furniture:baobab_chair
|
|
||||||
fl_plantlife:grass_2
|
|
||||||
fl_trees:pine_sapling
|
|
||||||
fl_beds:bed_dark_green
|
|
||||||
fl_plantlife:cactus
|
|
||||||
fl_storage:spruce_book_shelf
|
|
||||||
fl_signs:sign_wood
|
|
||||||
fl_plantlife:pink_ground_flower
|
|
||||||
fl_doors:steel_door_b
|
|
||||||
fl_topsoil:sea_grass_1
|
|
||||||
fl_trees:aspen_leaves
|
|
||||||
fl_stone:ors_brick
|
|
||||||
fl_doors:jungletree_door_a
|
|
||||||
fl_paintings:forest
|
|
||||||
fl_storage:spruce_multi_shelf
|
|
||||||
fl_beds:bed_red
|
|
||||||
fl_tnt:tnt
|
|
||||||
fl_beds:bed_brown
|
|
||||||
fl_storage:pine_multi_shelf
|
|
||||||
fl_ores:mithite_block
|
|
||||||
fl_beds:bed_orange
|
|
||||||
fl_ores:coal_in_desert_stone
|
|
||||||
fl_plantlife:red_ground_flower
|
|
||||||
fl_ores:gold_in_desert_stone
|
|
||||||
fl_stone:silver_sandstone_block
|
|
||||||
fl_storage:wood_chest
|
|
||||||
fl_furniture:aspen_table
|
|
||||||
fl_doors:aspen_door_a
|
|
||||||
fl_stone:ors
|
|
||||||
fl_stone:sandstone_brick
|
|
||||||
fl_doors:pine_door_b
|
|
||||||
fl_furniture:acacia_table
|
|
||||||
fl_trees:acacia_trunk
|
|
||||||
fl_stone:mossy_stone_block
|
|
||||||
fl_doors:baobab_door_b
|
|
||||||
fl_plantlife:pansy_purple
|
|
||||||
fl_industrial:conveyor_funnel
|
|
||||||
fl_stone:savannah_rubble
|
|
||||||
fl_trains:straight_rise_track
|
|
||||||
fl_storage:baobab_book_shelf
|
|
||||||
fl_plantlife:purple_allium
|
|
||||||
fl_ores:diamond_block
|
|
||||||
fl_topsoil:dirt_with_grass
|
|
||||||
fl_plantlife:ground_waterlily
|
|
||||||
fl_plantlife:flowerpot
|
|
||||||
fl_plantlife:grass_4
|
|
||||||
fl_storage:pine_book_shelf
|
|
||||||
fl_doors:palm_door_a
|
|
||||||
fl_furniture:willow_table
|
|
||||||
fl_trains:straight_45_track
|
|
||||||
fl_trees:palm_leaves
|
|
||||||
fl_glass:framed_glass_panes
|
|
||||||
fl_storage:yellow_ipe_vessel_shelf
|
|
||||||
fl_ores:coal_block
|
|
||||||
fl_plantlife:dandelion_yellow
|
|
||||||
fl_beds:bed_cyan
|
|
||||||
fl_topsoil:gravel
|
|
||||||
fl_storage:acacia_book_shelf
|
|
||||||
fl_furniture:baobab_bench
|
|
||||||
fl_furniture:willow_bench
|
|
||||||
fl_plantlife:savannah_grass_1
|
|
||||||
fl_industrial:conveyor
|
|
||||||
fl_storage:acacia_vessel_shelf
|
|
||||||
fl_light_sources:chain
|
|
||||||
fl_trees:spruce_plank
|
|
||||||
fl_trees:apple_leaves
|
|
||||||
fl_trees:baobab_leaves
|
|
||||||
fl_stone:silver_sand
|
|
||||||
fl_stone:desert_stone
|
|
||||||
fl_furniture:spruce_chair
|
|
||||||
fl_ores:copper_in_desert_stone
|
|
||||||
fl_topsoil:snow_block
|
|
||||||
fl_ores:mithite_in_savannah
|
|
||||||
fl_trees:acacia_plank
|
|
||||||
fl_topsoil:dirt
|
|
||||||
fl_fire:fire
|
|
||||||
fl_stone:gneiss_rubble
|
|
||||||
fl_furniture:acacia_bench
|
|
||||||
fl_storage:willow_vessel_shelf
|
|
||||||
fl_plantlife:lantana
|
|
||||||
fl_stone:sandstone
|
|
||||||
fl_furniture:jungletree_chair
|
|
||||||
fl_workshop:furnace
|
|
||||||
fl_stone:gneiss
|
|
||||||
fl_agriculture:potato_4
|
|
||||||
fl_topsoil:permafrost_with_stones
|
|
||||||
fl_topsoil:snow
|
|
||||||
fl_trees:baobab_plank
|
|
||||||
fl_stone:tuff_brick
|
|
||||||
fl_stone:desert_sandstone_block
|
|
||||||
fl_bones:bone_block
|
|
||||||
fl_stone:basalt_brick
|
|
||||||
fl_doors:steel_door_a
|
|
||||||
fl_furniture:aspen_bench
|
|
||||||
fl_ores:tin_in_savannah
|
|
||||||
fl_trees:palm_plank_fence
|
|
||||||
fl_doors:apple_door_a
|
|
||||||
fl_wool:wool
|
|
||||||
fl_furniture:spruce_table
|
|
||||||
fl_agriculture:carrot_1
|
|
||||||
fl_ores:iron_in_stone
|
|
||||||
fl_stone:desert_sandstone_brick
|
|
||||||
fl_storage:apple_empty_shelf
|
|
||||||
fl_stone:gneiss_block
|
|
||||||
fl_stone:mossy_stone_rubble
|
|
||||||
fl_agriculture:carrot_3
|
|
||||||
fl_trees:willow_trunk
|
|
||||||
fl_trees:pine_leaves
|
|
||||||
fl_trains:curve_right_track
|
|
||||||
fl_doors:copper_door_b
|
|
||||||
fl_doors:jungletree_door_b
|
|
||||||
fl_furniture:jungletree_bench
|
|
||||||
fl_doors:willow_door_b
|
|
||||||
fl_topsoil:sea_grass_2
|
|
||||||
fl_ores:gold_in_ors
|
|
||||||
fl_doors:willow_door_a
|
|
||||||
fl_trains:switch_right_track
|
|
||||||
fl_doors:aspen_door_b
|
|
||||||
fl_doors:palm_door_b
|
|
||||||
fl_stone:stone
|
|
||||||
fl_plantlife:rose
|
|
||||||
fl_doors:yellow_ipe_door_b
|
|
||||||
fl_doors:yellow_ipe_door_a
|
|
||||||
fl_plantlife:grass_3
|
|
||||||
fl_storage:apple_vessel_shelf
|
|
||||||
fl_plantlife:tulip
|
|
||||||
fl_light_sources:torch
|
|
||||||
fl_trees:palm_sapling
|
|
||||||
fl_doors:blocker_top
|
|
||||||
fl_bricks:terracotta
|
|
||||||
fl_bricks:clay_block
|
|
||||||
fl_bricks:brick
|
|
||||||
fl_agriculture:carrot_4
|
|
||||||
fl_paintings:cthulhu
|
|
||||||
fl_trees:aspen_trunk
|
|
||||||
fl_furniture:willow_chair
|
|
||||||
fl_glass:tinted_framed_glass_panes
|
|
||||||
fl_stone:sandstone_block
|
|
||||||
fl_glass:tinted_framed_glass
|
|
||||||
fl_ores:gold_block
|
|
||||||
fl_furniture:apple_chair
|
|
||||||
fl_glass:framed_glass
|
|
||||||
fl_storage:pine_vessel_shelf
|
|
||||||
fl_beds:bed_yellow
|
|
||||||
fl_beds:bed_black
|
|
||||||
fl_stone:silver_sandstone
|
|
||||||
fl_beds:bed_dark_grey
|
|
||||||
fl_beds:bed_green
|
|
||||||
fl_ores:tin_in_tuff
|
|
||||||
fl_beds:bed_grey
|
|
||||||
fl_beds:bed_magenta
|
|
||||||
fl_beds:bed_white
|
|
||||||
fl_wildlife:spawner
|
|
||||||
fl_wool:wool_carpet
|
|
||||||
fl_paintings:dragon
|
|
||||||
fl_topsoil:dirt_with_snow
|
|
||||||
fl_ores:tin_block
|
|
||||||
fl_furniture:baobab_table
|
|
||||||
fl_dyes:demo_node
|
|
||||||
fl_plantlife:viola
|
|
||||||
fl_ores:diamond_in_ors
|
|
||||||
fl_plantlife:savannah_grass_4
|
|
||||||
fl_plantlife:oxeye_daisy
|
|
||||||
fl_plantlife:geranium
|
|
||||||
fl_plantlife:mushroom_trunk
|
|
||||||
fl_stone:ors_rubble
|
|
||||||
fl_doors:baobab_door_a
|
|
||||||
fl_light_sources:lantern_c
|
|
||||||
fl_doors:acacia_door_b
|
|
||||||
fl_plantlife:petunia_white
|
|
||||||
fl_storage:spruce_empty_shelf
|
|
||||||
fl_plantlife:petunia_pink
|
|
||||||
fl_ores:tin_in_stone
|
|
||||||
fl_ores:mithite_in_desert_stone
|
|
||||||
fl_stone:desert_sand
|
|
||||||
fl_plantlife:pansy_blue
|
|
||||||
fl_plantlife:frozen_rose
|
|
||||||
fl_ores:gold_in_tuff
|
|
||||||
fl_stone:savannah_brick
|
|
||||||
fl_ores:coal_in_savannah
|
|
||||||
fl_plantlife:blue_ground_flower
|
|
||||||
fl_ores:iron_in_desert_stone
|
|
||||||
fl_industrial:injector
|
|
||||||
fl_trees:aspen_plank_fence
|
|
||||||
fl_plantlife:savannah_grass_2
|
|
||||||
fl_plantlife:dandelion_white
|
|
||||||
fl_plantlife:flame_lily
|
|
||||||
fl_plantlife:brown_mushroom
|
|
||||||
fl_plantlife:red_mushroom
|
|
||||||
fl_trees:jungletree_plank_fence
|
|
||||||
fl_plantlife:brown_mushroom_leaves
|
|
||||||
fl_plantlife:raw_mushroom_leaves
|
|
||||||
fl_plantlife:savannah_grass_5
|
|
||||||
fl_stone:tuff_block
|
|
||||||
fl_plantlife:savannah_grass_3
|
|
||||||
fl_trees:acacia_plank_fence
|
|
||||||
fl_trees:jungletree_sapling
|
|
||||||
fl_furniture:pine_bench
|
|
||||||
fl_plantlife:grass_1
|
|
||||||
fl_plantlife:lavender_flower
|
|
||||||
fl_ores:coal_in_stone
|
|
||||||
fl_plantlife:grass_5
|
|
||||||
fl_ores:bronze_block
|
|
||||||
fl_trees:yellow_ipe_plank
|
|
||||||
fl_stone:gneiss_brick
|
|
||||||
fl_ores:diamond_in_savannah
|
|
||||||
fl_trees:pine_plank
|
|
||||||
fl_ores:diamond_in_desert_stone
|
|
||||||
fl_ores:diamond_in_tuff
|
|
||||||
fl_storage:baobab_empty_shelf
|
|
||||||
fl_storage:yellow_ipe_empty_shelf
|
|
||||||
fl_paintings:landscape
|
|
||||||
fl_stairs:tablesaw
|
|
||||||
fl_furniture:yellow_ipe_chair
|
|
||||||
fl_ores:copper_in_ors
|
|
||||||
fl_trees:apple_trunk
|
|
||||||
fl_trees:yellow_ipe_leaves
|
|
||||||
fl_trees:dead_aspen_leaves
|
|
||||||
fl_liquids:water_flowing
|
|
||||||
fl_furniture:aspen_chair
|
|
||||||
fl_plantlife:lobelia
|
|
||||||
fl_topsoil:dry_farmland
|
|
||||||
fl_trees:apple_plank
|
|
||||||
ignore
|
|
||||||
fl_trains:switch_left_track
|
|
||||||
fl_storage:willow_empty_shelf
|
|
||||||
fl_trees:spruce_plank_fence
|
|
||||||
fl_ores:copper_in_savannah
|
|
||||||
fl_stone:sand
|
|
||||||
fl_furniture:pine_chair
|
|
||||||
fl_storage:aspen_empty_shelf
|
|
||||||
fl_topsoil:coarse_dirt
|
|
||||||
fl_storage:acacia_multi_shelf
|
|
||||||
fl_ores:mithite_in_ors
|
|
||||||
fl_paintings:waterlilie
|
|
||||||
fl_stone:tuff
|
|
||||||
fl_stone:savannah_block
|
|
||||||
fl_trees:willow_plank_fence
|
|
||||||
fl_storage:baobab_vessel_shelf
|
|
||||||
fl_furniture:apple_table
|
|
||||||
fl_paintings:rose
|
|
||||||
fl_liquids:river_water_source
|
|
||||||
fl_trees:pine_trunk
|
|
||||||
fl_storage:aspen_vessel_shelf
|
|
||||||
fl_topsoil:ice
|
|
||||||
fl_storage:aspen_book_shelf
|
|
||||||
fl_liquids:lava_source
|
|
||||||
fl_agriculture:potato_2
|
|
||||||
fl_storage:aspen_multi_shelf
|
|
||||||
fl_storage:willow_book_shelf
|
|
||||||
fl_furniture:acacia_chair
|
|
||||||
fl_trains:crossing_track
|
|
||||||
fl_trees:apple_plank_fence
|
|
||||||
fl_liquids:river_water_flowing
|
|
||||||
fl_trees:baobab_sapling
|
|
||||||
fl_ores:gold_in_stone
|
|
||||||
fl_trains:curve_left_track
|
|
||||||
fl_trains:straight_track
|
|
||||||
fl_doors:acacia_door_a
|
|
||||||
fl_storage:apple_multi_shelf
|
|
||||||
fl_trees:aspen_plank
|
|
||||||
fl_trees:spruce_trunk
|
|
||||||
fl_stone:desert_stone_rubble
|
|
||||||
fl_trees:baobab_trunk
|
|
||||||
fl_ores:copper_in_stone
|
|
||||||
fl_industrial:conveyor_left
|
|
||||||
fl_storage:acacia_empty_shelf
|
|
||||||
fl_trees:palm_plank
|
|
||||||
fl_agriculture:potato_1
|
|
||||||
fl_trees:apple_sapling
|
|
||||||
fl_trees:baobab_plank_fence
|
|
||||||
fl_furniture:yellow_ipe_bench
|
|
||||||
fl_ores:tin_in_desert_stone
|
|
||||||
fl_furniture:palm_bench
|
|
||||||
fl_storage:yellow_ipe_book_shelf
|
|
||||||
fl_stone:savannah
|
|
||||||
fl_furniture:apple_bench
|
|
||||||
fl_ores:iron_block
|
|
||||||
fl_furniture:palm_chair
|
|
||||||
fl_glass:tinted_connected_glass
|
|
||||||
fl_agriculture:potato_3
|
|
||||||
fl_trees:aspen_sapling
|
|
||||||
fl_storage:baobab_multi_shelf
|
|
||||||
fl_storage:willow_multi_shelf
|
|
||||||
fl_furniture:palm_table
|
|
||||||
fl_furniture:jungletree_table
|
|
||||||
fl_trees:jungletree_trunk
|
|
||||||
fl_stone:stone_rubble
|
|
||||||
fl_doors:pine_door_a
|
|
||||||
fl_storage:pine_empty_shelf
|
|
||||||
fl_stone:mossy_stone_brick
|
|
||||||
fl_stone:ors_block
|
|
||||||
fl_paintings:possessedwoman
|
|
||||||
fl_storage:apple_book_shelf
|
|
||||||
fl_storage:yellow_ipe_multi_shelf
|
|
||||||
fl_stone:desert_stone_block
|
|
||||||
fl_stone:desert_stone_brick
|
|
||||||
fl_trees:jungletree_leaves
|
|
||||||
fl_liquids:water_source
|
|
||||||
fl_stone:desert_sandstone
|
|
||||||
fl_trees:willow_leaves
|
|
||||||
fl_workshop:anvil
|
|
||||||
fl_paintings:mistiriusgirl
|
|
||||||
fl_trees:yellow_ipe_trunk
|
|
||||||
fl_topsoil:savannah_dirt
|
|
||||||
fl_ores:coal_in_ors
|
|
||||||
fl_topsoil:permafrost
|
|
||||||
fl_liquids:lava_flowing
|
|
||||||
fl_ores:iron_in_ors
|
|
||||||
fl_industrial:conveyor_right
|
|
||||||
fl_ores:iron_in_tuff
|
|
||||||
fl_ores:iron_in_savannah
|
|
||||||
fl_ores:copper_block
|
|
||||||
fl_stone:silver_sandstone_brick
|
|
||||||
air
|
|
||||||
fl_ores:gold_in_savannah
|
|
||||||
fl_ores:tin_in_ors
|
|
||||||
fl_ores:mithite_in_tuff
|
|
||||||
fl_stone:bedrock
|
|
||||||
fl_ores:diamond_in_stone
|
|
|
@ -28,7 +28,7 @@ asuna.biomes = {
|
||||||
heat = 51,
|
heat = 51,
|
||||||
humidity = 54,
|
humidity = 54,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_blend = 4,
|
y_blend = 4,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:dirt_with_grass", 1,
|
"default:dirt_with_grass", 1,
|
||||||
|
@ -48,7 +48,7 @@ asuna.biomes = {
|
||||||
name = "Underground",
|
name = "Underground",
|
||||||
heat = 50,
|
heat = 50,
|
||||||
humidity = 50,
|
humidity = 50,
|
||||||
y_min = -31000,
|
y_min = -10001,
|
||||||
y_max = -31000,
|
y_max = -31000,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:stone", 1,
|
"default:stone", 1,
|
||||||
|
@ -69,7 +69,7 @@ asuna.biomes = {
|
||||||
heat = 54,
|
heat = 54,
|
||||||
humidity = 32,
|
humidity = 32,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_blend = 4,
|
y_blend = 4,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:dry_dirt_with_dry_grass", 1,
|
"default:dry_dirt_with_dry_grass", 1,
|
||||||
|
@ -91,7 +91,7 @@ asuna.biomes = {
|
||||||
heat = 47,
|
heat = 47,
|
||||||
humidity = 47,
|
humidity = 47,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_blend = 4,
|
y_blend = 4,
|
||||||
nodes = {
|
nodes = {
|
||||||
"prairie:prairie_dirt_with_grass", 1,
|
"prairie:prairie_dirt_with_grass", 1,
|
||||||
|
@ -112,7 +112,7 @@ asuna.biomes = {
|
||||||
heat = 51,
|
heat = 51,
|
||||||
humidity = 45,
|
humidity = 45,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"dorwinion:dorwinion_grass", 1,
|
"dorwinion:dorwinion_grass", 1,
|
||||||
"dorwinion:dorwinion", 5,
|
"dorwinion:dorwinion", 5,
|
||||||
|
@ -159,7 +159,7 @@ asuna.biomes = {
|
||||||
heat = 25,
|
heat = 25,
|
||||||
humidity = 35,
|
humidity = 35,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2100,
|
||||||
nodes = {
|
nodes = {
|
||||||
"naturalbiomes:alpine_litter", 1,
|
"naturalbiomes:alpine_litter", 1,
|
||||||
"naturalbiomes:alpine_rock", 32,
|
"naturalbiomes:alpine_rock", 32,
|
||||||
|
@ -180,7 +180,7 @@ asuna.biomes = {
|
||||||
heat = 52,
|
heat = 52,
|
||||||
humidity = 11,
|
humidity = 11,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_blend = 6,
|
y_blend = 6,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:desert_sand", 1,
|
"default:desert_sand", 1,
|
||||||
|
@ -229,7 +229,7 @@ asuna.biomes = {
|
||||||
heat = 95,
|
heat = 95,
|
||||||
humidity = 25,
|
humidity = 25,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"everness:forsaken_desert_sand", 1,
|
"everness:forsaken_desert_sand", 1,
|
||||||
"everness:forsaken_desert_sand", 1,
|
"everness:forsaken_desert_sand", 1,
|
||||||
|
@ -255,7 +255,7 @@ asuna.biomes = {
|
||||||
heat = 83,
|
heat = 83,
|
||||||
humidity = 35,
|
humidity = 35,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"naturalbiomes:outback_litter", 1,
|
"naturalbiomes:outback_litter", 1,
|
||||||
"naturalbiomes:outback_ground", 32,
|
"naturalbiomes:outback_ground", 32,
|
||||||
|
@ -277,7 +277,7 @@ asuna.biomes = {
|
||||||
heat = 80,
|
heat = 80,
|
||||||
humidity = 46,
|
humidity = 46,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"naturalbiomes:bushland_bushlandlitter", 1,
|
"naturalbiomes:bushland_bushlandlitter", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -299,7 +299,7 @@ asuna.biomes = {
|
||||||
heat = 46,
|
heat = 46,
|
||||||
humidity = 64,
|
humidity = 64,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"naturalbiomes:heath_litter", 1,
|
"naturalbiomes:heath_litter", 1,
|
||||||
"default:sand", 3,
|
"default:sand", 3,
|
||||||
|
@ -321,7 +321,7 @@ asuna.biomes = {
|
||||||
heat = 74,
|
heat = 74,
|
||||||
humidity = 7,
|
humidity = 7,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:sand", 1,
|
"default:sand", 1,
|
||||||
"default:sandstone", 32,
|
"default:sandstone", 32,
|
||||||
|
@ -347,7 +347,7 @@ asuna.biomes = {
|
||||||
heat = 58,
|
heat = 58,
|
||||||
humidity = 24,
|
humidity = 24,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"naturalbiomes:savannalitter", 1,
|
"naturalbiomes:savannalitter", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -369,7 +369,7 @@ asuna.biomes = {
|
||||||
heat = 82,
|
heat = 82,
|
||||||
humidity = 48,
|
humidity = 48,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"naturalbiomes:mediterran_litter", 1,
|
"naturalbiomes:mediterran_litter", 1,
|
||||||
"naturalbiomes:mediterran_rock", 16,
|
"naturalbiomes:mediterran_rock", 16,
|
||||||
|
@ -390,7 +390,7 @@ asuna.biomes = {
|
||||||
heat = 73,
|
heat = 73,
|
||||||
humidity = 94,
|
humidity = 94,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2100,
|
||||||
y_blend = 4,
|
y_blend = 4,
|
||||||
nodes = {
|
nodes = {
|
||||||
"ethereal:mushroom_dirt", 1,
|
"ethereal:mushroom_dirt", 1,
|
||||||
|
@ -412,7 +412,7 @@ asuna.biomes = {
|
||||||
heat = 77,
|
heat = 77,
|
||||||
humidity = 72,
|
humidity = 72,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:dirt_with_grass", 1,
|
"default:dirt_with_grass", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -463,7 +463,7 @@ asuna.biomes = {
|
||||||
heat = 48,
|
heat = 48,
|
||||||
humidity = 99,
|
humidity = 99,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"everness:dirt_with_grass_1", 1,
|
"everness:dirt_with_grass_1", 1,
|
||||||
"everness:dirt_1", 3,
|
"everness:dirt_1", 3,
|
||||||
|
@ -484,7 +484,7 @@ asuna.biomes = {
|
||||||
heat = 39,
|
heat = 39,
|
||||||
humidity = 75,
|
humidity = 75,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"japaneseforest:japanese_dirt_with_grass", 1,
|
"japaneseforest:japanese_dirt_with_grass", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -505,7 +505,7 @@ asuna.biomes = {
|
||||||
heat = 28,
|
heat = 28,
|
||||||
humidity = 68,
|
humidity = 68,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"nightshade:nightshade_dirt_with_grass", 1,
|
"nightshade:nightshade_dirt_with_grass", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -526,7 +526,7 @@ asuna.biomes = {
|
||||||
heat = 35,
|
heat = 35,
|
||||||
humidity = 40,
|
humidity = 40,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_blend = 4,
|
y_blend = 4,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:dirt_with_grass", 1,
|
"default:dirt_with_grass", 1,
|
||||||
|
@ -547,7 +547,7 @@ asuna.biomes = {
|
||||||
heat = 36,
|
heat = 36,
|
||||||
humidity = 15,
|
humidity = 15,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:dirt_with_dry_grass", 1,
|
"default:dirt_with_dry_grass", 1,
|
||||||
"bakedclay:orange", 15,
|
"bakedclay:orange", 15,
|
||||||
|
@ -573,7 +573,7 @@ asuna.biomes = {
|
||||||
heat = 56,
|
heat = 56,
|
||||||
humidity = 93,
|
humidity = 93,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:dirt_with_rainforest_litter", 1,
|
"default:dirt_with_rainforest_litter", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -618,7 +618,7 @@ asuna.biomes = {
|
||||||
heat = 44,
|
heat = 44,
|
||||||
humidity = 75,
|
humidity = 75,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_blend = 6,
|
y_blend = 6,
|
||||||
nodes = {
|
nodes = {
|
||||||
"ethereal:bamboo_dirt", 1,
|
"ethereal:bamboo_dirt", 1,
|
||||||
|
@ -640,7 +640,7 @@ asuna.biomes = {
|
||||||
heat = 89,
|
heat = 89,
|
||||||
humidity = 77,
|
humidity = 77,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:dirt_with_rainforest_litter", 1,
|
"default:dirt_with_rainforest_litter", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -662,7 +662,7 @@ asuna.biomes = {
|
||||||
heat = 90,
|
heat = 90,
|
||||||
humidity = 89,
|
humidity = 89,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"livingjungle:jungleground", 1,
|
"livingjungle:jungleground", 1,
|
||||||
"default:dirt", 6,
|
"default:dirt", 6,
|
||||||
|
@ -683,7 +683,7 @@ asuna.biomes = {
|
||||||
heat = 82,
|
heat = 82,
|
||||||
humidity = 65,
|
humidity = 65,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_blend = 2,
|
y_blend = 2,
|
||||||
nodes = {
|
nodes = {
|
||||||
"ethereal:grove_dirt", 1,
|
"ethereal:grove_dirt", 1,
|
||||||
|
@ -705,7 +705,7 @@ asuna.biomes = {
|
||||||
heat = 59,
|
heat = 59,
|
||||||
humidity = 79,
|
humidity = 79,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_blend = 4,
|
y_blend = 4,
|
||||||
nodes = {
|
nodes = {
|
||||||
"naturalbiomes:alderswamp_litter", 1,
|
"naturalbiomes:alderswamp_litter", 1,
|
||||||
|
@ -731,7 +731,7 @@ asuna.biomes = {
|
||||||
heat = 19,
|
heat = 19,
|
||||||
humidity = 65,
|
humidity = 65,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"badland:badland_grass", 1,
|
"badland:badland_grass", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -752,7 +752,7 @@ asuna.biomes = {
|
||||||
heat = 21,
|
heat = 21,
|
||||||
humidity = 12,
|
humidity = 12,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2100,
|
||||||
nodes = {
|
nodes = {
|
||||||
"ethereal:gray_dirt", 1,
|
"ethereal:gray_dirt", 1,
|
||||||
"default:silver_sand", 5,
|
"default:silver_sand", 5,
|
||||||
|
@ -794,7 +794,7 @@ asuna.biomes = {
|
||||||
heat = 20,
|
heat = 20,
|
||||||
humidity = 41,
|
humidity = 41,
|
||||||
y_min = 49,
|
y_min = 49,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:dirt_with_snow", 1,
|
"default:dirt_with_snow", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -815,7 +815,7 @@ asuna.biomes = {
|
||||||
heat = 2,
|
heat = 2,
|
||||||
humidity = 47,
|
humidity = 47,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"default:snowblock", 1,
|
"default:snowblock", 1,
|
||||||
"default:snowblock", 3,
|
"default:snowblock", 3,
|
||||||
|
@ -838,7 +838,7 @@ asuna.biomes = {
|
||||||
heat = 10,
|
heat = 10,
|
||||||
humidity = 80,
|
humidity = 80,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"frost_land:frost_land_grass", 1,
|
"frost_land:frost_land_grass", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -906,7 +906,7 @@ asuna.biomes = {
|
||||||
heat = 22,
|
heat = 22,
|
||||||
humidity = 9,
|
humidity = 9,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"everness:forsaken_tundra_dirt", 1,
|
"everness:forsaken_tundra_dirt", 1,
|
||||||
"everness:forsaken_tundra_dirt", 1,
|
"everness:forsaken_tundra_dirt", 1,
|
||||||
|
@ -932,7 +932,7 @@ asuna.biomes = {
|
||||||
heat = 8,
|
heat = 8,
|
||||||
humidity = 91,
|
humidity = 91,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"ethereal:crystal_dirt", 1,
|
"ethereal:crystal_dirt", 1,
|
||||||
"default:dirt", 3,
|
"default:dirt", 3,
|
||||||
|
@ -955,7 +955,7 @@ asuna.biomes = {
|
||||||
heat = 1,
|
heat = 1,
|
||||||
humidity = 59,
|
humidity = 59,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"everness:frosted_snowblock", 1,
|
"everness:frosted_snowblock", 1,
|
||||||
"everness:frosted_snowblock", 3,
|
"everness:frosted_snowblock", 3,
|
||||||
|
@ -981,7 +981,7 @@ asuna.biomes = {
|
||||||
heat = 63,
|
heat = 63,
|
||||||
humidity = 81,
|
humidity = 81,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"everness:dirt_with_cursed_grass", 1,
|
"everness:dirt_with_cursed_grass", 1,
|
||||||
"everness:cursed_dirt", 3,
|
"everness:cursed_dirt", 3,
|
||||||
|
@ -1008,7 +1008,7 @@ asuna.biomes = {
|
||||||
heat = 22,
|
heat = 22,
|
||||||
humidity = 98,
|
humidity = 98,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"everness:dirt_with_crystal_grass", 1,
|
"everness:dirt_with_crystal_grass", 1,
|
||||||
"everness:crystal_dirt", 3,
|
"everness:crystal_dirt", 3,
|
||||||
|
@ -1035,7 +1035,7 @@ asuna.biomes = {
|
||||||
heat = 24,
|
heat = 24,
|
||||||
humidity = 74,
|
humidity = 74,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"everness:dirt_with_coral_grass", 1,
|
"everness:dirt_with_coral_grass", 1,
|
||||||
"everness:coral_dirt", 3,
|
"everness:coral_dirt", 3,
|
||||||
|
@ -1062,7 +1062,7 @@ asuna.biomes = {
|
||||||
heat = 98,
|
heat = 98,
|
||||||
humidity = 56,
|
humidity = 56,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
nodes = {
|
nodes = {
|
||||||
"everness:mineral_sand", 1,
|
"everness:mineral_sand", 1,
|
||||||
"everness:mineral_stone", 1,
|
"everness:mineral_stone", 1,
|
||||||
|
|
|
@ -9,7 +9,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.002265,
|
fill_ratio = 0.002265,
|
||||||
biomes = {"dorwinion"},
|
biomes = {"dorwinion"},
|
||||||
y_max = 31000,
|
y_max = 1150,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = mpath.."/schematics/tree_1.mts",
|
schematic = mpath.."/schematics/tree_1.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -24,7 +24,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.001225,
|
fill_ratio = 0.001225,
|
||||||
biomes = {"dorwinion"},
|
biomes = {"dorwinion"},
|
||||||
y_max = 31000,
|
y_max = 1150,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = mpath.."/schematics/tree_2.mts",
|
schematic = mpath.."/schematics/tree_2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -39,7 +39,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.000222,
|
fill_ratio = 0.000222,
|
||||||
biomes = {"dorwinion"},
|
biomes = {"dorwinion"},
|
||||||
y_max = 31000,
|
y_max = 1150,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
schematic = mpath.."/schematics/ruins.mts",
|
schematic = mpath.."/schematics/ruins.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -54,7 +54,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.015265,
|
fill_ratio = 0.015265,
|
||||||
biomes = {"dorwinion"},
|
biomes = {"dorwinion"},
|
||||||
y_max = 31000,
|
y_max = 1150,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
schematic = mpath.."/schematics/bush_1.mts",
|
schematic = mpath.."/schematics/bush_1.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -69,7 +69,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.001265,
|
fill_ratio = 0.001265,
|
||||||
biomes = {"dorwinion"},
|
biomes = {"dorwinion"},
|
||||||
y_max = 31000,
|
y_max = 1150,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = mpath.."/schematics/tree_3.mts",
|
schematic = mpath.."/schematics/tree_3.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -84,7 +84,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.002265,
|
fill_ratio = 0.002265,
|
||||||
biomes = {"dorwinion"},
|
biomes = {"dorwinion"},
|
||||||
y_max = 31000,
|
y_max = 1150,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = mpath.."/schematics/tree_4.mts",
|
schematic = mpath.."/schematics/tree_4.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -115,7 +115,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.002265,
|
fill_ratio = 0.002265,
|
||||||
biomes = {"dorwinion"},
|
biomes = {"dorwinion"},
|
||||||
y_max = 31000,
|
y_max = 1150,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = mpath.."/schematics/tree_5.mts",
|
schematic = mpath.."/schematics/tree_5.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -130,7 +130,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.002265,
|
fill_ratio = 0.002265,
|
||||||
biomes = {"dorwinion"},
|
biomes = {"dorwinion"},
|
||||||
y_max = 31000,
|
y_max = 1150,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = dpath.."/schematics/aspen_tree.mts",
|
schematic = dpath.."/schematics/aspen_tree.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -261,7 +261,7 @@ minetest.register_decoration({
|
||||||
clust_scarcity = 16 * 16 * 16,
|
clust_scarcity = 16 * 16 * 16,
|
||||||
clust_size = 5,
|
clust_size = 5,
|
||||||
y_max = -50,
|
y_max = -50,
|
||||||
y_min = -31000,
|
y_min = -1150,
|
||||||
noise_threshold = 0.0,
|
noise_threshold = 0.0,
|
||||||
noise_params = {
|
noise_params = {
|
||||||
offset = 0.5,
|
offset = 0.5,
|
||||||
|
|
|
@ -25,12 +25,12 @@ setting("number", "ymax", -4096) --top realm limit
|
||||||
setting("number", "tcave", 0.75) --cave threshold
|
setting("number", "tcave", 0.75) --cave threshold
|
||||||
|
|
||||||
--decoration chances
|
--decoration chances
|
||||||
setting("number", "stagcha", 0.003) --chance of stalagmites
|
setting("number", "stagcha", 0.03) --chance of stalagmites (was 0.003)
|
||||||
setting("number", "stalcha", 0.003) --chance of stalactites
|
setting("number", "stalcha", 0.03) --chance of stalactites(was 0.003)
|
||||||
|
|
||||||
setting("number", "h_lag", 8) --max height for stalagmites
|
setting("number", "h_lag", 8) --max height for stalagmites
|
||||||
setting("number", "h_lac", 8) --...stalactites
|
setting("number", "h_lac", 8) --...stalactites
|
||||||
setting("number", "crystal", 0.0002) --chance of glow crystal formations
|
setting("number", "crystal", 0.02) --chance of glow crystal formations (was 0.0002)
|
||||||
setting("number", "h_cry", 8) --max height of glow crystals
|
setting("number", "h_cry", 8) --max height of glow crystals
|
||||||
setting("number", "h_clac", 8) --max height of glow crystal stalactites
|
setting("number", "h_clac", 8) --max height of glow crystal stalactites
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
local ALTITUDE = 1500 -- average altitude of islands
|
local ALTITUDE = 600 -- average altitude of islands
|
||||||
local ALTITUDE_AMPLITUDE = 1200 -- rough island altitude variance (plus or minus)
|
local ALTITUDE_AMPLITUDE = 400 -- rough island altitude variance (plus or minus)
|
||||||
local GENERATE_ORES = true -- set to true for island core stone to contain patches of dirt and sand etc.
|
local GENERATE_ORES = true -- set to true for island core stone to contain patches of dirt and sand etc.
|
||||||
local LOWLAND_BIOMES = false or -- If true then determine an island's biome using the biome at altitude "LOWLAND_BIOME_ALTITUDE"
|
local LOWLAND_BIOMES = false or -- If true then determine an island's biome using the biome at altitude "LOWLAND_BIOME_ALTITUDE"
|
||||||
minetest.get_modpath("ethereal") ~= nil -- Ethereal has an alpine biome above altitude 40, so default to lowland biomes
|
minetest.get_modpath("ethereal") ~= nil -- Ethereal has an alpine biome above altitude 40, so default to lowland biomes
|
||||||
|
|
|
@ -11,10 +11,10 @@ cloudlands_use_lowland_biomes (Use lowland biomes) bool false
|
||||||
# In Minetest game, ores like iron and diamond will be generated if the
|
# In Minetest game, ores like iron and diamond will be generated if the
|
||||||
# altitude of islands is set above 1200 and "Generate ores inside islands"
|
# altitude of islands is set above 1200 and "Generate ores inside islands"
|
||||||
# is Enabled.
|
# is Enabled.
|
||||||
cloudlands_altitude (Altitude of islands) int 1500
|
cloudlands_altitude (Altitude of islands) int 600
|
||||||
|
|
||||||
# The rough variance of altitude in islands (plus or minus this value)
|
# The rough variance of altitude in islands (plus or minus this value)
|
||||||
cloudlands_altitude_amplitude (Altitude variance) int 1200
|
cloudlands_altitude_amplitude (Altitude variance) int 400
|
||||||
|
|
||||||
# Generates patches of sand and dirt inside island stone cores.
|
# Generates patches of sand and dirt inside island stone cores.
|
||||||
cloudlands_generate_ores (Generate ores inside islands - patches of dirt, sand etc.) bool true
|
cloudlands_generate_ores (Generate ores inside islands - patches of dirt, sand etc.) bool true
|
||||||
|
|
|
@ -55,7 +55,7 @@ register_biome(1, {
|
||||||
name = "grassland_under",
|
name = "grassland_under",
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"},
|
node_cave_liquid = {"default:water_source", "default:lava_source"},
|
||||||
heat_point = old and 45 or 50, humidity_point = old and 65 or 35,
|
heat_point = old and 45 or 50, humidity_point = old and 65 or 35,
|
||||||
y_min = -2048, y_max = -256})
|
y_min = -10000, y_max = -256})
|
||||||
|
|
||||||
-- desert
|
-- desert
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ register_biome(ethereal.desert, {
|
||||||
register_biome(ethereal.desert, {
|
register_biome(ethereal.desert, {
|
||||||
name = "desert_under",
|
name = "desert_under",
|
||||||
heat_point = old and 35 or 92, humidity_point = old and 20 or 16,
|
heat_point = old and 35 or 92, humidity_point = old and 20 or 16,
|
||||||
y_min = -2048, y_max = -256,
|
y_min = -10000, y_max = -256,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- bamboo
|
-- bamboo
|
||||||
|
@ -172,7 +172,7 @@ register_biome(ethereal.snowy, {
|
||||||
register_biome(ethereal.snowy, {
|
register_biome(ethereal.snowy, {
|
||||||
name = "coniferous_forest_under",
|
name = "coniferous_forest_under",
|
||||||
heat_point = old and 10 or 45, humidity_point = old and 40 or 70,
|
heat_point = old and 10 or 45, humidity_point = old and 40 or 70,
|
||||||
y_min = -2048, y_max = -256,
|
y_min = -10000, y_max = -256,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- taiga
|
-- taiga
|
||||||
|
@ -197,22 +197,22 @@ register_biome(ethereal.alpine, {
|
||||||
register_biome(ethereal.alpine, {
|
register_biome(ethereal.alpine, {
|
||||||
name = "taiga_under",
|
name = "taiga_under",
|
||||||
heat_point = old and 10 or 25, humidity_point = old and 40 or 70,
|
heat_point = old and 10 or 25, humidity_point = old and 40 or 70,
|
||||||
y_min = -2048, y_max = -256,
|
y_min = -10000, y_max = -256,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- frost
|
-- frost
|
||||||
|
|
||||||
register_biome(ethereal.frost, {
|
register_biome(ethereal.frost, {
|
||||||
name = "frost_floatland",
|
name = "frost_floatland",
|
||||||
heat_point = old and 10 or 5, humidity_point = old and 40 or 60,
|
heat_point = 47, humidity_point = 66, -- was heat_point = old and 10 or 5, humidity_point = old and 40 or 60,
|
||||||
y_min = 1025, y_max = 1750,
|
y_min = 3101, y_max = 31000,
|
||||||
node_top = "ethereal:crystal_dirt", depth_top = 1,
|
node_top = "ethereal:crystal_dirt", depth_top = 1,
|
||||||
node_filler = "default:dirt", depth_filler = 2})
|
node_filler = "default:dirt", depth_filler = 2})
|
||||||
|
|
||||||
register_biome(ethereal.frost, {
|
register_biome(ethereal.frost, {
|
||||||
name = "frost",
|
name = "frost",
|
||||||
heat_point = old and 10 or 5, humidity_point = old and 40 or 60,
|
heat_point = 47, humidity_point = 66,-- was heat_point = old and 10 or 5, humidity_point = old and 40 or 60,
|
||||||
y_min = 2, y_max = 71,
|
y_min = 3101, y_max = 31000,
|
||||||
node_top = "ethereal:crystal_dirt", depth_top = 1,
|
node_top = "ethereal:crystal_dirt", depth_top = 1,
|
||||||
node_filler = "default:dirt", depth_filler = 3})
|
node_filler = "default:dirt", depth_filler = 3})
|
||||||
|
|
||||||
|
@ -235,14 +235,14 @@ register_biome(ethereal.grassy, {
|
||||||
register_biome(ethereal.grassy, {
|
register_biome(ethereal.grassy, {
|
||||||
name = "deciduous_forest_ocean",
|
name = "deciduous_forest_ocean",
|
||||||
heat_point = old and 13 or 60, humidity_point = old and 40 or 68,
|
heat_point = old and 13 or 60, humidity_point = old and 40 or 68,
|
||||||
y_min = -2048, y_max = 3,
|
y_min = -10000, y_max = 3,
|
||||||
node_top = "default:sand", depth_top = 2,
|
node_top = "default:sand", depth_top = 2,
|
||||||
node_filler = "default:gravel", depth_filler = 1})
|
node_filler = "default:gravel", depth_filler = 1})
|
||||||
|
|
||||||
register_biome(ethereal.grassy, {
|
register_biome(ethereal.grassy, {
|
||||||
name = "deciduous_forest_under",
|
name = "deciduous_forest_under",
|
||||||
heat_point = old and 13 or 60, humidity_point = old and 40 or 68,
|
heat_point = old and 13 or 60, humidity_point = old and 40 or 68,
|
||||||
y_min = -2048, y_max = -256,
|
y_min = -10000, y_max = -256,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- caves
|
-- caves
|
||||||
|
@ -280,7 +280,7 @@ register_biome(ethereal.grayness, {
|
||||||
register_biome(ethereal.grayness, {
|
register_biome(ethereal.grayness, {
|
||||||
name = "grayness_under",
|
name = "grayness_under",
|
||||||
heat_point = 15, humidity_point = old and 25 or 30,
|
heat_point = 15, humidity_point = old and 25 or 30,
|
||||||
y_min = -2048, y_max = -23,
|
y_min = -10000, y_max = -23,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- grassy two
|
-- grassy two
|
||||||
|
@ -350,7 +350,7 @@ register_biome(ethereal.junglee, {
|
||||||
register_biome(ethereal.junglee, {
|
register_biome(ethereal.junglee, {
|
||||||
name = "rainforest_under",
|
name = "rainforest_under",
|
||||||
heat_point = old and 30 or 86, humidity_point = old and 60 or 65,
|
heat_point = old and 30 or 86, humidity_point = old and 60 or 65,
|
||||||
y_min = -2048, y_max = -256,
|
y_min = -10000, y_max = -256,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- swamp
|
-- swamp
|
||||||
|
@ -444,7 +444,7 @@ register_biome(ethereal.sandstone, {
|
||||||
register_biome(ethereal.sandstone, {
|
register_biome(ethereal.sandstone, {
|
||||||
name = "sandstone_desert_under",
|
name = "sandstone_desert_under",
|
||||||
heat_point = old and 50 or 60, humidity_point = old and 20 or 0,
|
heat_point = old and 50 or 60, humidity_point = old and 20 or 0,
|
||||||
y_min = -2048, y_max = -256,
|
y_min = -10000, y_max = -256,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- plains
|
-- plains
|
||||||
|
@ -485,7 +485,7 @@ register_biome(ethereal.savanna, {
|
||||||
register_biome(ethereal.savanna, {
|
register_biome(ethereal.savanna, {
|
||||||
name = "savanna_under",
|
name = "savanna_under",
|
||||||
heat_point = old and 55 or 89, humidity_point = old and 25 or 42,
|
heat_point = old and 55 or 89, humidity_point = old and 25 or 42,
|
||||||
y_min = -2048, y_max = -256,
|
y_min = -10000, y_max = -256,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- fiery
|
-- fiery
|
||||||
|
@ -514,7 +514,7 @@ register_biome(ethereal.fiery, {
|
||||||
register_biome(ethereal.fiery, {
|
register_biome(ethereal.fiery, {
|
||||||
name = "fiery_under",
|
name = "fiery_under",
|
||||||
heat_point = old and 75 or 80, humidity_point = 10,
|
heat_point = old and 75 or 80, humidity_point = 10,
|
||||||
y_min = -2048, y_max = -256,
|
y_min = -10000, y_max = -256,
|
||||||
node_cave_liquid = {"default:lava_source"}})
|
node_cave_liquid = {"default:lava_source"}})
|
||||||
|
|
||||||
-- glacier
|
-- glacier
|
||||||
|
@ -545,7 +545,7 @@ register_biome(ethereal.glacier, {
|
||||||
register_biome(ethereal.glacier, {
|
register_biome(ethereal.glacier, {
|
||||||
name = "glacier_under",
|
name = "glacier_under",
|
||||||
heat_point = 0, humidity_point = old and 50 or 73,
|
heat_point = 0, humidity_point = old and 50 or 73,
|
||||||
y_max = -256, y_min = -2048,
|
y_max = -256, y_min = -10000,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"},
|
node_cave_liquid = {"default:water_source", "default:lava_source"},
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
|
@ -585,7 +585,7 @@ register_biome(ethereal.tundra, {
|
||||||
|
|
||||||
register_biome(ethereal.tundra, {
|
register_biome(ethereal.tundra, {
|
||||||
name = "tundra_under",
|
name = "tundra_under",
|
||||||
heat_point = 0, humidity_point = 40, y_max = -256, y_min = -2048,
|
heat_point = 0, humidity_point = 40, y_max = -256, y_min = -10000,
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
node_cave_liquid = {"default:water_source", "default:lava_source"}})
|
||||||
|
|
||||||
-- only register when using new mapgen
|
-- only register when using new mapgen
|
||||||
|
@ -612,7 +612,7 @@ if not old then
|
||||||
register_biome(ethereal.cold_desert, {
|
register_biome(ethereal.cold_desert, {
|
||||||
name = "cold_desert_under",
|
name = "cold_desert_under",
|
||||||
node_cave_liquid = {"default:water_source", "default:lava_source"},
|
node_cave_liquid = {"default:water_source", "default:lava_source"},
|
||||||
heat_point = 20, humidity_point = 85, y_min = -2048, y_max = -256})
|
heat_point = 20, humidity_point = 85, y_min = -10000, y_max = -256})
|
||||||
|
|
||||||
-- snowy grassland (inbetween frost and taiga/jumble)
|
-- snowy grassland (inbetween frost and taiga/jumble)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
[Biomes]
|
[Biomes]
|
||||||
|
|
||||||
[*Coral Forest]
|
[*Coral Forest]
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
everness_coral_forest (Coral Forest) bool true
|
everness_coral_forest (Coral Forest) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_coral_forest_y_max (y max) int 31000
|
everness_coral_forest_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_coral_forest_y_min (y min) int 6
|
everness_coral_forest_y_min (y min) int 6
|
||||||
|
@ -67,7 +68,7 @@ everness_coral_forest_under_y_min (y min) int -2048
|
||||||
everness_frosted_icesheet (Frosted Icesheet) bool true
|
everness_frosted_icesheet (Frosted Icesheet) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_frosted_icesheet_y_max (y max) int 31000
|
everness_frosted_icesheet_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_frosted_icesheet_y_min (y min) int -8
|
everness_frosted_icesheet_y_min (y min) int -8
|
||||||
|
@ -103,7 +104,7 @@ everness_frosted_icesheet_under_y_min (y min) int -2048
|
||||||
everness_cursed_lands (Cursed Lands) bool true
|
everness_cursed_lands (Cursed Lands) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_cursed_lands_y_max (y max) int 31000
|
everness_cursed_lands_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_cursed_lands_y_min (y min) int 6
|
everness_cursed_lands_y_min (y min) int 6
|
||||||
|
@ -175,7 +176,7 @@ everness_cursed_lands_under_y_min (y min) int -2048
|
||||||
everness_crystal_forest (Crystal Forest) bool true
|
everness_crystal_forest (Crystal Forest) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_crystal_forest_y_max (y max) int 31000
|
everness_crystal_forest_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_crystal_forest_y_min (y min) int 6
|
everness_crystal_forest_y_min (y min) int 6
|
||||||
|
@ -247,7 +248,7 @@ everness_crystal_forest_under_y_min (y min) int -2048
|
||||||
everness_bamboo_forest (Bamboo Forest) bool true
|
everness_bamboo_forest (Bamboo Forest) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_bamboo_forest_y_max (y max) int 31000
|
everness_bamboo_forest_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_bamboo_forest_y_min (y min) int 1
|
everness_bamboo_forest_y_min (y min) int 1
|
||||||
|
@ -271,7 +272,7 @@ everness_bamboo_forest_under_y_min (y min) int -2048
|
||||||
everness_forsaken_desert (Forsaken Desert) bool true
|
everness_forsaken_desert (Forsaken Desert) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_forsaken_desert_y_max (y max) int 31000
|
everness_forsaken_desert_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_forsaken_desert_y_min (y min) int 4
|
everness_forsaken_desert_y_min (y min) int 4
|
||||||
|
@ -307,7 +308,7 @@ everness_forsaken_desert_under_y_min (y min) int -2048
|
||||||
everness_baobab_savanna (Baobab Savanna) bool true
|
everness_baobab_savanna (Baobab Savanna) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_baobab_savanna_y_max (y max) int 31000
|
everness_baobab_savanna_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_baobab_savanna_y_min (y min) int 1
|
everness_baobab_savanna_y_min (y min) int 1
|
||||||
|
@ -319,7 +320,7 @@ everness_baobab_savanna_y_min (y min) int 1
|
||||||
everness_forsaken_tundra (Forsaken Tundra) bool true
|
everness_forsaken_tundra (Forsaken Tundra) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_forsaken_tundra_y_max (y max) int 31000
|
everness_forsaken_tundra_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_forsaken_tundra_y_min (y min) int 2
|
everness_forsaken_tundra_y_min (y min) int 2
|
||||||
|
@ -367,7 +368,7 @@ everness_forsaken_tundra_under_y_min (y min) int -2048
|
||||||
everness_mineral_waters (Mineral Waters) bool true
|
everness_mineral_waters (Mineral Waters) bool true
|
||||||
|
|
||||||
# Upper limit for biome.
|
# Upper limit for biome.
|
||||||
everness_mineral_waters_y_max (y max) int 31000
|
everness_mineral_waters_y_max (y max) int 2048
|
||||||
|
|
||||||
# Lower limit for biome.
|
# Lower limit for biome.
|
||||||
everness_mineral_waters_y_min (y min) int 1
|
everness_mineral_waters_y_min (y min) int 1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2022 Rotfuchs von Vulpes
|
Copyright (c) 2023 ROllerozxa
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
2
mods/get_biome_data/README.md
Normal 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).
|
27
mods/get_biome_data/init.lua
Normal 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
|
||||||
|
})
|
5
mods/get_biome_data/mod.conf
Normal 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
|
BIN
mods/get_biome_data/textures/get_biome_data_wand.png
Normal file
After Width: | Height: | Size: 124 B |
|
@ -16,7 +16,7 @@ minetest.register_biome({
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1000,
|
y_min = 1000,
|
||||||
heat_point = 47,
|
heat_point = 47,
|
||||||
humidity_point = 66,
|
humidity_point = 66,
|
||||||
|
@ -203,7 +203,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00235,
|
fill_ratio = 0.00235,
|
||||||
biomes = {"livingfloatlands:coldgiantforest"},
|
biomes = {"livingfloatlands:coldgiantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_tree.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_tree.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -218,7 +218,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00147,
|
fill_ratio = 0.00147,
|
||||||
biomes = {"livingfloatlands:coldgiantforest"},
|
biomes = {"livingfloatlands:coldgiantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_treemush.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_treemush.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -233,7 +233,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00141,
|
fill_ratio = 0.00141,
|
||||||
biomes = {"livingfloatlands:coldgiantforest"},
|
biomes = {"livingfloatlands:coldgiantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_tree2.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_tree2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -248,7 +248,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00090,
|
fill_ratio = 0.00090,
|
||||||
biomes = {"livingfloatlands:coldgiantforest"},
|
biomes = {"livingfloatlands:coldgiantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_tree2mush.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_tree2mush.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -263,7 +263,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00085,
|
fill_ratio = 0.00085,
|
||||||
biomes = {"livingfloatlands:coldgiantforest"},
|
biomes = {"livingfloatlands:coldgiantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_treegiant.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleoredwood_treegiant.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -278,7 +278,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00028,
|
fill_ratio = 0.00028,
|
||||||
biomes = {"livingfloatlands:coldgiantforest"},
|
biomes = {"livingfloatlands:coldgiantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_giantforest_rottenwood2.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_giantforest_rottenwood2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -293,7 +293,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00028,
|
fill_ratio = 0.00028,
|
||||||
biomes = {"livingfloatlands:coldgiantforest"},
|
biomes = {"livingfloatlands:coldgiantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_giantforest_rottenwood3.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_giantforest_rottenwood3.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
|
|
@ -27,7 +27,7 @@ minetest.register_biome({
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1000,
|
y_min = 1000,
|
||||||
heat_point = 38,
|
heat_point = 38,
|
||||||
humidity_point = 27,
|
humidity_point = 27,
|
||||||
|
@ -100,7 +100,7 @@ minetest.register_node("livingfloatlands:coldsteppe_bulbous_chervil_root", {
|
||||||
octaves = 1,
|
octaves = 1,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:coldsteppe_bulbouschervil_plant",
|
decoration = "livingfloatlands:coldsteppe_bulbouschervil_plant",
|
||||||
spawn_by = "livingfloatlands:coldsteppe_bulbouschervil_block"
|
spawn_by = "livingfloatlands:coldsteppe_bulbouschervil_block"
|
||||||
|
@ -139,7 +139,7 @@ minetest.register_node("livingfloatlands:coldsteppe_bulbouschervil_plant", {
|
||||||
octaves = 6,
|
octaves = 6,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:coldsteppe_grass1",
|
decoration = "livingfloatlands:coldsteppe_grass1",
|
||||||
spawn_by = "livingfloatlands:coldsteppe_litter"
|
spawn_by = "livingfloatlands:coldsteppe_litter"
|
||||||
|
@ -178,7 +178,7 @@ minetest.register_node("livingfloatlands:coldsteppe_grass1", {
|
||||||
octaves = 8,
|
octaves = 8,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:coldsteppe_grass2",
|
decoration = "livingfloatlands:coldsteppe_grass2",
|
||||||
spawn_by = "livingfloatlands:coldsteppe_litter"
|
spawn_by = "livingfloatlands:coldsteppe_litter"
|
||||||
|
@ -217,7 +217,7 @@ minetest.register_node("livingfloatlands:coldsteppe_grass2", {
|
||||||
octaves = 7,
|
octaves = 7,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:coldsteppe_grass3",
|
decoration = "livingfloatlands:coldsteppe_grass3",
|
||||||
spawn_by = "livingfloatlands:coldsteppe_litter"
|
spawn_by = "livingfloatlands:coldsteppe_litter"
|
||||||
|
@ -256,7 +256,7 @@ minetest.register_node("livingfloatlands:coldsteppe_grass3", {
|
||||||
octaves = 7,
|
octaves = 7,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:coldsteppe_grass4",
|
decoration = "livingfloatlands:coldsteppe_grass4",
|
||||||
spawn_by = "livingfloatlands:coldsteppe_litter"
|
spawn_by = "livingfloatlands:coldsteppe_litter"
|
||||||
|
@ -295,7 +295,7 @@ minetest.register_node("livingfloatlands:coldsteppe_grass4", {
|
||||||
octaves = 7,
|
octaves = 7,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
decoration = "livingfloatlands:coldsteppe_shrub",
|
decoration = "livingfloatlands:coldsteppe_shrub",
|
||||||
spawn_by = "livingfloatlands:coldsteppe_litter"
|
spawn_by = "livingfloatlands:coldsteppe_litter"
|
||||||
|
@ -502,7 +502,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00013,
|
fill_ratio = 0.00013,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -517,7 +517,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00013,
|
fill_ratio = 0.00013,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine11.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine11.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -749,7 +749,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00017,
|
fill_ratio = 0.00017,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine2.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -764,7 +764,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00015,
|
fill_ratio = 0.00015,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine22.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine22.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -987,7 +987,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00057,
|
fill_ratio = 0.00057,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine3.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine3.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -1002,7 +1002,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00137,
|
fill_ratio = 0.00137,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine33.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/livingfloatlands_coldsteppe_pine33.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -1063,7 +1063,7 @@ minetest.register_node("livingfloatlands:coldsteppe_rock", {
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00007,
|
fill_ratio = 0.00007,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_rockformation.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_rockformation.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -1079,7 +1079,7 @@ minetest.register_node("livingfloatlands:coldsteppe_rock", {
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00007,
|
fill_ratio = 0.00007,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_rockformation11.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_rockformation11.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -1103,7 +1103,7 @@ minetest.register_node("livingfloatlands:coldsteppe_rock2", {
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00007,
|
fill_ratio = 0.00007,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_rockformation2.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_rockformation2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -1119,7 +1119,7 @@ minetest.register_node("livingfloatlands:coldsteppe_rock2", {
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00007,
|
fill_ratio = 0.00007,
|
||||||
biomes = {"livingfloatlands:coldsteppe"},
|
biomes = {"livingfloatlands:coldsteppe"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_rockformation.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_rockformation.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
|
|
@ -27,7 +27,7 @@ minetest.register_biome({
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1000,
|
y_min = 1000,
|
||||||
heat_point = 52,
|
heat_point = 52,
|
||||||
humidity_point = 71,
|
humidity_point = 71,
|
||||||
|
@ -124,7 +124,7 @@ minetest.register_node("livingfloatlands:giantforest_fern", {
|
||||||
persist = 0.6
|
persist = 0.6
|
||||||
},
|
},
|
||||||
biomes = {"livingfloatlands:giantforest", "livingfloatlands:coldgiantforest", "livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:giantforest", "livingfloatlands:coldgiantforest", "livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
decoration = "livingfloatlands:giantforest_fern",
|
decoration = "livingfloatlands:giantforest_fern",
|
||||||
param2 = 4,
|
param2 = 4,
|
||||||
|
@ -143,7 +143,7 @@ minetest.register_node("livingfloatlands:giantforest_fern", {
|
||||||
octaves = 5,
|
octaves = 5,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:giantforest_grass",
|
decoration = "livingfloatlands:giantforest_grass",
|
||||||
spawn_by = "livingfloatlands:giantforest_litter"
|
spawn_by = "livingfloatlands:giantforest_litter"
|
||||||
|
@ -182,7 +182,7 @@ minetest.register_node("livingfloatlands:giantforest_grass", {
|
||||||
octaves = 7,
|
octaves = 7,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:giantforest_grass2",
|
decoration = "livingfloatlands:giantforest_grass2",
|
||||||
spawn_by = "livingfloatlands:giantforest_litter"
|
spawn_by = "livingfloatlands:giantforest_litter"
|
||||||
|
@ -221,7 +221,7 @@ minetest.register_node("livingfloatlands:giantforest_grass2", {
|
||||||
octaves = 4,
|
octaves = 4,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:giantforest_grass3",
|
decoration = "livingfloatlands:giantforest_grass3",
|
||||||
spawn_by = "livingfloatlands:giantforest_litter"
|
spawn_by = "livingfloatlands:giantforest_litter"
|
||||||
|
@ -492,7 +492,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00265,
|
fill_ratio = 0.00265,
|
||||||
biomes = {"livingfloatlands:giantforest"},
|
biomes = {"livingfloatlands:giantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleooak_tree.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleooak_tree.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -507,7 +507,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00265,
|
fill_ratio = 0.00265,
|
||||||
biomes = {"livingfloatlands:giantforest"},
|
biomes = {"livingfloatlands:giantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleooak_tree2.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleooak_tree2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -522,7 +522,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00265,
|
fill_ratio = 0.00265,
|
||||||
biomes = {"livingfloatlands:giantforest"},
|
biomes = {"livingfloatlands:giantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleooak_tree3.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/giantforest_paleooak_tree3.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -537,7 +537,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00025,
|
fill_ratio = 0.00025,
|
||||||
biomes = {"livingfloatlands:giantforest"},
|
biomes = {"livingfloatlands:giantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_giantforest_rottenwood.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_giantforest_rottenwood.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -554,7 +554,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00025,
|
fill_ratio = 0.00025,
|
||||||
biomes = {"livingfloatlands:giantforest"},
|
biomes = {"livingfloatlands:giantforest"},
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_giantforest_rottenwood4.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_giantforest_rottenwood4.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
|
|
@ -27,8 +27,8 @@ minetest.register_biome({
|
||||||
node_dungeon = "default:desert_stonebrick",
|
node_dungeon = "default:desert_stonebrick",
|
||||||
node_dungeon_alt = "default:desert_sandstone_brick",
|
node_dungeon_alt = "default:desert_sandstone_brick",
|
||||||
node_dungeon_stair = "stairs:desert_sandstone_stair",
|
node_dungeon_stair = "stairs:desert_sandstone_stair",
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1000,
|
y_min = 2048,
|
||||||
heat_point = 96,
|
heat_point = 96,
|
||||||
humidity_point = 15,
|
humidity_point = 15,
|
||||||
})
|
})
|
||||||
|
@ -69,7 +69,7 @@ minetest.register_node("livingfloatlands:paleodesert_fern", {
|
||||||
persist = 0.6
|
persist = 0.6
|
||||||
},
|
},
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 2,
|
y_min = 2,
|
||||||
decoration = "livingfloatlands:paleodesert_fern",
|
decoration = "livingfloatlands:paleodesert_fern",
|
||||||
param2 = 4,
|
param2 = 4,
|
||||||
|
@ -133,7 +133,7 @@ minetest.register_node("livingfloatlands:puzzlegrass_top", {
|
||||||
persist = 0.6
|
persist = 0.6
|
||||||
},
|
},
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_puzzlegrass_patch.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_puzzlegrass_patch.mts",
|
||||||
})
|
})
|
||||||
|
@ -151,7 +151,7 @@ minetest.register_node("livingfloatlands:puzzlegrass_top", {
|
||||||
persist = 0.6
|
persist = 0.6
|
||||||
},
|
},
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_puzzlegrass_patch2.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_puzzlegrass_patch2.mts",
|
||||||
})
|
})
|
||||||
|
@ -170,7 +170,7 @@ minetest.register_decoration({
|
||||||
persist = 0.6
|
persist = 0.6
|
||||||
},
|
},
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_puzzlegrass_patch3.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_puzzlegrass_patch3.mts",
|
||||||
})
|
})
|
||||||
|
@ -189,7 +189,7 @@ minetest.register_decoration({
|
||||||
persist = 0.6
|
persist = 0.6
|
||||||
},
|
},
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_puzzlegrass_patch4.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_puzzlegrass_patch4.mts",
|
||||||
})
|
})
|
||||||
|
@ -376,7 +376,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00013,
|
fill_ratio = 0.00013,
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleodesert_joshua_tree.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleodesert_joshua_tree.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -391,7 +391,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00013,
|
fill_ratio = 0.00013,
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleodesert_joshua_tree2.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleodesert_joshua_tree2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -406,7 +406,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00013,
|
fill_ratio = 0.00013,
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleodesert_joshua_tree3.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleodesert_joshua_tree3.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -594,7 +594,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00021,
|
fill_ratio = 0.00021,
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 3,
|
y_min = 3,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleodesert_paleopine.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleodesert_paleopine.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -609,7 +609,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00007,
|
fill_ratio = 0.00007,
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_paleodesert_rockformation.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_paleodesert_rockformation.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -624,7 +624,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00007,
|
fill_ratio = 0.00007,
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_paleodesert_rockformation2.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_paleodesert_rockformation2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -639,7 +639,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00007,
|
fill_ratio = 0.00007,
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_paleodesert_rockformation3.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_paleodesert_rockformation3.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -654,7 +654,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00007,
|
fill_ratio = 0.00007,
|
||||||
biomes = {"livingfloatlands:paleodesert"},
|
biomes = {"livingfloatlands:paleodesert"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_paleodesert_rockformation4.mts",
|
schematic = minetest.get_modpath("livingfloatlands") .. "/schematics/livingfloatlands_paleodesert_rockformation4.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
|
|
@ -27,7 +27,7 @@ minetest.register_biome({
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 3100,
|
||||||
y_min = 1000,
|
y_min = 1000,
|
||||||
heat_point = 95,
|
heat_point = 95,
|
||||||
humidity_point = 63,
|
humidity_point = 63,
|
||||||
|
@ -66,7 +66,7 @@ minetest.register_node("livingfloatlands:paleojungle_ferngrass", {
|
||||||
octaves = 9,
|
octaves = 9,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:paleojungle_ferngrass",
|
decoration = "livingfloatlands:paleojungle_ferngrass",
|
||||||
spawn_by = "livingfloatlands:paleojungle_litter"
|
spawn_by = "livingfloatlands:paleojungle_litter"
|
||||||
|
@ -105,7 +105,7 @@ minetest.register_node("livingfloatlands:paleojungle_smallpalm", {
|
||||||
octaves = 6,
|
octaves = 6,
|
||||||
persist = 1,
|
persist = 1,
|
||||||
},
|
},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
decoration = "livingfloatlands:paleojungle_smallpalm",
|
decoration = "livingfloatlands:paleojungle_smallpalm",
|
||||||
spawn_by = "livingfloatlands:paleojungle_litter"
|
spawn_by = "livingfloatlands:paleojungle_litter"
|
||||||
|
@ -324,7 +324,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00045,
|
fill_ratio = 0.00045,
|
||||||
biomes = {"livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_clubmoss_tree.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_clubmoss_tree.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -339,7 +339,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00045,
|
fill_ratio = 0.00045,
|
||||||
biomes = {"livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_clubmoss_tree2.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_clubmoss_tree2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -354,7 +354,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00045,
|
fill_ratio = 0.00045,
|
||||||
biomes = {"livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_clubmoss_tree3.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_clubmoss_tree3.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -542,7 +542,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00045,
|
fill_ratio = 0.00045,
|
||||||
biomes = {"livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_conifere_tree.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_conifere_tree.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -557,7 +557,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00045,
|
fill_ratio = 0.00045,
|
||||||
biomes = {"livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_conifere_tree2.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_conifere_tree2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -746,7 +746,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00245,
|
fill_ratio = 0.00245,
|
||||||
biomes = {"livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_paleopalm_tree.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_paleopalm_tree.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -761,7 +761,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00245,
|
fill_ratio = 0.00245,
|
||||||
biomes = {"livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_paleopalm_tree2.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_paleopalm_tree2.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
@ -776,7 +776,7 @@ minetest.register_decoration({
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.00245,
|
fill_ratio = 0.00245,
|
||||||
biomes = {"livingfloatlands:paleojungle"},
|
biomes = {"livingfloatlands:paleojungle"},
|
||||||
y_max = 31000,
|
y_max = 3000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_paleopalm_tree3.mts",
|
schematic = minetest.get_modpath("livingfloatlands").."/schematics/paleojungle_paleopalm_tree3.mts",
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
|
|
|
@ -843,7 +843,7 @@ function default.register_ores()
|
||||||
clust_scarcity = 15 * 15 * 15,
|
clust_scarcity = 15 * 15 * 15,
|
||||||
clust_num_ores = 4,
|
clust_num_ores = 4,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
y_max = -2048,
|
y_max = -10000,
|
||||||
y_min = -31000,
|
y_min = -31000,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -867,7 +867,7 @@ function default.register_ores()
|
||||||
clust_scarcity = 36 * 36 * 36,
|
clust_scarcity = 36 * 36 * 36,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
y_max = -2048,
|
y_max = -10000,
|
||||||
y_min = -4095,
|
y_min = -4095,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -941,7 +941,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 0,
|
heat_point = 0,
|
||||||
humidity_point = 73,
|
humidity_point = 73,
|
||||||
})
|
})
|
||||||
|
@ -956,7 +956,7 @@ function default.register_biomes()
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 47,
|
y_min = 47,
|
||||||
heat_point = 0,
|
heat_point = 0,
|
||||||
humidity_point = 40,
|
humidity_point = 40,
|
||||||
|
@ -1024,7 +1024,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 0,
|
heat_point = 0,
|
||||||
humidity_point = 40,
|
humidity_point = 40,
|
||||||
})
|
})
|
||||||
|
@ -1043,7 +1043,7 @@ function default.register_biomes()
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
heat_point = 25,
|
heat_point = 25,
|
||||||
humidity_point = 70,
|
humidity_point = 70,
|
||||||
|
@ -1076,7 +1076,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 25,
|
heat_point = 25,
|
||||||
humidity_point = 70,
|
humidity_point = 70,
|
||||||
})
|
})
|
||||||
|
@ -1096,9 +1096,9 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
y_min = 4,
|
y_min = 3101,
|
||||||
heat_point = 20,
|
heat_point = 38, --was 20
|
||||||
humidity_point = 35,
|
humidity_point = 27, -- was 35
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_biome({
|
minetest.register_biome({
|
||||||
|
@ -1128,7 +1128,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 20,
|
heat_point = 20,
|
||||||
humidity_point = 35,
|
humidity_point = 35,
|
||||||
})
|
})
|
||||||
|
@ -1146,7 +1146,7 @@ function default.register_biomes()
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 6,
|
y_min = 6,
|
||||||
heat_point = 50,
|
heat_point = 50,
|
||||||
humidity_point = 35,
|
humidity_point = 35,
|
||||||
|
@ -1195,7 +1195,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 50,
|
heat_point = 50,
|
||||||
humidity_point = 35,
|
humidity_point = 35,
|
||||||
})
|
})
|
||||||
|
@ -1213,7 +1213,7 @@ function default.register_biomes()
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 6,
|
y_min = 6,
|
||||||
heat_point = 45,
|
heat_point = 45,
|
||||||
humidity_point = 70,
|
humidity_point = 70,
|
||||||
|
@ -1262,7 +1262,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 45,
|
heat_point = 45,
|
||||||
humidity_point = 70,
|
humidity_point = 70,
|
||||||
})
|
})
|
||||||
|
@ -1280,7 +1280,7 @@ function default.register_biomes()
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
heat_point = 60,
|
heat_point = 60,
|
||||||
humidity_point = 68,
|
humidity_point = 68,
|
||||||
|
@ -1329,7 +1329,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 60,
|
heat_point = 60,
|
||||||
humidity_point = 68,
|
humidity_point = 68,
|
||||||
})
|
})
|
||||||
|
@ -1347,7 +1347,7 @@ function default.register_biomes()
|
||||||
depth_riverbed = 2,
|
depth_riverbed = 2,
|
||||||
node_dungeon = "default:desert_stone",
|
node_dungeon = "default:desert_stone",
|
||||||
node_dungeon_stair = "stairs:stair_desert_stone",
|
node_dungeon_stair = "stairs:stair_desert_stone",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
heat_point = 92,
|
heat_point = 92,
|
||||||
humidity_point = 16,
|
humidity_point = 16,
|
||||||
|
@ -1379,7 +1379,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 92,
|
heat_point = 92,
|
||||||
humidity_point = 16,
|
humidity_point = 16,
|
||||||
})
|
})
|
||||||
|
@ -1397,7 +1397,7 @@ function default.register_biomes()
|
||||||
depth_riverbed = 2,
|
depth_riverbed = 2,
|
||||||
node_dungeon = "default:sandstonebrick",
|
node_dungeon = "default:sandstonebrick",
|
||||||
node_dungeon_stair = "stairs:stair_sandstone_block",
|
node_dungeon_stair = "stairs:stair_sandstone_block",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
heat_point = 60,
|
heat_point = 60,
|
||||||
humidity_point = 0,
|
humidity_point = 0,
|
||||||
|
@ -1428,7 +1428,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 60,
|
heat_point = 60,
|
||||||
humidity_point = 0,
|
humidity_point = 0,
|
||||||
})
|
})
|
||||||
|
@ -1446,7 +1446,7 @@ function default.register_biomes()
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 4,
|
y_min = 4,
|
||||||
heat_point = 40,
|
heat_point = 40,
|
||||||
humidity_point = 0,
|
humidity_point = 0,
|
||||||
|
@ -1478,7 +1478,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 40,
|
heat_point = 40,
|
||||||
humidity_point = 0,
|
humidity_point = 0,
|
||||||
})
|
})
|
||||||
|
@ -1496,7 +1496,7 @@ function default.register_biomes()
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
heat_point = 89,
|
heat_point = 89,
|
||||||
humidity_point = 42,
|
humidity_point = 42,
|
||||||
|
@ -1545,7 +1545,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 89,
|
heat_point = 89,
|
||||||
humidity_point = 42,
|
humidity_point = 42,
|
||||||
})
|
})
|
||||||
|
@ -1563,7 +1563,7 @@ function default.register_biomes()
|
||||||
node_dungeon = "default:cobble",
|
node_dungeon = "default:cobble",
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = 31000,
|
y_max = 2048,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
heat_point = 86,
|
heat_point = 86,
|
||||||
humidity_point = 65,
|
humidity_point = 65,
|
||||||
|
@ -1612,7 +1612,7 @@ function default.register_biomes()
|
||||||
node_dungeon_alt = "default:mossycobble",
|
node_dungeon_alt = "default:mossycobble",
|
||||||
node_dungeon_stair = "stairs:stair_cobble",
|
node_dungeon_stair = "stairs:stair_cobble",
|
||||||
y_max = -256,
|
y_max = -256,
|
||||||
y_min = -31000,
|
y_min = -10000,
|
||||||
heat_point = 86,
|
heat_point = 86,
|
||||||
humidity_point = 65,
|
humidity_point = 65,
|
||||||
})
|
})
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
local underground_low = -31000
|
local underground_low = -31000
|
||||||
local underground_high = -50
|
local underground_high = -50
|
||||||
local space_low = 5000
|
local space_low = 10000
|
||||||
local space_high = 5999
|
local space_high = 25000
|
||||||
local redsky_low = 6000
|
local redsky_low = 25000
|
||||||
local redsky_high = 6999
|
local redsky_high = 31000
|
||||||
local nether_low = -32000
|
local nether_low = -32000
|
||||||
local nether_high = -31000
|
local nether_high = -31000
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
riesenpilz.enable_mapgen = false
|
riesenpilz.enable_mapgen = false
|
||||||
|
|
||||||
--Generate giant mushroom biomes everywhere
|
--Generate giant mushroom biomes everywhere
|
||||||
riesenpilz.always_generate = false
|
riesenpilz.always_generate = true
|
||||||
|
|
||||||
--Enables smooth transition of biomes.
|
--Enables smooth transition of biomes.
|
||||||
riesenpilz.smooth = true
|
riesenpilz.smooth = true
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
# What is this? UwU
|
|
||||||
[](https://content.minetest.net/packages/Rotfuchs-von-Vulpes/what_is_this_uwu/)
|
|
||||||
[](https://content.minetest.net/packages/Rotfuchs-von-Vulpes/what_is_this_uwu/)
|
|
||||||
|
|
||||||
A mod that says at the top of your screen what you're looking at.
|
|
||||||
|
|
||||||
## Screenshots:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Chatcommands
|
|
||||||
|
|
||||||
To unshow thw pop-up, typed this in console:
|
|
||||||
|
|
||||||
```
|
|
||||||
/wituwu
|
|
||||||
```
|
|
||||||
|
|
||||||
And typed again to show.
|
|
||||||
|
|
||||||
Enjoy! 🦊
|
|
|
@ -1,416 +0,0 @@
|
||||||
local what_is_this_uwu = {
|
|
||||||
players = {},
|
|
||||||
players_set = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
local function split (str, sep)
|
|
||||||
if sep == nil then
|
|
||||||
sep = "%s"
|
|
||||||
end
|
|
||||||
|
|
||||||
local t = {}
|
|
||||||
for char in string.gmatch(str, "([^"..sep.."]+)") do
|
|
||||||
table.insert(t, char)
|
|
||||||
end
|
|
||||||
|
|
||||||
return t
|
|
||||||
end
|
|
||||||
|
|
||||||
local char_width = {
|
|
||||||
A = 12,
|
|
||||||
B = 10,
|
|
||||||
C = 13,
|
|
||||||
D = 12,
|
|
||||||
E = 11,
|
|
||||||
F = 9,
|
|
||||||
G = 13,
|
|
||||||
H = 12,
|
|
||||||
I = 3,
|
|
||||||
J = 9,
|
|
||||||
K = 11,
|
|
||||||
L = 9,
|
|
||||||
M = 13,
|
|
||||||
N = 11,
|
|
||||||
O = 13,
|
|
||||||
P = 10,
|
|
||||||
Q = 13,
|
|
||||||
R = 12,
|
|
||||||
S = 10,
|
|
||||||
T = 11,
|
|
||||||
U = 11,
|
|
||||||
V = 10,
|
|
||||||
W = 15,
|
|
||||||
X = 11,
|
|
||||||
Y = 11,
|
|
||||||
Z = 10,
|
|
||||||
a = 10,
|
|
||||||
b = 8,
|
|
||||||
c = 8,
|
|
||||||
d = 9,
|
|
||||||
e = 9,
|
|
||||||
f = 5,
|
|
||||||
g = 9,
|
|
||||||
h = 9,
|
|
||||||
i = 2,
|
|
||||||
j = 6,
|
|
||||||
k = 8,
|
|
||||||
l = 4,
|
|
||||||
m = 13,
|
|
||||||
n = 8,
|
|
||||||
o = 10,
|
|
||||||
p = 8,
|
|
||||||
q = 10,
|
|
||||||
r = 4,
|
|
||||||
s = 8,
|
|
||||||
t = 5,
|
|
||||||
u = 8,
|
|
||||||
v = 8,
|
|
||||||
w = 12,
|
|
||||||
x = 8,
|
|
||||||
y = 8,
|
|
||||||
z = 8,
|
|
||||||
}
|
|
||||||
char_width[' '] = 5
|
|
||||||
char_width['_'] = 9
|
|
||||||
|
|
||||||
local function is_strange(str)
|
|
||||||
for char in str:gmatch'.' do
|
|
||||||
if char == '' then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
local function string_to_pixels(str)
|
|
||||||
local size = 0
|
|
||||||
|
|
||||||
str:gsub('.', function(char)
|
|
||||||
local pixels = char_width[char]
|
|
||||||
|
|
||||||
if pixels then
|
|
||||||
size = size + pixels
|
|
||||||
else
|
|
||||||
size = size + 14
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
return size
|
|
||||||
end
|
|
||||||
|
|
||||||
local function inventorycube(img1, img2, img3)
|
|
||||||
if not img1 then return '' end
|
|
||||||
|
|
||||||
img2 = img2 or img1
|
|
||||||
img3 = img3 or img1
|
|
||||||
|
|
||||||
img1 = img1..'^[resize:16x16'
|
|
||||||
img2 = img2..'^[resize:16x16'
|
|
||||||
img3 = img3..'^[resize:16x16'
|
|
||||||
|
|
||||||
return "[inventorycube"..
|
|
||||||
"{"..img1:gsub("%^","&")..
|
|
||||||
"{"..img2:gsub("%^","&")..
|
|
||||||
"{"..img3:gsub("%^","&")
|
|
||||||
end
|
|
||||||
|
|
||||||
local function serialize(val, name, skipnewlines, depth)
|
|
||||||
skipnewlines = skipnewlines or false
|
|
||||||
depth = depth or 0
|
|
||||||
|
|
||||||
local tmp = string.rep(' ', depth)
|
|
||||||
|
|
||||||
if name then tmp = tmp .. name .. ' = ' end
|
|
||||||
|
|
||||||
if type(val) == 'table' then
|
|
||||||
tmp = tmp .. '{' .. (not skipnewlines and '\n' or '')
|
|
||||||
|
|
||||||
for k, v in pairs(val) do
|
|
||||||
tmp = tmp .. serialize(v, k, skipnewlines, depth + 1) .. ',' .. (not skipnewlines and '\n' or '')
|
|
||||||
end
|
|
||||||
|
|
||||||
tmp = tmp .. string.rep(' ', depth) .. '}'
|
|
||||||
elseif type(val) == 'number' then
|
|
||||||
tmp = tmp .. tostring(val)
|
|
||||||
elseif type(val) == 'string' then
|
|
||||||
tmp = tmp .. string.format('%q', val)
|
|
||||||
elseif type(val) == 'boolean' then
|
|
||||||
tmp = tmp .. (val and 'true' or 'false')
|
|
||||||
else
|
|
||||||
tmp = tmp .. '\'[inserializeable datatype:' .. type(val) .. ']\''
|
|
||||||
end
|
|
||||||
|
|
||||||
return tmp
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.split_item_name(item_name)
|
|
||||||
local splited = split(item_name, ':')
|
|
||||||
|
|
||||||
return splited[1], splited[2]
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.destrange(str)
|
|
||||||
local is_strange = is_strange(str);
|
|
||||||
local ignore = true;
|
|
||||||
|
|
||||||
local temp_str
|
|
||||||
if is_strange then
|
|
||||||
local temp_str = ''
|
|
||||||
local reading = true
|
|
||||||
local is_special = false
|
|
||||||
local between_parenthesis = false
|
|
||||||
|
|
||||||
for char in str:gmatch'.' do
|
|
||||||
if char == '' then
|
|
||||||
reading = false
|
|
||||||
elseif reading and not between_parenthesis then
|
|
||||||
temp_str = temp_str..char
|
|
||||||
else
|
|
||||||
reading = true
|
|
||||||
end
|
|
||||||
|
|
||||||
if between_parenthesis then
|
|
||||||
if char == ')' then
|
|
||||||
between_parenthesis = false
|
|
||||||
end
|
|
||||||
else
|
|
||||||
if char == '(' then
|
|
||||||
between_parenthesis = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return temp_str
|
|
||||||
else
|
|
||||||
return str
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.register_player(player, name)
|
|
||||||
if not what_is_this_uwu.players_set[name] then
|
|
||||||
table.insert(what_is_this_uwu.players, player)
|
|
||||||
what_is_this_uwu.players_set[name] = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.remove_player(name)
|
|
||||||
if what_is_this_uwu.players_set[name] then
|
|
||||||
what_is_this_uwu.players_set[name] = false
|
|
||||||
|
|
||||||
for i, player in ipairs(what_is_this_uwu.players) do
|
|
||||||
if player == name then
|
|
||||||
table.remove(what_is_this_uwu.players, i)
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.get_pointed_thing(player)
|
|
||||||
if not what_is_this_uwu.players_set[player:get_player_name()] then return end
|
|
||||||
|
|
||||||
-- get player position
|
|
||||||
local player_pos = player:get_pos()
|
|
||||||
local eye_height = player:get_properties().eye_height
|
|
||||||
local eye_offset = player:get_eye_offset()
|
|
||||||
player_pos.y = player_pos.y + eye_height
|
|
||||||
player_pos = vector.add(player_pos, eye_offset)
|
|
||||||
|
|
||||||
-- set liquids vision
|
|
||||||
local see_liquid =
|
|
||||||
minetest.registered_nodes[minetest.get_node(player_pos).name].drawtype ~= 'liquid'
|
|
||||||
|
|
||||||
-- get wielded item range 5 is engine default
|
|
||||||
-- order tool/item range >> hand_range >> fallback 5
|
|
||||||
local tool_range = player:get_wielded_item():get_definition().range or nil
|
|
||||||
local hand_range
|
|
||||||
for key, val in pairs(minetest.registered_items) do
|
|
||||||
if key == "" then
|
|
||||||
hand_range = val.range or nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
local wield_range = tool_range or hand_range or 5
|
|
||||||
|
|
||||||
-- determine ray end position
|
|
||||||
local look_dir = player:get_look_dir()
|
|
||||||
look_dir = vector.multiply(look_dir, wield_range)
|
|
||||||
local end_pos = vector.add(look_dir, player_pos)
|
|
||||||
|
|
||||||
-- get pointed_thing
|
|
||||||
local ray = minetest.raycast(player_pos, end_pos, false, see_liquid)
|
|
||||||
|
|
||||||
return ray:next()
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.get_node_tiles(node_name)
|
|
||||||
local node = minetest.registered_nodes[node_name]
|
|
||||||
|
|
||||||
if not node then
|
|
||||||
return 'ignore', 'node', false
|
|
||||||
end
|
|
||||||
|
|
||||||
if node.groups['not_in_creative_inventory'] then
|
|
||||||
drop = node.drop
|
|
||||||
if drop and type(drop) == 'string' then
|
|
||||||
node_name = drop
|
|
||||||
node = minetest.registered_nodes[drop]
|
|
||||||
if not node then
|
|
||||||
node = minetest.registered_craftitems[drop]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if not node or not node.tiles and not node.inventory_image then
|
|
||||||
return 'ignore', 'node', false
|
|
||||||
end
|
|
||||||
|
|
||||||
local tiles = node.tiles
|
|
||||||
|
|
||||||
local mod_name, item_name = what_is_this_uwu.split_item_name(node_name)
|
|
||||||
|
|
||||||
if node.inventory_image:sub(1, 14) == '[inventorycube' then
|
|
||||||
return node.inventory_image..'^[resize:146x146', 'node', minetest.registered_nodes[node_name]
|
|
||||||
elseif node.inventory_image ~= '' then
|
|
||||||
return node.inventory_image..'^[resize:16x16', 'craft_item', minetest.registered_nodes[node_name]
|
|
||||||
else
|
|
||||||
if not tiles[1] then
|
|
||||||
return '', 'node', minetest.registered_nodes[node_name]
|
|
||||||
end
|
|
||||||
|
|
||||||
tiles[3] = tiles[3] or tiles[1]
|
|
||||||
tiles[6] = tiles[6] or tiles[3]
|
|
||||||
|
|
||||||
if type(tiles[1]) == 'table' then
|
|
||||||
tiles[1] = tiles[1].name
|
|
||||||
end
|
|
||||||
if type(tiles[3]) == 'table' then
|
|
||||||
tiles[3] = tiles[3].name
|
|
||||||
end
|
|
||||||
if type(tiles[6]) == 'table' then
|
|
||||||
tiles[6] = tiles[6].name
|
|
||||||
end
|
|
||||||
|
|
||||||
return inventorycube(tiles[1], tiles[6], tiles[3]), 'node', minetest.registered_nodes[node_name]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.show_background(player, meta)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:background_left'),
|
|
||||||
'text',
|
|
||||||
'left_side.png'
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:background_middle'),
|
|
||||||
'text',
|
|
||||||
'middle.png'
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:background_right'),
|
|
||||||
'text',
|
|
||||||
'right_side.png'
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.show(player, meta, form_view, node_description, node_name, item_type, mod_name)
|
|
||||||
if meta:get_string('wit:pointed_thing') == 'ignore' then
|
|
||||||
what_is_this_uwu.show_background(player, meta)
|
|
||||||
end
|
|
||||||
|
|
||||||
meta:set_string('wit:pointed_thing', node_name)
|
|
||||||
|
|
||||||
local size
|
|
||||||
if #node_description >= #mod_name then
|
|
||||||
size = string_to_pixels(node_description)
|
|
||||||
else
|
|
||||||
size = string_to_pixels(mod_name)
|
|
||||||
end
|
|
||||||
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:background_middle'),
|
|
||||||
'scale',
|
|
||||||
{x = size / 16 + 2, y = 2}
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:background_right'),
|
|
||||||
'offset',
|
|
||||||
{x = size, y = 35}
|
|
||||||
)
|
|
||||||
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:image'),
|
|
||||||
'text',
|
|
||||||
form_view
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:name'),
|
|
||||||
'text',
|
|
||||||
node_description
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:mod'),
|
|
||||||
'text',
|
|
||||||
mod_name
|
|
||||||
)
|
|
||||||
|
|
||||||
if meta:get_string('wit:item_type_in_pointer') ~= item_type then
|
|
||||||
local scale = {}
|
|
||||||
|
|
||||||
meta:set_string('wit:item_type_in_pointer', item_type)
|
|
||||||
|
|
||||||
if item_type == 'node' then
|
|
||||||
scale.x = 0.3
|
|
||||||
scale.y = 0.3
|
|
||||||
else
|
|
||||||
scale.x = 2.5
|
|
||||||
scale.y = 2.5
|
|
||||||
end
|
|
||||||
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:image'),
|
|
||||||
'scale',
|
|
||||||
scale
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function what_is_this_uwu.unshow(player, meta)
|
|
||||||
if not meta then return end
|
|
||||||
|
|
||||||
meta:set_string('wit:pointed_thing', 'ignore')
|
|
||||||
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:background_left'),
|
|
||||||
'text',
|
|
||||||
''
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:background_middle'),
|
|
||||||
'text',
|
|
||||||
''
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:background_right'),
|
|
||||||
'text',
|
|
||||||
''
|
|
||||||
)
|
|
||||||
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:image'),
|
|
||||||
'text',
|
|
||||||
''
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:name'),
|
|
||||||
'text',
|
|
||||||
''
|
|
||||||
)
|
|
||||||
player:hud_change(
|
|
||||||
meta:get_string('wit:mod'),
|
|
||||||
'text',
|
|
||||||
''
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
return what_is_this_uwu
|
|
|
@ -1,112 +0,0 @@
|
||||||
local what_is_this_uwu = dofile(minetest.get_modpath('what_is_this_uwu')..'/help.lua')
|
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
|
||||||
local meta = player:get_meta()
|
|
||||||
|
|
||||||
local background_id_left = player:hud_add({
|
|
||||||
hud_elem_type = "image",
|
|
||||||
position = {x = 0.5, y = 0},
|
|
||||||
scale = {x = 2, y = 2},
|
|
||||||
text = '',
|
|
||||||
offset = {x = -50, y = 35},
|
|
||||||
})
|
|
||||||
local background_id_middle = player:hud_add({
|
|
||||||
hud_elem_type = "image",
|
|
||||||
position = {x = 0.5, y = 0},
|
|
||||||
scale = {x = 2, y = 2},
|
|
||||||
text = '',
|
|
||||||
alignment = {x = 1},
|
|
||||||
offset = {x = -37.5, y = 35},
|
|
||||||
})
|
|
||||||
local background_id_right = player:hud_add({
|
|
||||||
hud_elem_type = "image",
|
|
||||||
position = {x = 0.5, y = 0},
|
|
||||||
scale = {x = 2, y = 2},
|
|
||||||
text = '',
|
|
||||||
offset = {x = 0, y = 35},
|
|
||||||
})
|
|
||||||
|
|
||||||
local image_id = player:hud_add({
|
|
||||||
hud_elem_type = "image",
|
|
||||||
position = {x = 0.5, y = 0},
|
|
||||||
scale = {x = 0.3, y = 0.3},
|
|
||||||
offset = {x = -35, y = 35},
|
|
||||||
})
|
|
||||||
local name_id = player:hud_add({
|
|
||||||
hud_elem_type = "text",
|
|
||||||
position = {x = 0.5, y = 0},
|
|
||||||
scale = {x = 0.3, y = 0.3},
|
|
||||||
number = 0xffffff,
|
|
||||||
alignment = {x = 1},
|
|
||||||
offset = {x = 0, y = 29},
|
|
||||||
})
|
|
||||||
local mod_id = player:hud_add({
|
|
||||||
hud_elem_type = "text",
|
|
||||||
position = {x = 0.5, y = 0},
|
|
||||||
scale = {x = 0.3, y = 0.3},
|
|
||||||
number = 0xff3c0a,
|
|
||||||
alignment = {x = 1},
|
|
||||||
offset = {x = 0, y = 46},
|
|
||||||
})
|
|
||||||
|
|
||||||
meta:set_string('wit:background_left', background_id_left)
|
|
||||||
meta:set_string('wit:background_middle', background_id_middle)
|
|
||||||
meta:set_string('wit:background_right', background_id_right)
|
|
||||||
meta:set_string('wit:image', image_id)
|
|
||||||
meta:set_string('wit:name', name_id)
|
|
||||||
meta:set_string('wit:mod', mod_id)
|
|
||||||
meta:set_string('wit:pointed_thing', 'ignore')
|
|
||||||
meta:set_string('wit:item_type_in_pointer', 'node')
|
|
||||||
|
|
||||||
what_is_this_uwu.register_player(player, player:get_player_name())
|
|
||||||
end)
|
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
|
||||||
what_is_this_uwu.remove_player(player, player:get_player_name())
|
|
||||||
end)
|
|
||||||
|
|
||||||
minetest.register_globalstep(function()
|
|
||||||
for _, player in ipairs(what_is_this_uwu.players) do
|
|
||||||
local meta = player:get_meta()
|
|
||||||
local pointed_thing = what_is_this_uwu.get_pointed_thing(player)
|
|
||||||
|
|
||||||
if pointed_thing then
|
|
||||||
local node = minetest.get_node(pointed_thing.under)
|
|
||||||
local node_name = node.name
|
|
||||||
|
|
||||||
if meta:get_string('wit:pointed_thing') ~= node_name then
|
|
||||||
local form_view, item_type, node_definition = what_is_this_uwu.get_node_tiles(node_name, meta)
|
|
||||||
|
|
||||||
if not node_definition then
|
|
||||||
what_is_this_uwu.unshow(player, meta)
|
|
||||||
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local node_description = what_is_this_uwu.destrange(node_definition.description)
|
|
||||||
local mod_name, _ = what_is_this_uwu.split_item_name(node_name)
|
|
||||||
|
|
||||||
what_is_this_uwu.show(player, meta, form_view, node_description, node_name, item_type, mod_name)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
what_is_this_uwu.unshow(player, meta)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
minetest.register_chatcommand('wituwu', {
|
|
||||||
params = '',
|
|
||||||
description = 'Show and unshow the wituwu pop-up',
|
|
||||||
func = function(name)
|
|
||||||
local player = minetest.get_player_by_name(name)
|
|
||||||
|
|
||||||
if what_is_this_uwu.players_set[name] then
|
|
||||||
what_is_this_uwu.remove_player(name)
|
|
||||||
what_is_this_uwu.unshow(player, player:get_meta())
|
|
||||||
else
|
|
||||||
what_is_this_uwu.register_player(player, name)
|
|
||||||
end
|
|
||||||
|
|
||||||
return true, 'Option flipped'
|
|
||||||
end
|
|
||||||
})
|
|
|
@ -1,6 +0,0 @@
|
||||||
name = what_is_this_uwu
|
|
||||||
description = A mod that says at the top of your screen what you're looking at.
|
|
||||||
depends =
|
|
||||||
title = What is This? UwU
|
|
||||||
author = Rotfuchs-von-Vulpes
|
|
||||||
release = 13647
|
|
Before Width: | Height: | Size: 406 KiB |
Before Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 454 KiB |
Before Width: | Height: | Size: 518 KiB |
|
@ -21,7 +21,7 @@ asuna.content.nutrition.exhaustion_level (Exhaustion Level) float 160
|
||||||
# from suffering health loss due to hunger.
|
# from suffering health loss due to hunger.
|
||||||
#
|
#
|
||||||
# Requires: asuna.content.nutrition.enabled
|
# Requires: asuna.content.nutrition.enabled
|
||||||
asuna.content.nutrition.starvation (Starvation) bool false
|
asuna.content.nutrition.starvation (Starvation) bool true
|
||||||
|
|
||||||
[Content Pack: Wayfarer]
|
[Content Pack: Wayfarer]
|
||||||
|
|
||||||
|
|