forked from mtcontrib/farming
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
8f2c41abe9
@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t
|
|||||||
|
|
||||||
### Changelog:
|
### Changelog:
|
||||||
|
|
||||||
- 1.46 - Added min/max default light settings, added lettuce and blackberries with food items (thanks OgelGames), added soya and vanilla (thanks Felfa), added tofu
|
- 1.46 - Added min/max default light settings, added lettuce and blackberries with food items (thanks OgelGames), added soya and vanilla (thanks Felfa), added tofu, added salt crystals (thanks gorlock)
|
||||||
- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice, added pasta, spaghetti, cabbage, korean bibimbap, code tidy
|
- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice, added pasta, spaghetti, cabbage, korean bibimbap, code tidy
|
||||||
options, onion soup added (thanks edcrypt), Added apple pie, added wild cotton to savanna
|
options, onion soup added (thanks edcrypt), Added apple pie, added wild cotton to savanna
|
||||||
- 1.44 - Added 'farming_stage_length' in mod settings for speed of crop growth, also thanks to TheDarkTiger for translation updates
|
- 1.44 - Added 'farming_stage_length' in mod settings for speed of crop growth, also thanks to TheDarkTiger for translation updates
|
||||||
|
85
food.lua
85
food.lua
@ -33,7 +33,48 @@ minetest.register_node("farming:salt", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||||
}
|
},
|
||||||
|
-- special function to make salt crystals form inside water
|
||||||
|
dropped_step = function(self, pos, dtime)
|
||||||
|
|
||||||
|
self.ctimer = (self.ctimer or 0) + dtime
|
||||||
|
if self.ctimer < 15.0 then return end
|
||||||
|
self.ctimer = 0
|
||||||
|
|
||||||
|
local needed
|
||||||
|
|
||||||
|
if self.node_inside
|
||||||
|
and self.node_inside.name == "default:water_source" then
|
||||||
|
needed = 8
|
||||||
|
|
||||||
|
elseif self.node_inside
|
||||||
|
and self.node_inside.name == "default:river_water_source" then
|
||||||
|
needed = 9
|
||||||
|
end
|
||||||
|
|
||||||
|
if not needed then return end
|
||||||
|
|
||||||
|
local objs = core.get_objects_inside_radius(pos, 0.5)
|
||||||
|
|
||||||
|
if not objs or #objs ~= 1 then return end
|
||||||
|
|
||||||
|
local salt, ent = nil, nil
|
||||||
|
|
||||||
|
for k, obj in pairs(objs) do
|
||||||
|
|
||||||
|
ent = obj:get_luaentity()
|
||||||
|
|
||||||
|
if ent and ent.name == "__builtin:item"
|
||||||
|
and ent.itemstring == "farming:salt " .. needed then
|
||||||
|
|
||||||
|
obj:remove()
|
||||||
|
|
||||||
|
core.add_item(pos, "farming:salt_crystal")
|
||||||
|
|
||||||
|
return false -- return with no further action
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -44,6 +85,40 @@ minetest.register_craft({
|
|||||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--= Salt Crystal
|
||||||
|
|
||||||
|
minetest.register_node("farming:salt_crystal", {
|
||||||
|
description = ("Salt crystal"),
|
||||||
|
inventory_image = "farming_salt_crystal.png",
|
||||||
|
wield_image = "farming_salt_crystal.png",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
visual_scale = 0.8,
|
||||||
|
paramtype = "light",
|
||||||
|
light_source = 1,
|
||||||
|
tiles = {"farming_salt_crystal.png"},
|
||||||
|
groups = { dig_immediate = 3, attached_node = 1},
|
||||||
|
sounds = default.node_sound_defaults(),
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "farming:salt 9",
|
||||||
|
recipe = {"farming:salt_crystal", "farming:mortar_pestle"},
|
||||||
|
replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "farming:salt_crystal",
|
||||||
|
recipe = {
|
||||||
|
{"farming:salt", "farming:salt", "farming:salt"},
|
||||||
|
{"farming:salt", "farming:salt", "farming:salt"},
|
||||||
|
{"farming:salt", "farming:salt", "farming:salt"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
--= Rose Water
|
--= Rose Water
|
||||||
|
|
||||||
minetest.register_node("farming:rose_water", {
|
minetest.register_node("farming:rose_water", {
|
||||||
@ -273,7 +348,6 @@ minetest.register_craftitem("farming:pasta", {
|
|||||||
groups = {food_pasta = 1}
|
groups = {food_pasta = 1}
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("mobs_animal") or minetest.get_modpath("xanadu")then
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:pasta",
|
output = "farming:pasta",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -283,7 +357,7 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}}
|
replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}}
|
||||||
})
|
})
|
||||||
else
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:pasta",
|
output = "farming:pasta",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -296,7 +370,6 @@ minetest.register_craft({
|
|||||||
{"group:food_oil", "vessels:glass_bottle"}
|
{"group:food_oil", "vessels:glass_bottle"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
|
||||||
|
|
||||||
-- Spaghetti
|
-- Spaghetti
|
||||||
|
|
||||||
@ -324,7 +397,6 @@ minetest.register_craftitem("farming:bibimbap", {
|
|||||||
on_use = minetest.item_eat(8, "farming:bowl")
|
on_use = minetest.item_eat(8, "farming:bowl")
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("mobs_animal") or minetest.get_modpath("xanadu")then
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:bibimbap",
|
output = "farming:bibimbap",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -335,7 +407,7 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||||
})
|
})
|
||||||
else
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:bibimbap",
|
output = "farming:bibimbap",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -346,7 +418,6 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||||
})
|
})
|
||||||
end
|
|
||||||
|
|
||||||
-- Burger
|
-- Burger
|
||||||
|
|
||||||
|
19
license.txt
19
license.txt
@ -145,13 +145,16 @@ Created by mDiyo (Natura), modified by TenPlus1 (License: CC BY-SA 3.0):
|
|||||||
farming_barley.png
|
farming_barley.png
|
||||||
|
|
||||||
Created by OgelGames (CC BY-SA 4.0)
|
Created by OgelGames (CC BY-SA 4.0)
|
||||||
farming_berry_smoothie.png
|
farming_berry_smoothie.png
|
||||||
farming_cactus_juice.png
|
farming_cactus_juice.png
|
||||||
farming_salad.png
|
farming_salad.png
|
||||||
|
|
||||||
Created by Felfa (CC0)
|
Created by Felfa (CC0)
|
||||||
farming_blackberry*.png
|
farming_blackberry*.png
|
||||||
farming_lettuce*.png
|
farming_lettuce*.png
|
||||||
farming_burger.png
|
farming_burger.png
|
||||||
farming_soy*.png
|
farming_soy*.png
|
||||||
farming_vanilla*.png
|
farming_vanilla*.png
|
||||||
|
|
||||||
|
Created by gorlock (CC0)
|
||||||
|
farming_salt_crystal.png
|
||||||
|
238
locale/zh_CN.txt
238
locale/zh_CN.txt
@ -1,119 +1,119 @@
|
|||||||
Seed=种子
|
Seed=种子
|
||||||
Banana=香蕉
|
Banana=香蕉
|
||||||
Banana Leaves=香蕉叶
|
Banana Leaves=香蕉叶
|
||||||
Orange=橙色
|
Orange=橙色
|
||||||
Strawberry=草莓
|
Strawberry=草莓
|
||||||
Sugar=糖
|
Sugar=糖
|
||||||
Salt=盐
|
Salt=盐
|
||||||
Rose Water=玫瑰汁
|
Rose Water=玫瑰汁
|
||||||
Turkish Delight=土耳其软糖
|
Turkish Delight=土耳其软糖
|
||||||
Garlic Bread=蒜香面包
|
Garlic Bread=蒜香面包
|
||||||
Donut=甜甜圈
|
Donut=甜甜圈
|
||||||
Chocolate Donut=巧克力甜甜圈
|
Chocolate Donut=巧克力甜甜圈
|
||||||
Apple Donut=苹果甜甜圈
|
Apple Donut=苹果甜甜圈
|
||||||
Porridge=粥
|
Porridge=粥
|
||||||
Jaffa Cake=佳发饼
|
Jaffa Cake=佳发饼
|
||||||
Hoe=锄头
|
Hoe=锄头
|
||||||
Wooden Hoe=木锄
|
Wooden Hoe=木锄
|
||||||
Stone Hoe=石锄
|
Stone Hoe=石锄
|
||||||
Steel Hoe=钢锄头
|
Steel Hoe=钢锄头
|
||||||
Bronze Hoe=青铜锄头
|
Bronze Hoe=青铜锄头
|
||||||
Mese Hoe=黄石锄头
|
Mese Hoe=黄石锄头
|
||||||
Diamond Hoe=钻石锄
|
Diamond Hoe=钻石锄
|
||||||
Hoe Bomb (use or throw on grassy areas to hoe land)=锄弹(在草地上使用或扔在锄地上)
|
Hoe Bomb (use or throw on grassy areas to hoe land)=锄弹(在草地上使用或扔在锄地上)
|
||||||
Mithril Scythe (Right-click to harvest and replant crops)=秘银镰刀(右击可收获并重新种植作物)
|
Mithril Scythe (Right-click to harvest and replant crops)=秘银镰刀(右击可收获并重新种植作物)
|
||||||
Soil=土壤
|
Soil=土壤
|
||||||
Wet Soil=湿土
|
Wet Soil=湿土
|
||||||
Wooden Bowl=木碗
|
Wooden Bowl=木碗
|
||||||
Saucepan=平底锅
|
Saucepan=平底锅
|
||||||
Cooking Pot=锅
|
Cooking Pot=锅
|
||||||
Baking Tray=烤盘
|
Baking Tray=烤盘
|
||||||
Skillet=平底锅
|
Skillet=平底锅
|
||||||
Mortar and Pestle=研钵
|
Mortar and Pestle=研钵
|
||||||
Cutting Board=砧板
|
Cutting Board=砧板
|
||||||
Juicer=榨汁机
|
Juicer=榨汁机
|
||||||
Glass Mixing Bowl=搅拌杯
|
Glass Mixing Bowl=搅拌杯
|
||||||
Barley Seed=大麦种子
|
Barley Seed=大麦种子
|
||||||
Barley=大麦
|
Barley=大麦
|
||||||
Green Beans=青豆
|
Green Beans=青豆
|
||||||
Bean Pole (place on soil before planting beans)=豆杆(种豆前先放在土上)
|
Bean Pole (place on soil before planting beans)=豆杆(种豆前先放在土上)
|
||||||
Beetroot=甜菜根
|
Beetroot=甜菜根
|
||||||
Beetroot Soup=甜菜根汤
|
Beetroot Soup=甜菜根汤
|
||||||
Blueberries=蓝莓
|
Blueberries=蓝莓
|
||||||
Blueberry Muffin=蓝莓松糕
|
Blueberry Muffin=蓝莓松糕
|
||||||
Blueberry Pie=蓝莓派
|
Blueberry Pie=蓝莓派
|
||||||
Carrot=胡萝卜
|
Carrot=胡萝卜
|
||||||
Carrot Juice=胡萝卜汁
|
Carrot Juice=胡萝卜汁
|
||||||
Golden Carrot=金萝卜
|
Golden Carrot=金萝卜
|
||||||
Chili Pepper=辣椒
|
Chili Pepper=辣椒
|
||||||
Bowl of Chili=一碗辣椒
|
Bowl of Chili=一碗辣椒
|
||||||
Cocoa Beans=可可豆
|
Cocoa Beans=可可豆
|
||||||
Cookie=曲奇
|
Cookie=曲奇
|
||||||
Bar of Dark Chocolate=黑巧克力条
|
Bar of Dark Chocolate=黑巧克力条
|
||||||
Chocolate Block=巧克力块
|
Chocolate Block=巧克力块
|
||||||
Coffee Beans=咖啡豆
|
Coffee Beans=咖啡豆
|
||||||
Cup of Coffee=一杯咖啡
|
Cup of Coffee=一杯咖啡
|
||||||
Corn=玉米
|
Corn=玉米
|
||||||
Corn on the Cob=玉米棒
|
Corn on the Cob=玉米棒
|
||||||
Cornstarch=玉米淀粉
|
Cornstarch=玉米淀粉
|
||||||
Bottle of Ethanol=一瓶乙醇
|
Bottle of Ethanol=一瓶乙醇
|
||||||
Cotton Seed=棉籽
|
Cotton Seed=棉籽
|
||||||
Cotton=棉花
|
Cotton=棉花
|
||||||
String=字符串
|
String=线
|
||||||
Cucumber=黄瓜
|
Cucumber=黄瓜
|
||||||
Garlic clove=蒜瓣
|
Garlic clove=蒜瓣
|
||||||
Garlic=大蒜
|
Garlic=大蒜
|
||||||
Garlic Braid=蒜辫
|
Garlic Braid=蒜辫
|
||||||
Grapes=葡萄
|
Grapes=葡萄
|
||||||
Trellis (place on soil before planting grapes)=棚架(种植葡萄前先放在土壤上)
|
Trellis (place on soil before planting grapes)=棚架(种植葡萄前先放在土壤上)
|
||||||
Hemp Seed=大麻籽
|
Hemp Seed=大麻籽
|
||||||
Hemp Leaf=大麻叶
|
Hemp Leaf=大麻叶
|
||||||
Bottle of Hemp Oil=一瓶大麻油
|
Bottle of Hemp Oil=一瓶大麻油
|
||||||
Hemp Fibre=大麻纤维
|
Hemp Fibre=大麻纤维
|
||||||
Hemp Block=麻块
|
Hemp Block=麻块
|
||||||
Hemp Rope=麻绳
|
Hemp Rope=麻绳
|
||||||
Melon Slice=西瓜片
|
Melon Slice=西瓜片
|
||||||
Melon=甜瓜
|
Melon=甜瓜
|
||||||
Onion=洋葱
|
Onion=洋葱
|
||||||
Pea Pod=豌豆荚
|
Pea Pod=豌豆荚
|
||||||
Peas=豌豆
|
Peas=豌豆
|
||||||
Pea Soup=豌豆汤
|
Pea Soup=豌豆汤
|
||||||
Peppercorn=胡椒粉
|
Peppercorn=胡椒粉
|
||||||
Pepper=胡椒粉
|
Pepper=胡椒粉
|
||||||
Ground Pepper=胡椒粉
|
Ground Pepper=胡椒粉
|
||||||
Pineapple Top=菠萝上衣
|
Pineapple Top=菠萝上衣
|
||||||
Pineapple=菠萝
|
Pineapple=菠萝
|
||||||
Pineapple Ring=菠萝圈
|
Pineapple Ring=菠萝圈
|
||||||
Pineapple Juice=菠萝汁
|
Pineapple Juice=菠萝汁
|
||||||
Potato=土豆
|
Potato=土豆
|
||||||
Baked Potato=焗马铃薯
|
Baked Potato=焗马铃薯
|
||||||
Cucumber and Potato Salad=黄瓜土豆沙拉
|
Cucumber and Potato Salad=黄瓜土豆沙拉
|
||||||
Pumpkin Slice=南瓜片
|
Pumpkin Slice=南瓜片
|
||||||
Jack 'O Lantern (punch to turn on and off)=杰克灯(按一下开关)
|
Jack 'O Lantern (punch to turn on and off)=杰克灯(按一下开关)
|
||||||
Scarecrow Bottom=稻草人屁股
|
Scarecrow Bottom=稻草人屁股
|
||||||
Pumpkin Bread=南瓜面包
|
Pumpkin Bread=南瓜面包
|
||||||
Pumpkin Dough=南瓜面团
|
Pumpkin Dough=南瓜面团
|
||||||
Pumpkin=南瓜
|
Pumpkin=南瓜
|
||||||
Raspberries=覆盆子
|
Raspberries=覆盆子
|
||||||
Raspberry Smoothie=覆盆子冰沙
|
Raspberry Smoothie=覆盆子冰沙
|
||||||
Rhubarb=大黄
|
Rhubarb=大黄
|
||||||
Rhubarb Pie=大黄派
|
Rhubarb Pie=大黄派
|
||||||
Rye=黑麦
|
Rye=黑麦
|
||||||
Rye seed=黑麦种子
|
Rye seed=黑麦种子
|
||||||
Oat=燕麦
|
Oat=燕麦
|
||||||
Oat seed=燕麦籽
|
Oat seed=燕麦籽
|
||||||
Rice=大米
|
Rice=大米
|
||||||
Rice grains=稻谷
|
Rice grains=稻谷
|
||||||
Rice Bread=米饭面包
|
Rice Bread=米饭面包
|
||||||
Rice Flour=米粉
|
Rice Flour=米粉
|
||||||
Multigrain Flour=多粒面粉
|
Multigrain Flour=多粒面粉
|
||||||
Multigrain Bread=杂粮面包
|
Multigrain Bread=杂粮面包
|
||||||
Tomato=番茄
|
Tomato=番茄
|
||||||
Wheat Seed=小麦种子
|
Wheat Seed=小麦种子
|
||||||
Wheat=小麦
|
Wheat=小麦
|
||||||
Straw=稻草
|
Straw=稻草
|
||||||
Flour=面粉
|
Flour=面粉
|
||||||
Bread=面包
|
Bread=面包
|
||||||
Sliced Bread=切片面包
|
Sliced Bread=切片面包
|
||||||
Toast=烤面包片
|
Toast=烤面包片
|
||||||
Toast Sandwich=三明治面包
|
Toast Sandwich=三明治面包
|
||||||
|
BIN
textures/farming_salt_crystal.png
Normal file
BIN
textures/farming_salt_crystal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 175 B |
Loading…
Reference in New Issue
Block a user