Compare commits

18 Commits

Author SHA1 Message Date
9b97006923 Add Russian translation 2018-08-03 12:00:55 +01:00
936565a0cd Add screenshot.png 2018-05-15 20:14:10 +01:00
ccbc21a00c Add compatibility to farming redo coffe_beans 2018-01-09 12:24:15 +00:00
57d0b42892 Fix indentation in previous commit 2017-07-24 13:56:45 +01:00
ba36be5fe0 Fix buckets being lost when making butter 2017-07-24 13:55:20 +01:00
93de17fdc3 Fix intllib boilerplate code 2017-04-03 00:50:59 +01:00
54e7fa3b81 Merge pull request #29 from sys4-fr/master
Multiple improvements and add new supported mods
2016-11-01 23:23:40 +00:00
5527349522 Fix bushes_classic support (for sugar) 2016-07-30 23:22:06 +02:00
13f02494d0 Fix a warning triggered by a variable which was not declared as local. 2016-07-30 22:19:40 +02:00
dbb7b9bb65 Update mtfoods support
Remove unneeded bushes_classic support
Remove unneeded strawberries and rhubarb support (Moved to food_sweet)
2016-07-30 12:44:58 +02:00
b392b415c8 Add ethereal? in depends.txt 2016-07-29 16:52:08 +02:00
93ea79653f Update support of farming redo and mobs redo
Add support of ethereal
2016-07-29 16:49:46 +02:00
9eed044387 Merge pull request #27 from kaeza/master
Add spanish locale file.
2015-12-02 13:08:24 +00:00
dbe3dab2f2 Add spanish locale file. 2015-12-02 09:29:27 -03:00
32546ed20e Merge pull request #26 from mahmutelmas06/corrections
Corrections
2015-11-11 15:52:38 +00:00
2771480a74 corrections 2015-11-11 13:39:48 +02:00
29a9ed37f4 Create tr.txt 2015-11-11 00:09:36 +02:00
1724db4fba Stop crash on damage disabled. 2015-10-27 13:47:31 +00:00
12 changed files with 169 additions and 19 deletions

View File

@ -98,7 +98,7 @@ function minetest.register_node(name, def)
end
function food.strip_name(name)
res = name:gsub('%"', '')
local res = name:gsub('%"', '')
if res:sub(1, 1) == ":" then
res = res:sub(2, #res)
--table.concat{res:sub(1, 1-1), "", res:sub(1+1)}
@ -174,9 +174,9 @@ function food.item_eat(amt)
elseif minetest.get_modpath("hud") and global_exists("hud") and hud.item_eat then
return hud.item_eat(amt)
elseif minetest.get_modpath("hbhunger") then
if global_exists("hbhunger") then
if global_exists("hbhunger") and hbhunger.item_eat then
return hbhunger.item_eat(amt)
elseif global_exists("hunger") then
elseif global_exists("hunger") and hunger.item_eat then
-- For backwards compatibility
-- It used to be called `hunger` rather than `hbhunger`
return hunger.item_eat(amt)

BIN
food/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

View File

@ -1,8 +1,10 @@
food
animalmaterials?
bushes?
bushes_classic?
default?
docfarming?
ethereal?
farming?
farming_plus?
intllib?
@ -10,7 +12,9 @@ jkanimals?
jkfarming?
my_mobs?
mobs?
mobs_animal?
mobfcooking?
mtfoods?
plantlib?
veggies?
vessels?

View File

@ -8,9 +8,8 @@
-- Boilerplate to support localized strings if intllib mod is installed.
local S = 0
if rawget(_G, "intllib") then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function ( s ) return s end
end
@ -261,6 +260,23 @@ food.module("butter", function()
inventory_image = "food_butter.png",
groups = {food_butter=1}
})
food.craft({
output = "food:butter",
recipe = {{"group:food_milkbucket","group:food_milkbucket"}},
replacements = {
{"group:food_milkbucket","bucket:bucket_empty"},
{"group:food_milkbucket","bucket:bucket_empty"}
},
})
food.craft({
output = "food:butter",
recipe = {
{"group:food_milk","group:food_milkbucket"}
},
replacements = {
{"group:food_milkbucket","bucket:bucket_empty"},
},
})
food.craft({
output = "food:butter",
recipe = {

View File

@ -13,9 +13,8 @@ dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
-- Boilerplate to support localized strings if intllib mod is installed.
local S = 0
if rawget(_G, "intllib") then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function ( s ) return s end
end
@ -95,9 +94,13 @@ food.module("pasta_bake", function()
end)
-- Register Soups
local chicken = "meat"
if minetest.get_modpath("mobs") and mobs.mod == "redo" then
chicken = "chicken"
end
local soups = {
{"tomato", "tomato"},
{"chicken", "meat"}
{"chicken", chicken}
}
for i=1, #soups do
local flav = soups[i]

40
food_basic/locale/es.txt Normal file
View File

@ -0,0 +1,40 @@
# template
Wheat = Trigo
Flour = Harina
Potato = Patata
Tomato = Tomate
Carrot = Zanahoria
Orange = Naranja
Milk = Leche
Egg = Huevo
Cocoa Bean = Grano de Cacao
Raw meat = Carne cruda
Venison = Venado
Sugar = Azúcar
Chocolate Powder = Polvo de Chocolate
Dark Chocolate = Chocolate Oscuro
Milk Chocolate = Chocolate con Leche
Pasta = Pasta
Bowl = Cuenco
Butter = Manteca
Cheese = Queso
Baked Potato = Patata al Horno
Pasta Bake = Horneado de Pasta
Raw Pasta Bake = Horneado de Pasta Crudo
chicken Soup = Sopa de Pollo
tomato Soup = Sopa de Tomate
Uncooked tomato Soup = Sopa de tomate sin Cocer
Uncooked chicken Soup = Sopa de pollo sin Cocer
apple Juice = Jugo de manzana
cactus Juice = Jugo de cácto
Rainbow Juice = Jugo de arcoíris
Orange Juice = Jugo de naranja
Cake = Pastel
Chocolate Cake = Pastel de Chocolate
Carrot Cake = Pastel de Zanahoria
Cheese cake = Pastel de Queso
Cake Mix = Mezcla para Pastel
Chocolate Cake Mix = Mezcla para Pastel de Chocolate
Carrot Cake Mix = Mezcla para Pastel de Zanahoria
Cheese Cake Mix = Mezcla para Pastel de Queso

37
food_basic/locale/ru.txt Normal file
View File

@ -0,0 +1,37 @@
# Translation by Xanthin and hawkril
Wheat = Пшеница
Flour = Мука
Potato = Картофель
Tomato = Помидор
Carrot = Морковь
Orange = Апельсин
Milk = Молоко
Egg = Яйцо
Cocoa Bean = Какао-Бобы
Raw meat = Сырое мясо
Venison = Оленина
Sugar = Сахар
Chocolate Powder = Шоколадный порошок
Dark Chocolate = Чёрный шоколад
Milk Chocolate = Молочный шоколад
Pasta = Паста
Bowl = Чашка
Butter = Масло
Cheese = Сыр
Baked Potato = Печёный картофель
Pasta Bake = Макаронные изделия
Raw Pasta Bake = Сырая паста
chicken Soup = Куриный суп
tomato Soup = Томатный суп
Uncooked tomato Soup = Сырой томатный суп
Uncooked chicken Soup = Сырой куриный суп
apple Juice = Яблочный сок
cactus Juice = Кактусовый сок
Rainbow Juice = Радужный сок
Cake = Торт
Chocolate Cake = Шоколадный торт
Carrot Cake = Морковный торт
Cake Mix = Полуфабрикат торта
Chocolate Cake Mix = Полуфабрикат шоколадного торта
Carrot Cake Mix = Полуфабрикат морковного торта

40
food_basic/locale/tr.txt Normal file
View File

@ -0,0 +1,40 @@
# mahmutelmas06@gmail.com
Wheat = Buğday
Flour = Un
Potato = Patates
Tomato = Domates
Carrot = Havuç
Orange = Portakal
Milk = Süt
Egg = Yumurta
Cocoa Bean = Kakao Çekirdeği
Raw meat = Çiğ et
Venison = Geyik Eti
Sugar = Şeker
Chocolate Powder = Çikolata tozu
Dark Chocolate = Bitter çikolata
Milk Chocolate = Sütlü çikolata
Pasta = Makarna
Bowl = Kase
Butter = Tereyağı
Cheese = Peynir
Baked Potato = Fırında Patates
Pasta Bake = Fırında Makarna
Raw Pasta Bake = Çiğ Makarna
chicken Soup = Tavuk çorbası
tomato Soup = Domates çorbası
Uncooked tomato Soup = Pişmemiş domates çorbası
Uncooked chicken Soup = Pişmemiş tavuk çorbası
apple Juice = Elma suyu
cactus Juice = Kaktüs suyu
Rainbow Juice = Gökkuşağı suyu
Orange Juice = Portakal suyu
Cake = Kek
Chocolate Cake = Çikolatalı kek
Carrot Cake = Havuçlu kek
Cheese cake = Peynirli kek
Cake Mix = Pişmemiş kek
Chocolate Cake Mix = Pişmemiş çikolatalı kek
Carrot Cake Mix = Pişmemiş havuçlu kek
Cheese Cake Mix = Pişmemiş peynirli kek

BIN
food_basic/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

View File

@ -16,7 +16,12 @@ food.support("cocoa", "farming_plus:cocoa_bean")
food.support("cup", "vessels:drinking_glass")
food.support("cactus", "default:cactus")
food.support("apple", "default:apple")
food.support("orange", "farming_plus:orange_item")
food.support("orange", {
"farming_plus:orange_item",
"ethereal:orange",
})
food.disable_if("ethereal", "orange")
food.support("potato", {
"docfarming:potato",
"veggies:potato",
@ -35,8 +40,11 @@ food.support("carrot", {
food.support("milk", {
"animalmaterials:milk",
"my_mobs:milk_glass_cup",
"mtfoods:dandelion_milk"
})
food.support("milkbucket", {
"jkanimals:bucket_milk",
"mobs:bucket_milk"
"mobs:bucket_milk",
})
food.support("egg", {
"animalmaterials:egg",
@ -55,7 +63,8 @@ food.support("meat", {
})
food.support("sugar", {
"jkfarming:sugar",
"bushes:sugar"
"bushes:sugar",
"mtfoods:sugar"
})
if farming and farming.mod == "redo" then
@ -65,6 +74,7 @@ if farming and farming.mod == "redo" then
food.support("potato", "farming:potato")
food.support("tomato", "farming:tomato")
food.support("cocoa", "farming:cocoa_beans")
food.support("coffee", "farming:coffee_beans")
food.support("dark_chocolate", "farming:chocolate_dark")
food.support("sugar", "farming:sugar")
food.support("cup", "farming:drinking_cup")
@ -74,10 +84,10 @@ else
food.support("flour", "farming:flour")
end
if minetest.get_modpath("mtfoods") then
food.support("strawberry", "farming_plus:strawberry_item")
food.support("strawberry", "plantlib:strawberry")
food.support("strawberry", "bushes:strawberry")
food.support("rhubarb", "farming_plus:rhubarb_item")
if minetest.get_modpath("mobs") and mobs.mod == "redo" then
if minetest.get_modpath("mobs_animal") then
food.support("chicken", "mobs:chicken_cooked")
else
food.support("chicken", "mobs:meat")
end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB