forked from mtcontrib/farming
		
	Merge remote-tracking branch 'upstream/master'
This commit is contained in:
		@@ -3,7 +3,7 @@ local S = farming.intllib
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
-- blueberries
 | 
					-- blueberries
 | 
				
			||||||
minetest.register_craftitem("farming:blueberries", {
 | 
					minetest.register_craftitem("farming:blueberries", {
 | 
				
			||||||
	description = S("Blueberries"),
 | 
						description = S("Wild Blueberries"),
 | 
				
			||||||
	inventory_image = "farming_blueberries.png",
 | 
						inventory_image = "farming_blueberries.png",
 | 
				
			||||||
	groups = {seed = 2, food_blueberries = 1, food_blueberry = 1,
 | 
						groups = {seed = 2, food_blueberries = 1, food_blueberry = 1,
 | 
				
			||||||
			food_berry = 1, flammable = 2},
 | 
								food_berry = 1, flammable = 2},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ minetest.register_craftitem("farming:coffee_beans", {
 | 
				
			|||||||
	end
 | 
						end
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- cold cup of coffee
 | 
					-- cup of coffee
 | 
				
			||||||
minetest.register_node("farming:coffee_cup", {
 | 
					minetest.register_node("farming:coffee_cup", {
 | 
				
			||||||
	description = S("Cup of Coffee"),
 | 
						description = S("Cup of Coffee"),
 | 
				
			||||||
	drawtype = "torchlike",
 | 
						drawtype = "torchlike",
 | 
				
			||||||
@@ -37,13 +37,27 @@ minetest.register_craft( {
 | 
				
			|||||||
	type = "shapeless",
 | 
						type = "shapeless",
 | 
				
			||||||
	recipe = {
 | 
						recipe = {
 | 
				
			||||||
		"vessels:drinking_glass", "group:food_coffee",
 | 
							"vessels:drinking_glass", "group:food_coffee",
 | 
				
			||||||
		"bucket:bucket_water", "group:food_saucepan"},
 | 
							"group:water_bucket", "group:food_saucepan"},
 | 
				
			||||||
	replacements = {
 | 
						replacements = {
 | 
				
			||||||
		{"bucket:bucket_water", "bucket:bucket_empty"},
 | 
							{"group:water_bucket", "bucket:bucket_empty"},
 | 
				
			||||||
		{"group:food_saucepan", "farming:saucepan"}
 | 
							{"group:food_saucepan", "farming:saucepan"}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if minetest.get_modpath("bucket_wooden") then
 | 
				
			||||||
 | 
						minetest.register_craft( {
 | 
				
			||||||
 | 
							output = "farming:coffee_cup",
 | 
				
			||||||
 | 
							type = "shapeless",
 | 
				
			||||||
 | 
							recipe = {
 | 
				
			||||||
 | 
								"vessels:drinking_glass", "group:food_coffee",
 | 
				
			||||||
 | 
								"group:water_bucket_wooden", "group:food_saucepan"},
 | 
				
			||||||
 | 
							replacements = {
 | 
				
			||||||
 | 
								{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"},
 | 
				
			||||||
 | 
								{"group:food_saucepan", "farming:saucepan"}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- coffee definition
 | 
					-- coffee definition
 | 
				
			||||||
local def = {
 | 
					local def = {
 | 
				
			||||||
	drawtype = "plantlike",
 | 
						drawtype = "plantlike",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -78,21 +78,23 @@ minetest.register_craft( {
 | 
				
			|||||||
	output = "farming:hemp_fibre 8",
 | 
						output = "farming:hemp_fibre 8",
 | 
				
			||||||
	recipe = {
 | 
						recipe = {
 | 
				
			||||||
		{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
 | 
							{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
 | 
				
			||||||
		{"farming:hemp_leaf", "bucket:bucket_water", "farming:hemp_leaf"},
 | 
							{"farming:hemp_leaf", "group:water_bucket", "farming:hemp_leaf"},
 | 
				
			||||||
		{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
 | 
							{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	replacements = {{ "bucket:bucket_water", "bucket:bucket_empty"}}
 | 
						replacements = {{"group:water_bucket", "bucket:bucket_empty"}}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_craft( {
 | 
					if minetest.get_modpath("bucket_wooden") then
 | 
				
			||||||
	output = "farming:hemp_fibre 8",
 | 
						minetest.register_craft( {
 | 
				
			||||||
	recipe = {
 | 
							output = "farming:hemp_fibre 8",
 | 
				
			||||||
		{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
 | 
							recipe = {
 | 
				
			||||||
		{"farming:hemp_leaf", "bucket:bucket_river_water", "farming:hemp_leaf"},
 | 
								{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
 | 
				
			||||||
		{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
 | 
								{"farming:hemp_leaf", "group:water_bucket_wooden", "farming:hemp_leaf"},
 | 
				
			||||||
	},
 | 
								{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
 | 
				
			||||||
	replacements = {{ "bucket:bucket_river_water", "bucket:bucket_empty"}}
 | 
							},
 | 
				
			||||||
})
 | 
							replacements = {{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"}}
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- hemp block
 | 
					-- hemp block
 | 
				
			||||||
minetest.register_node("farming:hemp_block", {
 | 
					minetest.register_node("farming:hemp_block", {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,14 +33,30 @@ minetest.register_craft({
 | 
				
			|||||||
	recipe = {
 | 
						recipe = {
 | 
				
			||||||
		"vessels:drinking_glass", "group:food_mint",
 | 
							"vessels:drinking_glass", "group:food_mint",
 | 
				
			||||||
		"group:food_mint", "group:food_mint",
 | 
							"group:food_mint", "group:food_mint",
 | 
				
			||||||
		"farming:juicer", "bucket:bucket_water"
 | 
							"farming:juicer", "group:water_bucket"
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	replacements = {
 | 
						replacements = {
 | 
				
			||||||
		{"group:food_juicer", "farming:juicer"},
 | 
							{"group:food_juicer", "farming:juicer"},
 | 
				
			||||||
		{"bucket:bucket_water", "bucket:bucket_empty"}
 | 
							{"group:water_bucket", "bucket:bucket_empty"}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if minetest.get_modpath("bucket_wooden") then
 | 
				
			||||||
 | 
						minetest.register_craft({
 | 
				
			||||||
 | 
							output = "farming:mint_tea",
 | 
				
			||||||
 | 
							type = "shapeless",
 | 
				
			||||||
 | 
							recipe = {
 | 
				
			||||||
 | 
								"vessels:drinking_glass", "group:food_mint",
 | 
				
			||||||
 | 
								"group:food_mint", "group:food_mint",
 | 
				
			||||||
 | 
								"farming:juicer", "group:water_bucket_wooden"
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							replacements = {
 | 
				
			||||||
 | 
								{"group:food_juicer", "farming:juicer"},
 | 
				
			||||||
 | 
								{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- mint definition
 | 
					-- mint definition
 | 
				
			||||||
local def = {
 | 
					local def = {
 | 
				
			||||||
	drawtype = "plantlike",
 | 
						drawtype = "plantlike",
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										55
									
								
								food.lua
									
									
									
									
									
								
							
							
						
						
									
										55
									
								
								food.lua
									
									
									
									
									
								
							@@ -68,14 +68,29 @@ minetest.register_craft({
 | 
				
			|||||||
	recipe = {
 | 
						recipe = {
 | 
				
			||||||
		{"flowers:rose", "flowers:rose", "flowers:rose"},
 | 
							{"flowers:rose", "flowers:rose", "flowers:rose"},
 | 
				
			||||||
		{"flowers:rose", "flowers:rose", "flowers:rose"},
 | 
							{"flowers:rose", "flowers:rose", "flowers:rose"},
 | 
				
			||||||
		{"bucket:bucket_water", "group:food_pot", "vessels:glass_bottle"}
 | 
							{"group:water_bucket", "group:food_pot", "vessels:glass_bottle"}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	replacements = {
 | 
						replacements = {
 | 
				
			||||||
		{"bucket:bucket_water", "bucket:bucket_empty"},
 | 
							{"group:water_bucket", "bucket:bucket_empty"},
 | 
				
			||||||
		{"group:food_pot", "farming:pot"}
 | 
							{"group:food_pot", "farming:pot"}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if minetest.get_modpath("bucket_wooden") then
 | 
				
			||||||
 | 
						minetest.register_craft({
 | 
				
			||||||
 | 
							output = "farming:rose_water",
 | 
				
			||||||
 | 
							recipe = {
 | 
				
			||||||
 | 
								{"flowers:rose", "flowers:rose", "flowers:rose"},
 | 
				
			||||||
 | 
								{"flowers:rose", "flowers:rose", "flowers:rose"},
 | 
				
			||||||
 | 
								{"group:water_bucket_wooden", "group:food_pot", "vessels:glass_bottle"}
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							replacements = {
 | 
				
			||||||
 | 
								{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"},
 | 
				
			||||||
 | 
								{"group:food_pot", "farming:pot"}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--= Turkish Delight
 | 
					--= Turkish Delight
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_craftitem("farming:turkish_delight", {
 | 
					minetest.register_craftitem("farming:turkish_delight", {
 | 
				
			||||||
@@ -168,24 +183,29 @@ minetest.register_craftitem("farming:porridge", {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
minetest.after(0, function()
 | 
					minetest.after(0, function()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	local fluid = "bucket:bucket_water"
 | 
						local fluid = "group:water_bucket"
 | 
				
			||||||
	local fluid_return = "bucket:bucket_water"
 | 
						local fluid_return = {
 | 
				
			||||||
 | 
							{"group:water_bucket", "bucket:bucket_empty"},
 | 
				
			||||||
 | 
							{"group:water_bucket_wooden", "bucket:bucket_empty"}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then
 | 
						if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then
 | 
				
			||||||
		fluid = "group:food_milk"
 | 
							fluid = "group:food_milk"
 | 
				
			||||||
		fluid_return = "mobs:bucket_milk"
 | 
							fluid_return = {
 | 
				
			||||||
 | 
								{"mobs:bucket_milk", "bucket:bucket_empty"}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
							minetest.register_craft({
 | 
				
			||||||
 | 
								type = "shapeless",
 | 
				
			||||||
 | 
								output = "farming:porridge",
 | 
				
			||||||
 | 
								recipe = {
 | 
				
			||||||
 | 
									"group:food_oats", "group:food_oats", "group:food_oats",
 | 
				
			||||||
 | 
									"group:food_oats", "group:food_bowl", "group:water_bucket_wooden"
 | 
				
			||||||
 | 
								},
 | 
				
			||||||
 | 
								replacements = fluid_return
 | 
				
			||||||
 | 
							})
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	minetest.register_craft({
 | 
					 | 
				
			||||||
		type = "shapeless",
 | 
					 | 
				
			||||||
		output = "farming:porridge",
 | 
					 | 
				
			||||||
		recipe = {
 | 
					 | 
				
			||||||
			"group:food_barley", "group:food_barley", "group:food_wheat",
 | 
					 | 
				
			||||||
			"group:food_wheat", "group:food_bowl", fluid
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
		replacements = {{fluid_return, "bucket:bucket_empty"}}
 | 
					 | 
				
			||||||
	})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	minetest.register_craft({
 | 
						minetest.register_craft({
 | 
				
			||||||
		type = "shapeless",
 | 
							type = "shapeless",
 | 
				
			||||||
		output = "farming:porridge",
 | 
							output = "farming:porridge",
 | 
				
			||||||
@@ -193,8 +213,11 @@ minetest.after(0, function()
 | 
				
			|||||||
			"group:food_oats", "group:food_oats", "group:food_oats",
 | 
								"group:food_oats", "group:food_oats", "group:food_oats",
 | 
				
			||||||
			"group:food_oats", "group:food_bowl", fluid
 | 
								"group:food_oats", "group:food_bowl", fluid
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		replacements = {{fluid_return, "bucket:bucket_empty"}}
 | 
							replacements = fluid_return
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if minetest.get_modpath("bucket_wooden") then
 | 
				
			||||||
 | 
						end
 | 
				
			||||||
end)
 | 
					end)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--= Jaffa Cake
 | 
					--= Jaffa Cake
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ Bean Pole (place on soil before planting beans)=Bohnenstange (vor dem Pflanzen d
 | 
				
			|||||||
#Beetroot=
 | 
					#Beetroot=
 | 
				
			||||||
#Beetroot Soup=
 | 
					#Beetroot Soup=
 | 
				
			||||||
#Bibimbap=
 | 
					#Bibimbap=
 | 
				
			||||||
Blueberries=Blaubeeren
 | 
					Wild Blueberries=Wilde Blaubeeren
 | 
				
			||||||
Blueberry Muffin=Blaubeermuffin
 | 
					Blueberry Muffin=Blaubeermuffin
 | 
				
			||||||
#Blueberry Pie=
 | 
					#Blueberry Pie=
 | 
				
			||||||
Bottle of Ethanol=Flasche Ethanol
 | 
					Bottle of Ethanol=Flasche Ethanol
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@
 | 
				
			|||||||
#Beetroot=
 | 
					#Beetroot=
 | 
				
			||||||
#Beetroot Soup=
 | 
					#Beetroot Soup=
 | 
				
			||||||
#Bibimbap=
 | 
					#Bibimbap=
 | 
				
			||||||
#Blueberries=
 | 
					#Wild Blueberries=
 | 
				
			||||||
#Blueberry Muffin=
 | 
					#Blueberry Muffin=
 | 
				
			||||||
#Blueberry Pie=
 | 
					#Blueberry Pie=
 | 
				
			||||||
#Bottle of Ethanol=
 | 
					#Bottle of Ethanol=
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ Bean Pole (place on soil before planting beans)=Tuteur pour haricots (placer sur
 | 
				
			|||||||
Beetroot=Betterave
 | 
					Beetroot=Betterave
 | 
				
			||||||
Beetroot Soup=Soupe de betterave
 | 
					Beetroot Soup=Soupe de betterave
 | 
				
			||||||
Bibimbap=Bibimbap
 | 
					Bibimbap=Bibimbap
 | 
				
			||||||
Blueberries=Myrtilles
 | 
					Wild Blueberries=Myrtilles Sauvages
 | 
				
			||||||
Blueberry Muffin=Muffin aux myrtilles
 | 
					Blueberry Muffin=Muffin aux myrtilles
 | 
				
			||||||
Blueberry Pie=Tarte aux myrtilles
 | 
					Blueberry Pie=Tarte aux myrtilles
 | 
				
			||||||
Bottle of Ethanol=Bouteille d'éthanol
 | 
					Bottle of Ethanol=Bouteille d'éthanol
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ Bean Pole (place on soil before planting beans)=Palina per fagiolini (mettila su
 | 
				
			|||||||
Beetroot=Barbabietola
 | 
					Beetroot=Barbabietola
 | 
				
			||||||
Beetroot Soup=Zuppa di barbabietola
 | 
					Beetroot Soup=Zuppa di barbabietola
 | 
				
			||||||
#Bibimbap=
 | 
					#Bibimbap=
 | 
				
			||||||
Blueberries=Mirtilli
 | 
					Wild Blueberries=Mirtilli Selvatici
 | 
				
			||||||
Blueberry Muffin=Focaccina di mirtilli
 | 
					Blueberry Muffin=Focaccina di mirtilli
 | 
				
			||||||
Blueberry Pie=Tortino di mirtilli
 | 
					Blueberry Pie=Tortino di mirtilli
 | 
				
			||||||
Bottle of Ethanol=Bottiglia di alcol etilico
 | 
					Bottle of Ethanol=Bottiglia di alcol etilico
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ Bean Pole (place on soil before planting beans)=Apoio de feijao (coloque no solo
 | 
				
			|||||||
#Beetroot=
 | 
					#Beetroot=
 | 
				
			||||||
#Beetroot Soup=
 | 
					#Beetroot Soup=
 | 
				
			||||||
#Bibimbap=
 | 
					#Bibimbap=
 | 
				
			||||||
Blueberries=Mirtilos
 | 
					Wild Blueberries=Mirtilos Selvagens
 | 
				
			||||||
Blueberry Muffin=Muffin de Mirtilos
 | 
					Blueberry Muffin=Muffin de Mirtilos
 | 
				
			||||||
#Blueberry Pie=
 | 
					#Blueberry Pie=
 | 
				
			||||||
Bottle of Ethanol=Garrafa de Etanol
 | 
					Bottle of Ethanol=Garrafa de Etanol
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ Bean Pole (place on soil before planting beans)=Жердь для бобовых
 | 
				
			|||||||
Beetroot=Свекла
 | 
					Beetroot=Свекла
 | 
				
			||||||
Beetroot Soup=Борщ
 | 
					Beetroot Soup=Борщ
 | 
				
			||||||
#Bibimbap=
 | 
					#Bibimbap=
 | 
				
			||||||
Blueberries=Голубика
 | 
					Wild Blueberries=Голубика
 | 
				
			||||||
Blueberry Muffin=Кекс с голубикой
 | 
					Blueberry Muffin=Кекс с голубикой
 | 
				
			||||||
Blueberry Pie=Пирог с голубикой
 | 
					Blueberry Pie=Пирог с голубикой
 | 
				
			||||||
Bottle of Ethanol=Бутылка спирта
 | 
					Bottle of Ethanol=Бутылка спирта
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ Bean Pole (place on soil before planting beans)=豆杆(种豆前先放在土
 | 
				
			|||||||
Beetroot=甜菜根
 | 
					Beetroot=甜菜根
 | 
				
			||||||
Beetroot Soup=甜菜根汤
 | 
					Beetroot Soup=甜菜根汤
 | 
				
			||||||
#Bibimbap=
 | 
					#Bibimbap=
 | 
				
			||||||
Blueberries=蓝莓
 | 
					Wild Blueberries=蓝莓
 | 
				
			||||||
Blueberry Muffin=蓝莓松糕
 | 
					Blueberry Muffin=蓝莓松糕
 | 
				
			||||||
Blueberry Pie=蓝莓派
 | 
					Blueberry Pie=蓝莓派
 | 
				
			||||||
Bottle of Ethanol=一瓶乙醇
 | 
					Bottle of Ethanol=一瓶乙醇
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ Bean Pole (place on soil before planting beans)=豆杆(種豆前先放在土
 | 
				
			|||||||
Beetroot=甜菜根
 | 
					Beetroot=甜菜根
 | 
				
			||||||
Beetroot Soup=甜菜根湯
 | 
					Beetroot Soup=甜菜根湯
 | 
				
			||||||
#Bibimbap=
 | 
					#Bibimbap=
 | 
				
			||||||
Blueberries=藍莓
 | 
					Wild Blueberries=藍莓
 | 
				
			||||||
Blueberry Muffin=藍莓鬆糕
 | 
					Blueberry Muffin=藍莓鬆糕
 | 
				
			||||||
Blueberry Pie=藍莓派
 | 
					Blueberry Pie=藍莓派
 | 
				
			||||||
Bottle of Ethanol=一瓶乙醇
 | 
					Bottle of Ethanol=一瓶乙醇
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user