Mods in den Spieleordner reingeschoben. So richtig tief.

This commit is contained in:
N-Nachtigal 2025-05-08 22:41:25 +02:00
parent b4b6c08f4f
commit f7bc25a670
1674 changed files with 56056 additions and 530 deletions

12
mods/tt_food/LICENSE.txt Normal file
View file

@ -0,0 +1,12 @@
MIT License
Copyright (c) 2024 adikalon
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.
Code by adikalon

34
mods/tt_food/README.md Normal file
View file

@ -0,0 +1,34 @@
# Extended Tooltips: Food [`tt_food`]
This is an addition to the [tt](https://codeberg.org/Wuzzy/minetest_tt) mod for minetest game.
![Preview](./screenshot.png)
## Description
Displays saturation points for food. Supports food items without problems, with the eatable group. For many other mods, this group is added intentionally.
## Supported mods:
* Farming Redo
* Mobs Animal
* Ethereal
* Dwarf Fortress
* Animal World
* Aqua Farming
* Extra Biomes
* Goblins
* Hardcore Farming
* Living Caves
* Living Caves Mobs
* Living Desert
* Living Floatlands
* Marinara
* Marinara Mobs
* Native Villages
* Natural Biomes
* People
* Variety
* XNether
* Ocean
* Some others...

25
mods/tt_food/init.lua Normal file
View file

@ -0,0 +1,25 @@
local path = minetest.get_modpath(minetest.get_current_modname())
dofile(path .. "/redistribution.lua")
local S = minetest.get_translator(minetest.get_current_modname())
tt.register_snippet(function(itemstring)
local def = minetest.registered_items[itemstring]
local desc
local eatable = def.groups.eatable
if eatable and def.on_use then
local prefix = ""
if eatable > 0 then
prefix = "+"
end
desc = S("Food item")
local msg = prefix .. S("@1 food points", eatable)
desc = desc .. "\n" .. msg
end
return desc
end)

View file

@ -0,0 +1,4 @@
# textdomain: tt_food
Food item=
@1 food points=

View file

@ -0,0 +1,4 @@
# textdomain: tt_food
Food item=Lebensmittel
@1 food points=@1 Nahrungspunkte

View file

@ -0,0 +1,4 @@
# textdomain: tt_food
Food item=alimentaire
@1 food points=@1 de saturation

View file

@ -0,0 +1,4 @@
# textdomain: tt_food
Food item=Еда
@1 food points=@1 к сытости

7
mods/tt_food/mod.conf Normal file
View file

@ -0,0 +1,7 @@
name = tt_food
title = Extended Tooltips: Food
description = Adds food information
depends = tt
optional_depends = animalworld, aqua_farming, goblins, hardcore_farming, livingcaves, livingcavesmobs, livingdesert, livingfloatlands, marinara, marinaramobs, nativevillages, naturalbiomes, people, variety, xnether, xocean
author = adikalon
release = 27545

View file

@ -0,0 +1,188 @@
local function add_eatable(name, hp)
local item = minetest.registered_items[name]
if item and item.groups.eatable == nil then
local groups = table.copy(item.groups) or {}
groups.eatable = hp
minetest.override_item(name, {groups = groups})
end
end
-- animalworld
add_eatable("animalworld:anteggs_raw", 2)
add_eatable("animalworld:anteggs_cooked", 6)
add_eatable("animalworld:whalemeat_raw", 4)
add_eatable("animalworld:whalemeat_cooked", 8)
add_eatable("animalworld:pork_raw", 4)
add_eatable("animalworld:pork_cooked", 8)
add_eatable("animalworld:rawfish", 3)
add_eatable("animalworld:cookedfish", 5)
add_eatable("animalworld:roastroach", 2)
add_eatable("animalworld:rabbit_raw", 3)
add_eatable("animalworld:rabbit_cooked", 5)
add_eatable("animalworld:locust_roasted", 8)
add_eatable("animalworld:chicken_egg_fried", 2)
add_eatable("animalworld:chicken_raw", 2)
add_eatable("animalworld:chicken_cooked", 6)
add_eatable("animalworld:bugice", 2)
add_eatable("animalworld:rat_cooked", 3)
add_eatable("animalworld:escargots", 2)
add_eatable("animalworld:raw_athropod", 3)
add_eatable("animalworld:cooked_athropod", 5)
add_eatable("animalworld:rawmollusk", 3)
add_eatable("animalworld:cookedmollusk", 5)
add_eatable("animalworld:termitequeen", 2)
add_eatable("animalworld:bucket_milk", 8)
add_eatable("animalworld:glass_milk", 2)
add_eatable("animalworld:butter", 1)
add_eatable("animalworld:cheese", 4)
-- aqua_farming
add_eatable("aqua_farming:alga_item", 1)
add_eatable("aqua_farming:sea_anemone_item", 5)
add_eatable("aqua_farming:sea_cucumber_item", 4)
add_eatable("aqua_farming:sea_strawberry_cake_piece", 3)
add_eatable("aqua_farming:sea_strawberry_item", 3)
-- goblins
add_eatable("goblins:mushroom_goblin", 2)
add_eatable("goblins:mushroom_goblin1", 2)
add_eatable("goblins:mushroom_goblin2", 2)
add_eatable("goblins:mushroom_goblin3", 2)
add_eatable("goblins:mushroom_goblin4", 2)
-- hardcore_farming
add_eatable("hardcore_farming:locust_roasted", 8)
add_eatable("hardcore_farming:rat_cooked", 3)
-- livingcaves
add_eatable("livingcaves:healingsoup", 8)
add_eatable("livingcaves:mushroom_edible", 5)
-- livingcavesmobs
add_eatable("livingcavesmobs:cocoon", 2)
add_eatable("livingcavesmobs:mothegg", 2)
-- livingdesert
add_eatable("livingdesert:date_palm_fruits", 6)
add_eatable("livingdesert:figcactus_fruit", 6)
-- livingfloatlands
add_eatable("livingfloatlands:ornithischiaraw", 3)
add_eatable("livingfloatlands:ornithischiacooked", 5)
add_eatable("livingfloatlands:theropodraw", 3)
add_eatable("livingfloatlands:theropodcooked", 5)
add_eatable("livingfloatlands:coldsteppe_bulbous_chervil_root", 2)
add_eatable("livingfloatlands:roasted_pine_nuts", 5)
add_eatable("livingfloatlands:coldsteppe_pine_pinecone", 2)
add_eatable("livingfloatlands:coldsteppe_pine2_pinecone", 2)
add_eatable("livingfloatlands:coldsteppe_pine3_pinecone", 2)
add_eatable("livingfloatlands:largemammalraw", 3)
add_eatable("livingfloatlands:largemammalcooked", 5)
add_eatable("livingfloatlands:giantforest_oaknut_cracked", 5)
add_eatable("livingfloatlands:giantforest_oaknut", 2)
add_eatable("livingfloatlands:sauropodraw", 3)
add_eatable("livingfloatlands:sauropodcooked", 5)
add_eatable("livingfloatlands:paleojungle_clubmoss_fruit", 5)
-- marinara
add_eatable("marinara:mussels_cooked", 8)
add_eatable("marinara:raw_oisters", 6)
-- marinaramobs
add_eatable("marinaramobs:octopus_raw", 3)
add_eatable("marinaramobs:octopus_cooked", 5)
add_eatable("marinaramobs:raw_exotic_fish", 3)
add_eatable("marinaramobs:cooked_exotic_fish", 5)
add_eatable("marinaramobs:seaurchin_cooked", 8)
-- nativevillages
add_eatable("nativevillages:catfish_raw", 4)
add_eatable("nativevillages:catfish_cooked", 8)
add_eatable("nativevillages:bucket_milk", 8)
add_eatable("nativevillages:glass_milk", 2)
add_eatable("nativevillages:butter", 1)
add_eatable("nativevillages:cheese", 4)
add_eatable("nativevillages:driedhumanmeat", 2)
add_eatable("nativevillages:chicken_egg_fried", 2)
add_eatable("nativevillages:chicken_raw", 2)
add_eatable("nativevillages:chicken_cooked", 6)
-- naturalbiomes
add_eatable("naturalbiomes:cowberry", 2)
add_eatable("naturalbiomes:alpine_mushroom", 1)
add_eatable("naturalbiomes:blackberry", 2)
add_eatable("naturalbiomes:wildrose", 2)
add_eatable("naturalbiomes:hazelnut", 2)
add_eatable("naturalbiomes:hazelnut_cracked", 5)
add_eatable("naturalbiomes:olives", 6)
add_eatable("naturalbiomes:banana_bunch", 6)
add_eatable("naturalbiomes:banana", 2)
add_eatable("naturalbiomes:coconut_slice", 2)
add_eatable("naturalbiomes:coconut", 6)
-- people
add_eatable("people:dogfood", 2)
add_eatable("people:dogfood_cooked", 6)
add_eatable("people:mutton_raw", 2)
add_eatable("people:mutton_cooked", 6)
add_eatable("people:bandage", 2)
-- variety
add_eatable("variety:bamboo_cooked", 2)
-- xnether
add_eatable("xnether:fruit", -3)
-- xocean
add_eatable("xocean:kelp", 1)
add_eatable("xocean:sushi", 6)
add_eatable("xocean:fish_edible", 3)

BIN
mods/tt_food/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB