Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

6 changed files with 31 additions and 127 deletions

View File

@ -1,51 +1,49 @@
local S = mtfoods.get_translator
local ing = mtfoods.ingredients
-- Desserts --
minetest.register_craftitem("mtfoods:dandelion_milk", {
description = S("Dandelion Milk"),
description = "Dandelion Milk",
inventory_image = "mtfoods_milk.png",
on_use = minetest.item_eat(1),
})
minetest.register_craftitem("mtfoods:sugar", {
description = S("Sugar"),
description = "Sugar",
inventory_image = "mtfoods_sugar.png",
on_use = minetest.item_eat(1),
})
minetest.register_craftitem("mtfoods:short_bread", {
description = S("Short Bread"),
description = "Short Bread",
inventory_image = "mtfoods_short_bread.png",
on_use = minetest.item_eat(3.5),
})
minetest.register_craftitem("mtfoods:pie_crust", {
description = S("Pie Crust"),
description = "Pie Crust",
inventory_image = "mtfoods_pie_crust.png",
on_use = minetest.item_eat(3.5),
})
minetest.register_craftitem("mtfoods:cream", {
description = S("Cream"),
description = "Cream",
inventory_image = "mtfoods_cream.png",
on_use = minetest.item_eat(1.5),
})
minetest.register_craftitem("mtfoods:chocolate", {
description = S("Chocolate Bits"),
description = "Chocolate Bits",
inventory_image = "mtfoods_chocolate_bit.png",
on_use = minetest.item_eat(2.5),
})
minetest.register_craftitem("mtfoods:cupcake", {
description = S("Cup-Cake"),
description = "Cup-Cake",
inventory_image = "mtfoods_cupcake.png",
on_use = minetest.item_eat(3.5),
})
minetest.register_craftitem("mtfoods:strawberry_shortcake", {
description = S("Strawberry Short-Cake"),
description = "Strawberry Short-Cake",
inventory_image = "mtfoods_berry_shortcake.png",
on_use = minetest.item_eat(3.5),
})
@ -245,7 +243,7 @@ minetest.register_craft({
minetest.register_node("mtfoods:cake",{
drawtype="nodebox",
paramtype = "light",
description = S("Cake"),
description = "Cake",
on_use = minetest.item_eat(3),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_cake_top.png","mtfoods_cake_bottom.png","mtfoods_cake_side.png","mtfoods_cake_side.png","mtfoods_cake_side.png","mtfoods_cake_side.png"},
@ -260,7 +258,7 @@ minetest.register_node("mtfoods:cake",{
minetest.register_node("mtfoods:chocolate_cake",{
drawtype="nodebox",
description = S("Chocolate Cake"),
description = "Chocolate Cake",
paramtype = "light",
on_use = minetest.item_eat(5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
@ -276,7 +274,7 @@ minetest.register_node("mtfoods:chocolate_cake",{
minetest.register_node("mtfoods:carrot_cake",{
drawtype = "nodebox",
description = S("Carrot Cake"),
description = "Carrot Cake",
on_use = minetest.item_eat(4),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_cake_atop.png","mtfoods_cake_bottom.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png"},
@ -293,7 +291,7 @@ minetest.register_node("mtfoods:carrot_cake",{
minetest.register_node("mtfoods:apple_pie",{
drawtype = "nodebox",
paramtype = "light",
description = S("Apple Pie"),
description = "Apple Pie",
on_use = minetest.item_eat(5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_apie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"},
@ -310,7 +308,7 @@ minetest.register_node("mtfoods:apple_pie",{
minetest.register_node("mtfoods:rhubarb_pie",{
drawtype="nodebox",
paramtype = "light",
description = S("Rhubarb Pie"),
description = "Rhubarb Pie",
on_use = minetest.item_eat(5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_rpie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"},
@ -327,7 +325,7 @@ minetest.register_node("mtfoods:rhubarb_pie",{
minetest.register_node("mtfoods:banana_pie",{
drawtype="nodebox",
paramtype = "light",
description = S("Banana Pie"),
description = "Banana Pie",
on_use = minetest.item_eat(5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_bpie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"},
@ -344,7 +342,7 @@ minetest.register_node("mtfoods:banana_pie",{
minetest.register_node("mtfoods:pumpkin_pie",{
drawtype="nodebox",
paramtype = "light",
description = S("Pumpkin Pie"),
description = "Pumpkin Pie",
on_use = minetest.item_eat(5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_ppie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"},
@ -361,7 +359,7 @@ minetest.register_node("mtfoods:pumpkin_pie",{
minetest.register_node("mtfoods:boston_cream",{
drawtype="nodebox",
paramtype = "light",
description = S("Boston Cream Pie"),
description = "Boston Cream Pie",
on_use = minetest.item_eat(5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_cake_cbottom.png","mtfoods_pie_bottom.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png"},
@ -379,7 +377,7 @@ minetest.register_node("mtfoods:boston_cream",{
minetest.register_node("mtfoods:cookies",{
drawtype = "nodebox",
paramtype = "light",
description = S("Cookies"),
description = "Cookies",
on_use = minetest.item_eat(3),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png"},
@ -396,7 +394,7 @@ minetest.register_node("mtfoods:cookies",{
minetest.register_node("mtfoods:chocolate",{
drawtype = "nodebox",
paramtype = "light",
description = S("Chocolate Bars"),
description = "Chocolate Bars",
on_use = minetest.item_eat(2),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png"},
@ -412,7 +410,7 @@ minetest.register_node("mtfoods:chocolate",{
minetest.register_node("mtfoods:cupcake",{
drawtype = "nodebox",
paramtype = "light",
description = S("Cupcakes"),
description = "Cupcakes",
on_use = minetest.item_eat(3.5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_cupcake_top.png","mtfoods_cake_bottom.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png"},

View File

@ -1,9 +1,6 @@
local S = mtfoods.get_translator
local ing = mtfoods.ingredients
-- Flute Glass --
minetest.register_craftitem("mtfoods:glass_flute", {
description = S("Glass Flute"),
description = "Glass Flute",
inventory_image = "mtfoods_flute.png",
})
@ -20,7 +17,7 @@ minetest.register_craft({
--orange--
minetest.register_craftitem("mtfoods:orange_juice", {
description = S("Orange Juice"),
description = "Orange Juice",
inventory_image = "mtfoods_orange_juice.png",
on_use = minetest.item_eat(0.5),
})
@ -34,7 +31,7 @@ minetest.register_craft({
--apple--
minetest.register_craftitem("mtfoods:apple_juice", {
description = S("Apple Juice"),
description = "Apple Juice",
inventory_image = "mtfoods_apple_juice.png",
on_use = minetest.item_eat(0.5),
})
@ -51,7 +48,7 @@ minetest.register_node("mtfoods:apple_cider", {
drawtype = 'plantlike',
paramtype = 'light',
tiles = {"mtfoods_apple_cider.png"},
description = S("Apple Cider in Bottle"),
description = "Apple Cider in Bottle",
inventory_image = "mtfoods_apple_cider.png",
wield_image = "mtfoods_apple_cider.png",
on_use = minetest.item_eat(1),
@ -75,7 +72,7 @@ minetest.register_node("mtfoods:cider_rack", {
paramtype = 'light',
paramtype2 = "facedir",
tiles = {"mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack.png",},
description = S("A Cider Rack"),
description = "A Cider Rack",
inventory_image = "mtfoods_ciderrack.png",
wield_image = "mtfoods_ciderrack.png",
groups = {oddly_breakable_by_hand=3, choppy=3},

View File

@ -1,12 +1,9 @@
local S = mtfoods.get_translator
-- Foods --
--MLT--
local ing = mtfoods.ingredients
minetest.register_craftitem( "mtfoods:mlt_burger", {
description = S("MLT (Mutton, Lettuce, Tomato)"),
description = "MLT (Mutton, Lettuce, Tomato)",
inventory_image = "mtfoods_mlt.png",
wield_image = "mtfoods_mlt.png",
on_use = minetest.item_eat(6.5),
@ -24,7 +21,7 @@ minetest.register_craft({
--Potato uses--
minetest.register_craftitem( "mtfoods:potato_slices", {
description = S("Sliced Potato"),
description = "Sliced Potato",
inventory_image = "mtfoods_potato_slices.png",
wield_image = "mtfoods_potato_slices.png",
on_use = minetest.item_eat(2),
@ -38,7 +35,7 @@ minetest.register_craft({
})
minetest.register_craftitem( "mtfoods:potato_chips", {
description = S("Potato Chips"),
description = "Potato Chips",
inventory_image = "mtfoods_potato_chips.png",
wield_image = "mtfoods_potato_chips.png",
on_use = minetest.item_eat(3),
@ -53,7 +50,7 @@ minetest.register_craft({
-- Medicine --
minetest.register_craftitem( "mtfoods:medicine", {
description = S("Medicine"),
description = "Medicine",
inventory_image = "mtfoods_medicine.png",
wield_image = "mtfoods_medicine.png",
on_use = minetest.item_eat(8),
@ -70,7 +67,7 @@ minetest.register_craft({
minetest.register_node( "mtfoods:casserole",{
drawtype = "nodebox",
description = S("Casserole"),
description = "Casserole",
paramtype = "light",
on_use = minetest.item_eat(5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},

View File

@ -1,17 +1,13 @@
--MTFoods--
--By: Philipbenr--
--Licence: GPLv3--
mtfoods = {}
local S = minetest.get_translator("mtfoods")
mtfoods.get_translator = S
local orange_ing = "farming_plus:orange"
if minetest.get_modpath("ethereal") then
orange_ing = "ethereal:orange"
end
mtfoods.ingredients = {
ing = {
orange = orange_ing,
apple = "default:apple",
meat = "mobs:meat",
@ -30,7 +26,7 @@ mtfoods.ingredients = {
-- Add support for the food mod's ingredient list
if minetest.get_modpath("food") then
mtfoods.ingredients = {
ing = {
orange = "group:food_orange",
apple = "default:apple",
meat = "group:food_meat",

View File

@ -1,38 +0,0 @@
# textdomain: mtfoods
## desserts.lua ##
Dandelion Milk=Lait de pissenlit
Sugar=Sucre
Short Bread=Petit pain
Pie Crust=Pâte à tarte
Cream=Crème
Chocolate Bits=Morceaux de chocolat
Cup-Cake=Petit gâteau
Strawberry Short-Cake=Petit gâteaux à la fraise
Cake=Gâteau
Chocolate Cake=Gateau au chocolat
Carrot Cake=Gâteau à la carotte
Apple Pie=Tarte aux pommes
Rhubarb Pie=tarte à la rhubarbe
Banana Pie=Tarte aux bananes
Pumpkin Pie=Tarte à la citrouille
Boston Cream Pie=Tarte à la crème de Boston
Cookies=Biscuits
Chocolate Bars=Barres de chocolat
Cupcakes=Petits gâteaux
## drinks.lua ##
Glass Flute=Flûte en verre
Orange Juice=Jus d'orange
Apple Juice=Jus de pomme
Apple Cider in Bottle=Cidre de pomme en bouteille
A Cider Rack=Un casier à cidre
## foods.lua ##
MLT (Mutton, Lettuce, Tomato)=MLT (Mouton, Laitue, Tomate)
Sliced Potato=Pomme de terre en tranches
Potato Chips=Chips de pommes de terre
Medicine=Médecine
Casserole=Casserole

View File

@ -1,46 +0,0 @@
# textdomain: mtfoods
## desserts.lua ##
Dandelion Milk=
Sugar=
Short Bread=
Pie Crust=
Cream=
Chocolate Bits=
Cup-Cake=
Strawberry Short-Cake=
Cake=
Chocolate Cake=
Carrot Cake=
Apple Pie=
Rhubarb Pie=
Banana Pie=
Pumpkin Pie=
Boston Cream Pie=
Cookies=
Chocolate Bars=
Cupcakes=
## drinks.lua ##
Glass Flute=
Orange Juice=
Apple Juice=
Apple Cider in Bottle=
A Cider Rack=
## foods.lua ##
MLT (Mutton, Lettuce, Tomato)=
Sliced Potato=
Potato Chips=
Medicine=
Casserole=