Compare commits
55 Commits
62b83f71a4
...
d087d639b8
Author | SHA1 | Date | |
---|---|---|---|
d087d639b8 | |||
f8533c415b | |||
3949775d29 | |||
1064ebaf04 | |||
23d12c3c8c | |||
7666044598 | |||
942d6eafba | |||
2e2cd77184 | |||
9b6a055534 | |||
2277932cd4 | |||
328e8b3223 | |||
361e006b56 | |||
a30d889e4d | |||
48951090c0 | |||
f5a82f1478 | |||
36838a8acc | |||
95ba853872 | |||
3246f11594 | |||
a5ea92bdd3 | |||
e6994235c5 | |||
756b4417ea | |||
70803f8aef | |||
dc392e8adc | |||
9a08e2978a | |||
787b7b3396 | |||
9440fe2e5a | |||
dedc33cc46 | |||
ebb5f98fae | |||
275214ea62 | |||
4c6b062f98 | |||
4b033fed83 | |||
847a9a4527 | |||
f1d52b4aef | |||
9866b219bc | |||
5b9bd1e6d6 | |||
9fa818c1aa | |||
113fac2647 | |||
06a92e93c0 | |||
81293a2f94 | |||
13df43deeb | |||
ea59a8acdb | |||
2c758348e3 | |||
c75be65326 | |||
e0340ce2cf | |||
584ab76fb5 | |||
47985d7dd2 | |||
cd30901b68 | |||
8f2c41abe9 | |||
675b30dc76 | |||
7a99786e6d | |||
3cbc4fe48e | |||
59743d747f | |||
79035d0473 | |||
c8284b6410 | |||
41356a32e2 |
@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t
|
||||
|
||||
### 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, vanilla and sunflowers (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
|
||||
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
|
||||
|
@ -15,13 +15,6 @@ minetest.override_item("default:apple", {
|
||||
leafdecay = 3, leafdecay_drop = 1}
|
||||
})
|
||||
|
||||
if minetest.registered_nodes["flowers:mushroom_brown"] then
|
||||
minetest.override_item("flowers:mushroom_brown", {
|
||||
light_source = 1,
|
||||
groups = {food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 2}
|
||||
})
|
||||
end
|
||||
|
||||
--= Aliases
|
||||
|
||||
-- Banana
|
||||
@ -33,9 +26,9 @@ else
|
||||
minetest.register_node(":ethereal:banana", {
|
||||
description = S("Banana"),
|
||||
drawtype = "torchlike",
|
||||
tiles = {"banana_single.png"},
|
||||
inventory_image = "banana_single.png",
|
||||
wield_image = "banana_single.png",
|
||||
tiles = {"farming_banana_single.png"},
|
||||
inventory_image = "farming_banana_single.png",
|
||||
wield_image = "farming_banana_single.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
@ -50,9 +43,9 @@ else
|
||||
|
||||
minetest.register_node(":ethereal:bananaleaves", {
|
||||
description = S("Banana Leaves"),
|
||||
tiles = {"banana_leaf.png"},
|
||||
inventory_image = "banana_leaf.png",
|
||||
wield_image = "banana_leaf.png",
|
||||
tiles = {"farming_banana_leaf.png"},
|
||||
inventory_image = "farming_banana_leaf.png",
|
||||
wield_image = "farming_banana_leaf.png",
|
||||
paramtype = "light",
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
@ -148,8 +141,8 @@ if eth then
|
||||
else
|
||||
minetest.register_craftitem(":ethereal:strawberry", {
|
||||
description = S("Strawberry"),
|
||||
inventory_image = "strawberry.png",
|
||||
wield_image = "strawberry.png",
|
||||
inventory_image = "farming_strawberry.png",
|
||||
wield_image = "farming_strawberry.png",
|
||||
groups = {food_strawberry = 1, flammable = 2},
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
64
crops/artichoke.lua
Normal file
@ -0,0 +1,64 @@
|
||||
local S = farming.intllib
|
||||
|
||||
-- item definition
|
||||
minetest.register_craftitem("farming:artichoke", {
|
||||
description = S("Artichoke"),
|
||||
inventory_image = "farming_artichoke.png",
|
||||
groups = {seed = 2, food_artichoke = 1, flammable = 2},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:artichoke_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(4)
|
||||
})
|
||||
|
||||
-- crop definition
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_artichoke_1.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
not_in_creative_inventory = 1, growing = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:artichoke_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
def.tiles = {"farming_artichoke_2.png"}
|
||||
minetest.register_node("farming:artichoke_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
def.tiles = {"farming_artichoke_3.png"}
|
||||
minetest.register_node("farming:artichoke_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
def.tiles = {"farming_artichoke_4.png"}
|
||||
minetest.register_node("farming:artichoke_4", table.copy(def))
|
||||
|
||||
-- stage 5 (final)
|
||||
def.tiles = {"farming_artichoke_5.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:artichoke 2"}, rarity = 1},
|
||||
{items = {"farming:artichoke"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:artichoke_5", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:artichoke"] = {
|
||||
crop = "farming:artichoke",
|
||||
seed = "farming:artichoke",
|
||||
minlight = 13,
|
||||
maxlight = 15,
|
||||
steps = 5
|
||||
}
|
@ -28,11 +28,10 @@ minetest.register_craftitem("farming:barley", {
|
||||
|
||||
-- flour
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:flour",
|
||||
recipe = {
|
||||
"farming:barley", "farming:barley", "farming:barley",
|
||||
"farming:barley", "farming:mortar_pestle"
|
||||
{"farming:barley", "farming:barley", "farming:barley"},
|
||||
{"farming:barley", "farming:mortar_pestle", ""}
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
@ -81,9 +81,7 @@ minetest.register_craftitem("farming:beans", {
|
||||
-- beans can be used for green dye
|
||||
minetest.register_craft({
|
||||
output = "dye:green",
|
||||
recipe = {
|
||||
{"farming:beans"}
|
||||
}
|
||||
recipe = {{"farming:beans"}}
|
||||
})
|
||||
|
||||
-- beanpole
|
||||
|
@ -21,20 +21,17 @@ minetest.register_craftitem("farming:beetroot_soup", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:beetroot_soup",
|
||||
recipe = {
|
||||
"group:food_beetroot", "group:food_beetroot",
|
||||
"group:food_beetroot", "group:food_beetroot",
|
||||
"group:food_beetroot", "group:food_beetroot","group:food_bowl"
|
||||
{"group:food_beetroot", "group:food_beetroot", "group:food_beetroot"},
|
||||
{"group:food_beetroot", "group:food_bowl", "group:food_beetroot"}
|
||||
}
|
||||
})
|
||||
|
||||
-- red dye
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dye:red",
|
||||
recipe = {"group:food_beetroot"}
|
||||
recipe = {{"group:food_beetroot"}}
|
||||
})
|
||||
|
||||
local def = {
|
||||
|
@ -36,10 +36,9 @@ minetest.register_craftitem("farming:blueberry_pie", {
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:blueberry_pie",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_flour", "group:food_sugar",
|
||||
"group:food_blueberries", "group:food_baking_tray"
|
||||
{"group:food_flour", "group:food_sugar", "group:food_blueberries"},
|
||||
{"group:food_baking_tray", "", ""}
|
||||
},
|
||||
replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
|
||||
})
|
||||
@ -79,7 +78,7 @@ def.drop = {
|
||||
items = {
|
||||
{items = {"farming:blueberries 2"}, rarity = 1},
|
||||
{items = {"farming:blueberries"}, rarity = 2},
|
||||
{items = {"farming:blueberries"}, rarity = 3},
|
||||
{items = {"farming:blueberries"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:blueberry_4", table.copy(def))
|
||||
|
@ -27,9 +27,10 @@ minetest.register_craftitem("farming:carrot_juice", {
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:carrot_juice",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"vessels:drinking_glass", "group:food_carrot", "farming:juicer"
|
||||
{"group:food_carrot"},
|
||||
{"farming:juicer"},
|
||||
{"vessels:drinking_glass"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
|
@ -20,20 +20,17 @@ minetest.register_craftitem("farming:chili_bowl", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:chili_bowl",
|
||||
recipe = {
|
||||
"group:food_chili_pepper", "group:food_barley",
|
||||
"group:food_tomato", "group:food_beans", "group:food_bowl"
|
||||
{"group:food_chili_pepper", "group:food_rice", "group:food_tomato"},
|
||||
{"group:food_beans", "group:food_bowl", ""}
|
||||
}
|
||||
})
|
||||
|
||||
-- chili can be used for red dye
|
||||
minetest.register_craft({
|
||||
output = "dye:red",
|
||||
recipe = {
|
||||
{"farming:chili_pepper"}
|
||||
}
|
||||
recipe = {{"farming:chili_pepper"}}
|
||||
})
|
||||
|
||||
-- chili definition
|
||||
|
@ -75,9 +75,7 @@ minetest.register_craftitem("farming:cocoa_beans", {
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "dye:brown 2",
|
||||
recipe = {
|
||||
{ "farming:cocoa_beans" }
|
||||
}
|
||||
recipe = {{"farming:cocoa_beans"}}
|
||||
})
|
||||
|
||||
-- chocolate cookie
|
||||
@ -128,9 +126,7 @@ minetest.register_craft({
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:chocolate_dark 9",
|
||||
recipe = {
|
||||
{"farming:chocolate_block"}
|
||||
}
|
||||
recipe = {{"farming:chocolate_block"}}
|
||||
})
|
||||
|
||||
-- cocoa definition
|
||||
@ -139,15 +135,11 @@ local def = {
|
||||
tiles = {"farming_cocoa_1.png"},
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"farming:cocoa_beans 1"}, rarity = 2},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
||||
},
|
||||
drop = {},
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, growing = 1,
|
||||
not_in_creative_inventory = 1, leafdecay = 1, leafdecay_drop = 1
|
||||
|
@ -34,10 +34,10 @@ minetest.register_alias("farming:drinking_cup", "vessels:drinking_glass")
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "farming:coffee_cup",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"vessels:drinking_glass", "group:food_coffee",
|
||||
"group:water_bucket", "group:food_saucepan"},
|
||||
{"group:food_saucepan", "group:food_coffee", "group:water_bucket"},
|
||||
{"", "vessels:drinking_glass", ""}
|
||||
},
|
||||
replacements = {
|
||||
{"group:water_bucket", "bucket:bucket_empty"},
|
||||
{"group:food_saucepan", "farming:saucepan"}
|
||||
@ -47,10 +47,10 @@ minetest.register_craft( {
|
||||
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"},
|
||||
{"group:food_saucepan", "group:food_coffee", "group:water_bucket_wooden"},
|
||||
{"", "vessels:drinking_glass", ""}
|
||||
},
|
||||
replacements = {
|
||||
{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"},
|
||||
{"group:food_saucepan", "farming:saucepan"}
|
||||
|
@ -32,11 +32,30 @@ minetest.register_craft({
|
||||
recipe = "group:food_corn"
|
||||
})
|
||||
|
||||
-- popcorn
|
||||
minetest.register_craftitem("farming:popcorn", {
|
||||
description = S("Popcorn"),
|
||||
inventory_image = "farming_popcorn.png",
|
||||
groups = {food_popcorn = 1, flammable = 2},
|
||||
on_use = minetest.item_eat(4)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:popcorn",
|
||||
recipe = {
|
||||
{"group:food_pot", "group:food_oil", "group:food_corn"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_pot", "farming:pot"},
|
||||
{"group:food_oil", "vessels:glass_bottle"}
|
||||
}
|
||||
})
|
||||
|
||||
-- cornstarch
|
||||
minetest.register_craftitem("farming:cornstarch", {
|
||||
description = S("Cornstarch"),
|
||||
inventory_image = "farming_cornstarch.png",
|
||||
groups = {food_cornstarch = 1, flammable = 2}
|
||||
groups = {food_cornstarch = 1, food_gelatin = 1, food_flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -47,7 +66,7 @@ minetest.register_craft({
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_mortar_pestle", "farming:mortar_pestle"},
|
||||
{"group:food_baking_tray", "farming:baking_tray"},
|
||||
{"group:food_baking_tray", "farming:baking_tray"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -72,9 +91,9 @@ minetest.register_node("farming:bottle_ethanol", {
|
||||
minetest.register_craft( {
|
||||
output = "farming:bottle_ethanol",
|
||||
recipe = {
|
||||
{ "vessels:glass_bottle", "group:food_corn", "group:food_corn"},
|
||||
{ "group:food_corn", "group:food_corn", "group:food_corn"},
|
||||
{ "group:food_corn", "group:food_corn", "group:food_corn"}
|
||||
{"group:food_corn", "group:food_corn", "group:food_corn"},
|
||||
{"group:food_corn", "vessels:glass_bottle", "group:food_corn"},
|
||||
{"group:food_corn", "group:food_corn", "group:food_corn"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -82,7 +101,7 @@ minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:bottle_ethanol",
|
||||
burntime = 80,
|
||||
replacements = {{ "farming:bottle_ethanol", "vessels:glass_bottle"}}
|
||||
replacements = {{"farming:bottle_ethanol", "vessels:glass_bottle"}}
|
||||
})
|
||||
|
||||
-- corn definition
|
||||
|
@ -46,6 +46,7 @@ minetest.register_node("farming:garlic_braid", {
|
||||
inventory_image = "crops_garlic_braid.png",
|
||||
wield_image = "crops_garlic_braid.png",
|
||||
drawtype = "nodebox",
|
||||
use_texture_alpha = "clip",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {
|
||||
|
@ -76,9 +76,7 @@ minetest.register_craftitem("farming:grapes", {
|
||||
-- grapes can be used for violet dye
|
||||
minetest.register_craft({
|
||||
output = "dye:violet",
|
||||
recipe = {
|
||||
{"farming:grapes"}
|
||||
}
|
||||
recipe = {{"farming:grapes"}}
|
||||
})
|
||||
|
||||
-- trellis
|
||||
|
@ -65,7 +65,7 @@ minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:hemp_oil",
|
||||
burntime = 20,
|
||||
replacements = {{ "farming:hemp_oil", "vessels:glass_bottle"}}
|
||||
replacements = {{"farming:hemp_oil", "vessels:glass_bottle"}}
|
||||
})
|
||||
|
||||
-- hemp fibre
|
||||
|
@ -48,7 +48,7 @@ def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {'farming:lettuce 2'}, rarity = 1},
|
||||
{items = {'farming:lettuce 1'}, rarity = 2},
|
||||
{items = {'farming:lettuce 1'}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:lettuce_5", table.copy(def))
|
||||
|
@ -21,9 +21,8 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:melon_slice 4",
|
||||
recipe = {"farming:melon_8", "farming:cutting_board"},
|
||||
recipe = {{"farming:cutting_board", "farming:melon_8"}},
|
||||
replacements = {{"farming:cutting_board", "farming:cutting_board"}}
|
||||
})
|
||||
|
||||
@ -72,17 +71,22 @@ def.tiles = {"farming_melon_7.png"}
|
||||
minetest.register_node("farming:melon_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
def.drawtype = "nodebox"
|
||||
def.description = S("Melon")
|
||||
def.tiles = {"farming_melon_top.png", "farming_melon_top.png", "farming_melon_side.png"}
|
||||
def.selection_box = {-.5, -.5, -.5, .5, .5, .5}
|
||||
def.walkable = true
|
||||
def.groups = {
|
||||
minetest.register_node("farming:melon_8", {
|
||||
description = S("Melon"),
|
||||
tiles = {
|
||||
"farming_melon_top.png",
|
||||
"farming_melon_bottom.png",
|
||||
"farming_melon_side.png"
|
||||
},
|
||||
groups = {
|
||||
food_melon = 1, snappy = 2, oddly_breakable_by_hand = 1,
|
||||
flammable = 2, plant = 1
|
||||
}
|
||||
def.drop = "farming:melon_8"
|
||||
minetest.register_node("farming:melon_8", table.copy(def))
|
||||
},
|
||||
drop = "farming:melon_8",
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:melon"] = {
|
||||
|
@ -29,11 +29,9 @@ minetest.register_craftitem("farming:mint_tea", {
|
||||
|
||||
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"
|
||||
{"group:food_mint", "group:food_mint", "group:food_mint"},
|
||||
{"group:water_bucket", "farming:juicer", "vessels:drinking_glass"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"},
|
||||
@ -44,11 +42,9 @@ minetest.register_craft({
|
||||
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"
|
||||
{"group:food_mint", "group:food_mint", "group:food_mint"},
|
||||
{"group:water_bucket_wooden", "farming:juicer", "vessels:drinking_glass"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"},
|
||||
@ -92,7 +88,7 @@ def.drop = {
|
||||
{items = {"farming:mint_leaf 2"}, rarity = 1},
|
||||
{items = {"farming:mint_leaf 2"}, rarity = 2},
|
||||
{items = {"farming:seed_mint 1"}, rarity = 1},
|
||||
{items = {"farming:seed_mint 2"}, rarity = 2},
|
||||
{items = {"farming:seed_mint 2"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:mint_4", table.copy(def))
|
||||
|
@ -27,12 +27,11 @@ minetest.register_craftitem("farming:onion_soup", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:onion_soup",
|
||||
recipe = {
|
||||
"group:food_onion", "group:food_onion", "group:food_pot",
|
||||
"group:food_onion", "group:food_onion",
|
||||
"group:food_onion", "group:food_onion", "group:food_bowl"
|
||||
{"group:food_onion", "group:food_onion", "group:food_onion"},
|
||||
{"group:food_onion", "group:food_pot", "group:food_onion"},
|
||||
{"", "group:food_bowl", ""}
|
||||
},
|
||||
replacements = {{"farming:pot", "farming:pot"}}
|
||||
})
|
||||
@ -81,7 +80,7 @@ def.drop = {
|
||||
{items = {"farming:onion"}, rarity = 1},
|
||||
{items = {"farming:onion"}, rarity = 2},
|
||||
{items = {"farming:onion"}, rarity = 2},
|
||||
{items = {"farming:onion"}, rarity = 5},
|
||||
{items = {"farming:onion"}, rarity = 5}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:onion_5", table.copy(def))
|
||||
|
56
crops/parsley.lua
Normal file
@ -0,0 +1,56 @@
|
||||
local S = farming.intllib
|
||||
|
||||
-- item definition
|
||||
minetest.register_craftitem("farming:parsley", {
|
||||
description = S("Parsley"),
|
||||
inventory_image = "farming_parsley.png",
|
||||
groups = {seed = 2, food_parsley = 1, flammable = 2},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:parsley_1")
|
||||
end
|
||||
})
|
||||
|
||||
-- crop definition
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_parsley_1.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
not_in_creative_inventory = 1, growing = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:parsley_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
def.tiles = {"farming_parsley_2.png"}
|
||||
minetest.register_node("farming:parsley_2", table.copy(def))
|
||||
|
||||
-- stage 3 (final)
|
||||
def.tiles = {"farming_parsley_3.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:parsley 2"}, rarity = 1},
|
||||
{items = {"farming:parsley"}, rarity = 2},
|
||||
{items = {"farming:parsley"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:parsley_3", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:parsley"] = {
|
||||
crop = "farming:parsley",
|
||||
seed = "farming:parsley",
|
||||
minlight = 13,
|
||||
maxlight = 15,
|
||||
steps = 3
|
||||
}
|
@ -21,9 +21,8 @@ minetest.register_craftitem("farming:peas", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:peas",
|
||||
recipe = {"farming:pea_pod"}
|
||||
recipe = {{"farming:pea_pod"}}
|
||||
})
|
||||
|
||||
-- pea soup
|
||||
@ -35,9 +34,12 @@ minetest.register_craftitem("farming:pea_soup", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:pea_soup",
|
||||
recipe = {"group:food_peas", "group:food_peas", "group:food_bowl"}
|
||||
recipe = {
|
||||
{"group:food_peas"},
|
||||
{"group:food_peas"},
|
||||
{"group:food_bowl"}
|
||||
}
|
||||
})
|
||||
|
||||
local def = {
|
||||
|
@ -30,7 +30,7 @@ minetest.register_craftitem("farming:pepper_yellow", {
|
||||
description = S("Yellow Pepper"),
|
||||
inventory_image = "crops_pepper_yellow.png",
|
||||
on_use = minetest.item_eat(3),
|
||||
groups = {food_pepper = 1, flammable = 3},
|
||||
groups = {food_pepper = 1, flammable = 3}
|
||||
})
|
||||
|
||||
-- red pepper
|
||||
@ -38,13 +38,12 @@ minetest.register_craftitem("farming:pepper_red", {
|
||||
description = S("Red Pepper"),
|
||||
inventory_image = "crops_pepper_red.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
groups = {food_pepper = 1, flammable = 3},
|
||||
groups = {food_pepper = 1, flammable = 3}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:peppercorn",
|
||||
recipe = {"group:food_pepper"}
|
||||
recipe = {{"group:food_pepper"}}
|
||||
})
|
||||
|
||||
-- ground pepper
|
||||
@ -69,8 +68,11 @@ minetest.register_node("farming:pepper_ground", {
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "farming:pepper_ground",
|
||||
type = "shapeless",
|
||||
recipe = {"group:food_peppercorn", "vessels:glass_bottle", "farming:mortar_pestle"},
|
||||
recipe = {
|
||||
{"group:food_peppercorn"},
|
||||
{"farming:mortar_pestle"},
|
||||
{"vessels:glass_bottle"}
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
@ -124,9 +126,9 @@ minetest.register_node("farming:pepper_5", table.copy(def))
|
||||
def.tiles = {"crops_pepper_plant_6.png"}
|
||||
def.drop = {
|
||||
max_items = 2, items = {
|
||||
{items = {'farming:pepper_yellow 2'}, rarity = 1},
|
||||
{items = {'farming:pepper_yellow'}, rarity = 2},
|
||||
{items = {'farming:pepper_yellow'}, rarity = 3},
|
||||
{items = {"farming:pepper_yellow 2"}, rarity = 1},
|
||||
{items = {"farming:pepper_yellow"}, rarity = 2},
|
||||
{items = {"farming:pepper_yellow"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:pepper_6", table.copy(def))
|
||||
@ -136,9 +138,9 @@ def.tiles = {"crops_pepper_plant_7.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
max_items = 2, items = {
|
||||
{items = {'farming:pepper_red 2'}, rarity = 1},
|
||||
{items = {'farming:pepper_red'}, rarity = 2},
|
||||
{items = {'farming:pepper_red'}, rarity = 3},
|
||||
{items = {"farming:pepper_red 2"}, rarity = 1},
|
||||
{items = {"farming:pepper_red"}, rarity = 2},
|
||||
{items = {"farming:pepper_red"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:pepper_7", table.copy(def))
|
||||
|
@ -38,8 +38,7 @@ minetest.register_craftitem("farming:pineapple_ring", {
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "farming:pineapple_ring 5",
|
||||
type = "shapeless",
|
||||
recipe = {"group:food_pineapple"},
|
||||
recipe = {{"group:food_pineapple"}},
|
||||
replacements = {{"farming:pineapple", "farming:pineapple_top"}}
|
||||
})
|
||||
|
||||
@ -53,11 +52,12 @@ minetest.register_craftitem("farming:pineapple_juice", {
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pineapple_juice",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"vessels:drinking_glass", "group:food_pineapple_ring",
|
||||
"group:food_pineapple_ring", "group:food_pineapple_ring",
|
||||
"farming:juicer"},
|
||||
{"group:food_pineapple_ring", "group:food_pineapple_ring",
|
||||
"group:food_pineapple_ring"},
|
||||
{"", "farming:juicer", ""},
|
||||
{"", "vessels:drinking_glass", ""}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
}
|
||||
@ -65,10 +65,10 @@ minetest.register_craft({
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pineapple_juice 2",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"vessels:drinking_glass", "vessels:drinking_glass",
|
||||
"group:food_pineapple", "farming:juicer"
|
||||
{"group:food_pineapple", ""},
|
||||
{"farming:juicer", ""},
|
||||
{"vessels:drinking_glass", "vessels:drinking_glass"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
|
@ -25,9 +25,8 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:pumpkin_slice 4",
|
||||
recipe = {"farming:pumpkin", "farming:cutting_board"},
|
||||
recipe = {{"farming:cutting_board", "farming:pumpkin"}},
|
||||
replacements = {{"farming:cutting_board", "farming:cutting_board"}}
|
||||
})
|
||||
|
||||
@ -122,8 +121,9 @@ minetest.register_craftitem("farming:pumpkin_dough", {
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pumpkin_dough",
|
||||
type = "shapeless",
|
||||
recipe = {"group:food_flour", "group:food_pumpkin_slice", "group:food_pumpkin_slice"}
|
||||
recipe = {
|
||||
{"group:food_pumpkin_slice", "group:food_flour", "group:food_pumpkin_slice"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -183,7 +183,7 @@ minetest.register_node("farming:pumpkin_8", {
|
||||
description = S("Pumpkin"),
|
||||
tiles = {
|
||||
"farming_pumpkin_top.png",
|
||||
"farming_pumpkin_top.png",
|
||||
"farming_pumpkin_bottom.png",
|
||||
"farming_pumpkin_side.png"
|
||||
},
|
||||
groups = {
|
||||
@ -191,7 +191,9 @@ minetest.register_node("farming:pumpkin_8", {
|
||||
flammable = 2, plant = 1
|
||||
},
|
||||
drop = "farming:pumpkin_8",
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.register_alias("farming:pumpkin", "farming:pumpkin_8")
|
||||
|
@ -45,7 +45,7 @@ local def = {
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
minlight = 10,
|
||||
maxlight = 12,
|
||||
maxlight = 12
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
|
@ -18,12 +18,15 @@ minetest.override_item("farming:rye", {
|
||||
groups = {food_rye = 1, flammable = 4}
|
||||
})
|
||||
|
||||
minetest.override_item("farming:rye_1", {drop = {}})
|
||||
minetest.override_item("farming:rye_2", {drop = {}})
|
||||
minetest.override_item("farming:rye_3", {drop = {}})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:flour",
|
||||
recipe = {
|
||||
"farming:rye", "farming:rye", "farming:rye", "farming:rye",
|
||||
"farming:mortar_pestle"
|
||||
{"farming:rye", "farming:rye", "farming:rye"},
|
||||
{"farming:rye", "farming:mortar_pestle", ""}
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
@ -43,12 +46,15 @@ minetest.override_item("farming:oat", {
|
||||
groups = {food_oats = 1, flammable = 4}
|
||||
})
|
||||
|
||||
minetest.override_item("farming:oat_1", {drop = {}})
|
||||
minetest.override_item("farming:oat_2", {drop = {}})
|
||||
minetest.override_item("farming:oat_3", {drop = {}})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:flour",
|
||||
recipe = {
|
||||
"farming:oat", "farming:oat", "farming:oat", "farming:oat",
|
||||
"farming:mortar_pestle"
|
||||
{"farming:oat", "farming:oat", "farming:oat"},
|
||||
{"farming:oat", "farming:mortar_pestle", ""}
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
@ -68,6 +74,10 @@ minetest.override_item("farming:rice", {
|
||||
groups = {food_rice = 1, flammable = 4}
|
||||
})
|
||||
|
||||
minetest.override_item("farming:rice_1", {drop = {}})
|
||||
minetest.override_item("farming:rice_2", {drop = {}})
|
||||
minetest.override_item("farming:rice_3", {drop = {}})
|
||||
|
||||
minetest.register_craftitem("farming:rice_bread", {
|
||||
description = S("Rice Bread"),
|
||||
inventory_image = "farming_rice_bread.png",
|
||||
@ -82,11 +92,10 @@ minetest.register_craftitem("farming:rice_flour", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:rice_flour",
|
||||
recipe = {
|
||||
"farming:rice", "farming:rice", "farming:rice", "farming:rice",
|
||||
"farming:mortar_pestle"
|
||||
{"farming:rice", "farming:rice", "farming:rice"},
|
||||
{"farming:rice", "farming:mortar_pestle", ""}
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
@ -19,9 +19,42 @@ minetest.register_craftitem("farming:soy_beans", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:soy_beans",
|
||||
recipe = {"farming:soy_pod"}
|
||||
recipe = {{"farming:soy_pod"}}
|
||||
})
|
||||
|
||||
-- soy sauce
|
||||
minetest.register_node("farming:soy_sauce", {
|
||||
description = S("Soy Sauce"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_soy_sauce.png"},
|
||||
inventory_image = "farming_soy_sauce.png",
|
||||
wield_image = "farming_soy_sauce.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
||||
},
|
||||
groups = {
|
||||
vessel = 1, food_soy_sauce = 1, dig_immediate = 3, attached_node = 1
|
||||
},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
|
||||
-- soy sauce recipe
|
||||
minetest.register_craft( {
|
||||
output = "farming:soy_sauce",
|
||||
recipe = {
|
||||
{"group:food_soy", "group:food_salt", "group:food_soy"},
|
||||
{"", "group:food_juicer", ""},
|
||||
{"", "bucket:bucket_water", "vessels:glass_bottle"}
|
||||
},
|
||||
replacements = {
|
||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
}
|
||||
})
|
||||
|
||||
-- soy milk
|
||||
@ -46,11 +79,10 @@ minetest.register_node("farming:soy_milk", {
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "farming:soy_milk",
|
||||
recipe = {
|
||||
"group:food_soy", "group:food_soy", "group:food_soy",
|
||||
"farming:vanilla_extract", "bucket:bucket_water", "vessels:drinking_glass"
|
||||
{"group:food_soy", "group:food_soy", "group:food_soy"},
|
||||
{"farming:vanilla_extract", "bucket:bucket_water", "vessels:drinking_glass"}
|
||||
},
|
||||
replacements = {
|
||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
||||
@ -68,10 +100,9 @@ minetest.register_craftitem("farming:tofu", {
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:tofu",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"farming:baking_tray", "group:food_soy", "group:food_soy",
|
||||
"group:food_soy", "group:food_soy", "group:food_soy",
|
||||
{"farming:baking_tray", "group:food_soy", "group:food_soy"},
|
||||
{"group:food_soy", "group:food_soy", "group:food_soy"}
|
||||
},
|
||||
replacements = {{"farming:baking_tray", "farming:baking_tray"}}
|
||||
})
|
||||
@ -131,7 +162,7 @@ minetest.register_node("farming:soy_4", table.copy(def))
|
||||
def.tiles = {"farming_soy_5.png"}
|
||||
def.drop = {
|
||||
max_items = 1, items = {
|
||||
{items = {'farming:soy_pod'}, rarity = 1},
|
||||
{items = {"farming:soy_pod"}, rarity = 1},
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:soy_5", table.copy(def))
|
||||
@ -140,9 +171,9 @@ minetest.register_node("farming:soy_5", table.copy(def))
|
||||
def.tiles = {"farming_soy_6.png"}
|
||||
def.drop = {
|
||||
max_items = 3, items = {
|
||||
{items = {'farming:soy_pod'}, rarity = 1},
|
||||
{items = {'farming:soy_pod'}, rarity = 2},
|
||||
{items = {'farming:soy_pod'}, rarity = 3},
|
||||
{items = {"farming:soy_pod"}, rarity = 1},
|
||||
{items = {"farming:soy_pod"}, rarity = 2},
|
||||
{items = {"farming:soy_pod"}, rarity = 3},
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:soy_6", table.copy(def))
|
||||
@ -152,11 +183,11 @@ def.tiles = {"farming_soy_7.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
max_items = 5, items = {
|
||||
{items = {'farming:soy_pod'}, rarity = 1},
|
||||
{items = {'farming:soy_pod'}, rarity = 2},
|
||||
{items = {'farming:soy_pod'}, rarity = 3},
|
||||
{items = {'farming:soy_pod'}, rarity = 4},
|
||||
{items = {'farming:soy_pod'}, rarity = 5}
|
||||
{items = {"farming:soy_pod"}, rarity = 1},
|
||||
{items = {"farming:soy_pod"}, rarity = 2},
|
||||
{items = {"farming:soy_pod"}, rarity = 3},
|
||||
{items = {"farming:soy_pod"}, rarity = 4},
|
||||
{items = {"farming:soy_pod"}, rarity = 5}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:soy_7", table.copy(def))
|
||||
|
160
crops/sunflower.lua
Normal file
@ -0,0 +1,160 @@
|
||||
local S = farming.intllib
|
||||
|
||||
-- sunflower
|
||||
minetest.register_craftitem("farming:sunflower", {
|
||||
description = S("Sunflower"),
|
||||
inventory_image = "farming_sunflower.png",
|
||||
groups = {flammable = 2}
|
||||
})
|
||||
|
||||
-- sunflower seeds
|
||||
minetest.register_craftitem("farming:seed_sunflower", {
|
||||
description = S("Sunflower Seeds"),
|
||||
inventory_image = "farming_sunflower_seeds.png",
|
||||
groups = {seed = 2, food_sunflower_seeds = 1, flammable = 2},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:sunflower_1")
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_alias("farming:sunflower_seeds", "farming:seed_sunflower")
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:seed_sunflower 5",
|
||||
recipe = {{"farming:sunflower"}}
|
||||
})
|
||||
|
||||
-- sunflower seeds (toasted)
|
||||
minetest.register_craftitem("farming:sunflower_seeds_toasted", {
|
||||
description = S("Toasted Sunflower Seeds"),
|
||||
inventory_image = "farming_sunflower_seeds_toasted.png",
|
||||
groups = {food_sunflower_seeds_toasted = 1, flammable = 2},
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 10,
|
||||
output = "farming:sunflower_seeds_toasted",
|
||||
recipe = "farming:seed_sunflower"
|
||||
})
|
||||
|
||||
-- sunflower oil
|
||||
minetest.register_node("farming:sunflower_oil", {
|
||||
description = S("Bottle of Sunflower Oil"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_sunflower_oil.png"},
|
||||
inventory_image = "farming_sunflower_oil.png",
|
||||
wield_image = "farming_sunflower_oil.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||
},
|
||||
groups = {
|
||||
food_oil = 1, vessel = 1, dig_immediate = 3, attached_node = 1,
|
||||
flammable = 2
|
||||
},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "farming:sunflower_oil",
|
||||
recipe = {
|
||||
{"group:food_sunflower_seeds", "group:food_sunflower_seeds", "group:food_sunflower_seeds"},
|
||||
{"group:food_sunflower_seeds", "group:food_sunflower_seeds", "group:food_sunflower_seeds"},
|
||||
{"group:food_sunflower_seeds", "vessels:glass_bottle", "group:food_sunflower_seeds"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:sunflower_oil",
|
||||
burntime = 30,
|
||||
replacements = {{"farming:sunflower_oil", "vessels:glass_bottle"}}
|
||||
})
|
||||
|
||||
-- sunflower seed bread
|
||||
minetest.register_craftitem("farming:sunflower_bread", {
|
||||
description = S("Sunflower Seed Bread"),
|
||||
inventory_image = "farming_sunflower_bread.png",
|
||||
on_use = minetest.item_eat(8),
|
||||
groups = {food_bread = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:sunflower_bread", {
|
||||
description = S("Sunflower Bread"),
|
||||
inventory_image = "farming_sunflower_bread.png"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:sunflower_bread",
|
||||
recipe = {{"group:food_sunflower_seeds_toasted", "group:food_bread", "group:food_sunflower_seeds_toasted"}}
|
||||
})
|
||||
|
||||
-- sunflower definition
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_sunflower_1.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
not_in_creative_inventory = 1, growing = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:sunflower_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
def.tiles = {"farming_sunflower_2.png"}
|
||||
minetest.register_node("farming:sunflower_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
def.tiles = {"farming_sunflower_3.png"}
|
||||
minetest.register_node("farming:sunflower_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
def.tiles = {"farming_sunflower_4.png"}
|
||||
minetest.register_node("farming:sunflower_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
def.tiles = {"farming_sunflower_5.png"}
|
||||
minetest.register_node("farming:sunflower_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
def.tiles = {"farming_sunflower_6.png"}
|
||||
def.visual_scale = 1.9
|
||||
minetest.register_node("farming:sunflower_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
def.tiles = {"farming_sunflower_7.png"}
|
||||
minetest.register_node("farming:sunflower_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
def.tiles = {"farming_sunflower_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:sunflower"}, rarity = 1},
|
||||
{items = {"farming:sunflower"}, rarity = 6}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:sunflower_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:sunflower"] = {
|
||||
crop = "farming:sunflower",
|
||||
seed = "farming:seed_sunflower",
|
||||
minlight = 14,
|
||||
maxlight = farming.max_light,
|
||||
steps = 8
|
||||
}
|
@ -17,6 +17,23 @@ minetest.register_craftitem("farming:tomato", {
|
||||
on_use = minetest.item_eat(4)
|
||||
})
|
||||
|
||||
-- tomato soup
|
||||
minetest.register_craftitem("farming:tomato_soup", {
|
||||
description = S("Tomato Soup"),
|
||||
inventory_image = "farming_tomato_soup.png",
|
||||
groups = {flammable = 2},
|
||||
on_use = minetest.item_eat(8, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:tomato_soup",
|
||||
recipe = {
|
||||
{"group:food_tomato"},
|
||||
{"group:food_tomato"},
|
||||
{"group:food_bowl"}
|
||||
}
|
||||
})
|
||||
|
||||
-- tomato definition
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
|
@ -8,7 +8,7 @@ minetest.register_craftitem("farming:vanilla", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:vanilla_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
-- crop definition
|
||||
@ -49,8 +49,8 @@ minetest.register_node("farming:vanilla_extract", {
|
||||
minetest.register_craft( {
|
||||
output = "farming:vanilla_extract",
|
||||
recipe = {
|
||||
{ "group:food_vanilla", "group:food_vanilla", "group:food_vanilla"},
|
||||
{ "group:food_vanilla", "farming:bottle_ethanol", "bucket:bucket_water"},
|
||||
{"group:food_vanilla", "group:food_vanilla", "group:food_vanilla"},
|
||||
{"group:food_vanilla", "farming:bottle_ethanol", "bucket:bucket_water"},
|
||||
},
|
||||
replacements = {
|
||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
||||
@ -61,7 +61,7 @@ minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:vanilla_extract",
|
||||
burntime = 25,
|
||||
replacements = {{ "farming:vanilla_extract", "vessels:glass_bottle" }}
|
||||
replacements = {{"farming:vanilla_extract", "vessels:glass_bottle"}}
|
||||
})
|
||||
|
||||
-- stage 1
|
||||
@ -92,9 +92,9 @@ minetest.register_node("farming:vanilla_6", table.copy(def))
|
||||
def.tiles = {"farming_vanilla_7.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {'farming:vanilla'}, rarity = 1},
|
||||
{items = {'farming:vanilla'}, rarity = 2},
|
||||
{items = {'farming:vanilla'}, rarity = 3}
|
||||
{items = {"farming:vanilla"}, rarity = 1},
|
||||
{items = {"farming:vanilla"}, rarity = 2},
|
||||
{items = {"farming:vanilla"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:vanilla_7", table.copy(def))
|
||||
@ -104,10 +104,10 @@ def.tiles = {"farming_vanilla_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {'farming:vanilla 2'}, rarity = 1},
|
||||
{items = {'farming:vanilla 2'}, rarity = 2},
|
||||
{items = {'farming:vanilla 2'}, rarity = 2},
|
||||
{items = {'farming:vanilla 2'}, rarity = 3}
|
||||
{items = {"farming:vanilla 2"}, rarity = 1},
|
||||
{items = {"farming:vanilla 2"}, rarity = 2},
|
||||
{items = {"farming:vanilla 2"}, rarity = 2},
|
||||
{items = {"farming:vanilla 2"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:vanilla_8", table.copy(def))
|
||||
|
@ -46,9 +46,7 @@ minetest.register_craft({
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:wheat 3",
|
||||
recipe = {
|
||||
{"farming:straw"}
|
||||
}
|
||||
recipe = {{"farming:straw"}}
|
||||
})
|
||||
|
||||
-- check and register stairs
|
||||
@ -80,11 +78,10 @@ minetest.register_craftitem("farming:flour", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:flour",
|
||||
recipe = {
|
||||
"farming:wheat", "farming:wheat", "farming:wheat",
|
||||
"farming:wheat", "farming:mortar_pestle"
|
||||
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
||||
{"farming:wheat", "farming:mortar_pestle", ""}
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
@ -113,9 +110,8 @@ minetest.register_craftitem("farming:bread_slice", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:bread_slice 5",
|
||||
recipe = {"farming:bread", "group:food_cutting_board"},
|
||||
recipe = {{"group:food_cutting_board", "farming:bread"}},
|
||||
replacements = {{"group:food_cutting_board", "farming:cutting_board"}}
|
||||
})
|
||||
|
||||
|
@ -35,6 +35,9 @@ farming.blackberry = 0.002
|
||||
farming.lettuce = 0.001
|
||||
farming.soy = 0.001
|
||||
farming.vanilla = 0.001
|
||||
farming.artichoke = 0.001
|
||||
farming.parsley = 0.002
|
||||
farming.sunflower = 0.001
|
||||
farming.grains = true -- true or false only
|
||||
|
||||
-- default rarety of crops on map (higher number = more crops)
|
||||
|
375
food.lua
@ -1,6 +1,44 @@
|
||||
|
||||
local S = farming.intllib
|
||||
|
||||
--= filter sea water into river water
|
||||
minetest.register_craft({
|
||||
output = "bucket:bucket_river_water",
|
||||
recipe = {
|
||||
{"farming:hemp_fibre"},
|
||||
{"farming:hemp_fibre"},
|
||||
{"bucket:bucket_water"}
|
||||
}
|
||||
})
|
||||
|
||||
--= glass of water
|
||||
|
||||
minetest.register_craftitem("farming:glass_water", {
|
||||
description = S("Glass of Water"),
|
||||
inventory_image = "farming_water_glass.png",
|
||||
groups = {food_water_glass = 1, flammable = 3, vessel = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:glass_water 4",
|
||||
recipe = {
|
||||
{"vessels:drinking_glass", "vessels:drinking_glass"},
|
||||
{"vessels:drinking_glass", "vessels:drinking_glass"},
|
||||
{"bucket:bucket_river_water", ""}
|
||||
},
|
||||
replacements = {{"bucket:bucket_river_water", "bucket:bucket_empty"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:glass_water 4",
|
||||
recipe = {
|
||||
{"vessels:drinking_glass", "vessels:drinking_glass"},
|
||||
{"vessels:drinking_glass", "vessels:drinking_glass"},
|
||||
{"bucket:bucket_water", "farming:hemp_fibre"}
|
||||
},
|
||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
||||
})
|
||||
|
||||
--= Sugar
|
||||
|
||||
minetest.register_craftitem("farming:sugar", {
|
||||
@ -16,6 +54,19 @@ minetest.register_craft({
|
||||
recipe = "default:papyrus"
|
||||
})
|
||||
|
||||
--= Sugar caramel
|
||||
|
||||
minetest.register_craftitem("farming:caramel", {
|
||||
description = S("Caramel"),
|
||||
inventory_image = "farming_caramel.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 6,
|
||||
output = "farming:caramel",
|
||||
recipe = "group:food_sugar",
|
||||
})
|
||||
|
||||
--= Salt
|
||||
|
||||
@ -33,7 +84,48 @@ minetest.register_node("farming:salt", {
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
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({
|
||||
@ -44,6 +136,42 @@ minetest.register_craft({
|
||||
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
|
||||
|
||||
minetest.register_node("farming:rose_water", {
|
||||
@ -105,7 +233,7 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"group:food_gelatin", "group:food_sugar", "group:food_gelatin"},
|
||||
{"group:food_sugar", "group:food_rose_water", "group:food_sugar"},
|
||||
{"group:food_cornstarch", "group:food_sugar", "dye:pink"}
|
||||
{"group:food_sugar", "dye:pink", "group:food_sugar"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_cornstarch", "farming:bowl"},
|
||||
@ -123,9 +251,11 @@ minetest.register_craftitem("farming:garlic_bread", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "farming:garlic_bread",
|
||||
recipe = {"group:food_toast", "group:food_garlic_clove", "group:food_garlic_clove"}
|
||||
recipe = {
|
||||
{"group:food_toast", "group:food_garlic_clove", "group:food_garlic_clove"}
|
||||
}
|
||||
})
|
||||
|
||||
--= Donuts (thanks to Bockwurst for making the donut images)
|
||||
@ -182,11 +312,11 @@ minetest.register_craftitem("farming:porridge", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "farming:porridge",
|
||||
recipe = {
|
||||
"group:food_oats", "group:food_oats", "group:food_oats",
|
||||
"group:food_oats", "group:food_bowl", "group:food_milk_glass"
|
||||
{"group:food_oats", "group:food_oats", "group:food_oats"},
|
||||
{"group:food_oats", "group:food_bowl", "group:food_milk_glass"}
|
||||
},
|
||||
replacements = {
|
||||
{"mobs:glass_milk", "vessels:drinking_glass"},
|
||||
@ -203,12 +333,12 @@ minetest.register_craftitem("farming:jaffa_cake", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "farming:jaffa_cake",
|
||||
recipe = {
|
||||
"farming:baking_tray", "group:food_egg", "group:food_sugar",
|
||||
"group:food_flour", "group:food_cocoa", "group:food_orange",
|
||||
"group:food_milk"
|
||||
{"farming:baking_tray", "group:food_egg", "group:food_sugar"},
|
||||
{"group:food_flour", "group:food_cocoa", "group:food_orange"},
|
||||
{"group:food_milk", "", ""}
|
||||
},
|
||||
replacements = {
|
||||
{"farming:baking_tray", "farming:baking_tray"},
|
||||
@ -226,10 +356,9 @@ minetest.register_craftitem("farming:apple_pie", {
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:apple_pie",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_flour", "group:food_sugar",
|
||||
"group:food_apple", "group:food_baking_tray"
|
||||
{"group:food_flour", "group:food_sugar", "group:food_apple"},
|
||||
{"", "group:food_baking_tray", ""}
|
||||
},
|
||||
replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
|
||||
})
|
||||
@ -254,11 +383,11 @@ minetest.register_craftitem("farming:cactus_juice", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:cactus_juice 2",
|
||||
type = "shapeless",
|
||||
output = "farming:cactus_juice",
|
||||
recipe = {
|
||||
"vessels:drinking_glass", "vessels:drinking_glass",
|
||||
"default:cactus", "farming:juicer"
|
||||
{"default:cactus"},
|
||||
{"farming:juicer"},
|
||||
{"vessels:drinking_glass"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
@ -273,30 +402,24 @@ minetest.register_craftitem("farming:pasta", {
|
||||
groups = {food_pasta = 1}
|
||||
})
|
||||
|
||||
if minetest.get_modpath("mobs_animal") or minetest.get_modpath("xanadu")then
|
||||
minetest.register_craft({
|
||||
output = "farming:pasta",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_flour", "group:food_mixing_bowl",
|
||||
"group:food_butter"
|
||||
{"group:food_flour", "group:food_butter", "group:food_mixing_bowl"}
|
||||
},
|
||||
replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}}
|
||||
})
|
||||
else
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pasta",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_flour", "group:food_mixing_bowl",
|
||||
"group:food_oil"
|
||||
{"group:food_flour", "group:food_oil", "group:food_mixing_bowl"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_mixing_bowl", "farming:mixing_bowl"},
|
||||
{"group:food_oil", "vessels:glass_bottle"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Spaghetti
|
||||
|
||||
@ -308,10 +431,9 @@ minetest.register_craftitem("farming:spaghetti", {
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:spaghetti",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_pasta", "group:food_saucepan",
|
||||
"group:food_tomato", "group:food_garlic_clove", "group:food_garlic_clove"
|
||||
{"group:food_pasta", "group:food_saucepan", "group:food_tomato"},
|
||||
{"group:food_garlic_clove", "group:food_garlic_clove", ""}
|
||||
},
|
||||
replacements = {{"group:food_saucepan", "farming:saucepan"}}
|
||||
})
|
||||
@ -324,18 +446,16 @@ minetest.register_craftitem("farming:bibimbap", {
|
||||
on_use = minetest.item_eat(8, "farming:bowl")
|
||||
})
|
||||
|
||||
if minetest.get_modpath("mobs_animal") or minetest.get_modpath("xanadu")then
|
||||
minetest.register_craft({
|
||||
output = "farming:bibimbap",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_skillet", "group:food_bowl", "group:food_egg", "group:food_rice",
|
||||
"group:food_chicken_raw", "group:food_cabbage", "group:food_carrot",
|
||||
"group:food_chili_pepper"
|
||||
{"group:food_skillet", "group:food_bowl", "group:food_egg"},
|
||||
{"group:food_rice", "group:food_chicken_raw", "group:food_cabbage"},
|
||||
{"group:food_carrot", "group:food_chili_pepper", ""}
|
||||
},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
else
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:bibimbap",
|
||||
type = "shapeless",
|
||||
@ -346,7 +466,6 @@ minetest.register_craft({
|
||||
},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
end
|
||||
|
||||
-- Burger
|
||||
|
||||
@ -357,12 +476,11 @@ minetest.register_craftitem("farming:burger", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:burger",
|
||||
recipe = {
|
||||
"farming:bread", "group:food_meat", "group:food_cheese",
|
||||
"group:food_tomato", "group:food_cucumber", "group:food_onion",
|
||||
"group:food_lettuce"
|
||||
{"farming:bread", "group:food_meat", "group:food_cheese"},
|
||||
{"group:food_tomato", "group:food_cucumber", "group:food_onion"},
|
||||
{"group:food_lettuce", "", ""}
|
||||
}
|
||||
})
|
||||
|
||||
@ -380,7 +498,7 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
"group:food_bowl", "group:food_tomato", "group:food_cucumber",
|
||||
"group:food_lettuce", "group:food_oil"
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
-- Triple Berry Smoothie
|
||||
@ -401,3 +519,176 @@ minetest.register_craft({
|
||||
"vessels:drinking_glass"
|
||||
}
|
||||
})
|
||||
|
||||
-- Patatas a la importancia
|
||||
|
||||
minetest.register_craftitem("farming:spanish_potatoes", {
|
||||
description = S("Spanish Potatoes"),
|
||||
inventory_image = "farming_spanish_potatoes.png",
|
||||
on_use = minetest.item_eat(8, "farming:bowl"),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:spanish_potatoes",
|
||||
recipe = {
|
||||
"farming:potato", "group:food_parsley", "farming:potato",
|
||||
"group:food_egg", "group:food_flour", "farming:onion",
|
||||
"farming:garlic_clove", "group:food_bowl", "group:food_skillet"
|
||||
},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
|
||||
-- Potato omelet
|
||||
|
||||
minetest.register_craftitem("farming:potato_omelet", {
|
||||
description = S("Potato omelet"),
|
||||
inventory_image = "farming_potato_omelet.png",
|
||||
on_use = minetest.item_eat(6, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:potato_omelet",
|
||||
recipe = {
|
||||
"group:food_egg", "farming:potato", "group:food_onion",
|
||||
"group:food_skillet", "group:food_bowl"},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
|
||||
-- Paella
|
||||
|
||||
minetest.register_craftitem("farming:paella", {
|
||||
description = S("Paella"),
|
||||
inventory_image = "farming_paella.png",
|
||||
on_use = minetest.item_eat(8, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:paella",
|
||||
recipe = {
|
||||
"group:food_rice", "dye:orange", "farming:pepper_red",
|
||||
"group:food_peas", "group:food_chicken", "group:food_bowl", "group:food_skillet"
|
||||
},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
|
||||
-- Flan
|
||||
|
||||
minetest.register_craftitem("farming:flan", {
|
||||
description = S("Vanilla Flan"),
|
||||
inventory_image = "farming_vanilla_flan.png",
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:flan",
|
||||
recipe = {
|
||||
{"group:food_sugar", "group:food_milk", "farming:caramel"},
|
||||
{"group:food_egg", "group:food_egg", "farming:vanilla_extract"}
|
||||
},
|
||||
replacements = {
|
||||
{"cucina_vegana:soy_milk", "vessels:drinking_glass"},
|
||||
{"group:food_milk", "bucket:bucket_empty"},
|
||||
{"farming:vanilla_extract", "vessels:glass_bottle"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Vegan Cheese
|
||||
|
||||
minetest.register_craftitem("farming:cheese_vegan", {
|
||||
description = S("Vegan Cheese"),
|
||||
inventory_image = "farming_cheese_vegan.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {food_cheese = 1, flammable = 2}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:cheese_vegan",
|
||||
recipe = {
|
||||
{"farming:soy_milk", "farming:soy_milk", "farming:soy_milk"},
|
||||
{"group:food_salt", "group:food_peppercorn", "farming:bottle_ethanol"},
|
||||
{"group:food_gelatin", "group:food_pot", ""}
|
||||
},
|
||||
replacements = {
|
||||
{"farming:soy_milk", "vessels:drinking_glass 3"},
|
||||
{"farming:pot", "farming:pot"},
|
||||
{"farming:bottle_ethanol", "vessels:glass_bottle"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:cheese_vegan",
|
||||
recipe = {
|
||||
{"farming:soy_milk", "farming:soy_milk", "farming:soy_milk"},
|
||||
{"group:food_salt", "group:food_peppercorn", "group:food_lemon"},
|
||||
{"group:food_gelatin", "group:food_pot", ""}
|
||||
},
|
||||
replacements = {
|
||||
{"farming:soy_milk", "vessels:drinking_glass 3"},
|
||||
{"farming:pot", "farming:pot"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Onigiri
|
||||
|
||||
minetest.register_craftitem("farming:onigiri", {
|
||||
description = S("Onirigi"),
|
||||
inventory_image = "farming_onigiri.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:onigiri",
|
||||
recipe = {
|
||||
{"group:food_rice", "group:food_salt", "group:food_rice"},
|
||||
{"", "group:food_seaweed", ""}
|
||||
}
|
||||
})
|
||||
|
||||
-- Gyoza
|
||||
|
||||
minetest.register_craftitem("farming:gyoza", {
|
||||
description = S("Gyoza"),
|
||||
inventory_image = "farming_gyoza.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
groups = {flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:gyoza 4",
|
||||
recipe = {
|
||||
{"group:food_cabbage", "group:food_garlic_clove", "group:food_onion"},
|
||||
{"group:food_meat_raw", "group:food_salt", "group:food_flour"},
|
||||
{"", "group:food_skillet", ""}
|
||||
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_skillet", "farming:skillet"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Mochi
|
||||
|
||||
minetest.register_craftitem("farming:mochi", {
|
||||
description = S("Mochi"),
|
||||
inventory_image = "farming_mochi.png",
|
||||
on_use = minetest.item_eat(3),
|
||||
groups = {flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:mochi",
|
||||
recipe = {
|
||||
{"group:food_rice", "group:food_sugar", "group:food_rice"},
|
||||
{"", "group:food_mortar_pestle", ""},
|
||||
{"", "farming:glass_water", ""}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_mortar_pestle", "farming:mortar_pestle"},
|
||||
{"farming:glass_water", "vessels:drinking_glass"}
|
||||
}
|
||||
})
|
||||
|
2
hoes.lua
@ -361,7 +361,7 @@ farming.add_to_scythe_not_drops = function(item)
|
||||
end
|
||||
|
||||
minetest.register_tool("farming:scythe_mithril", {
|
||||
description = S("Mithril Scythe (Right-click to harvest and replant crops)"),
|
||||
description = S("Mithril Scythe (Use to harvest and replant crops)"),
|
||||
inventory_image = "farming_scythe_mithril.png",
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
|
||||
|
8
init.lua
@ -7,7 +7,7 @@
|
||||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20201213",
|
||||
version = "20210928",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {
|
||||
type = "fixed",
|
||||
@ -633,6 +633,9 @@ farming.blackberry = 0.002
|
||||
farming.soy = 0.001
|
||||
farming.vanilla = 0.001
|
||||
farming.lettuce = 0.001
|
||||
farming.artichoke = 0.001
|
||||
farming.parsley = 0.002
|
||||
farming.sunflower = 0.001
|
||||
farming.grains = true
|
||||
farming.rarety = 0.002
|
||||
|
||||
@ -703,6 +706,9 @@ ddoo("blackberry.lua", farming.blackberry)
|
||||
ddoo("soy.lua", farming.soy)
|
||||
ddoo("vanilla.lua", farming.vanilla)
|
||||
ddoo("lettuce.lua", farming.lettuce)
|
||||
ddoo("artichoke.lua", farming.artichoke)
|
||||
ddoo("parsley.lua", farming.parsley)
|
||||
ddoo("sunflower.lua", farming.sunflower)
|
||||
|
||||
dofile(farming.path .. "/food.lua")
|
||||
dofile(farming.path .. "/mapgen.lua")
|
||||
|
25
license.txt
@ -63,6 +63,11 @@ Created by VanessaE (License: CC BY 3.0):
|
||||
farming_cotton_7.png
|
||||
farming_cotton_8.png
|
||||
|
||||
Created by 7eventy7 (https://www.planetminecraft.com/member/7eventy7/)
|
||||
farming_melon_top.png
|
||||
farming_melon_side.png
|
||||
farming_melon_bottom.png
|
||||
|
||||
Created by Doc (License: CC BY 3.0):
|
||||
farming_cucumber.png
|
||||
farming_cucumber_1.png
|
||||
@ -155,3 +160,23 @@ Created by Felfa (CC0)
|
||||
farming_burger.png
|
||||
farming_soy*.png
|
||||
farming_vanilla*.png
|
||||
farming_artichoke*.png
|
||||
farming_parsley*.png
|
||||
farming_paella.png
|
||||
farming_potato_omelette.png
|
||||
farming_spanish_potatoes.png
|
||||
farming_vanilla_flan.png
|
||||
farming_sunflower*.png
|
||||
|
||||
Created by gorlock (CC0)
|
||||
farming_salt_crystal.png
|
||||
|
||||
Created by sirrobzeroone (CC0)
|
||||
farming_gyoza.png
|
||||
farming_pineapple_ring.png
|
||||
|
||||
Created by TechM8 (https://www.deviantart.com/techm8)
|
||||
farming_popcorn.png
|
||||
|
||||
Created by RZR0 (CC-BY-NC-SA)
|
||||
farming_blueberry_pie.png
|
||||
|
@ -1,94 +1,94 @@
|
||||
# textdomain:farming
|
||||
#%s Hoe=
|
||||
%s Hoe=%s Hacke
|
||||
Apple Donut=Apfeldonut
|
||||
#Apple Pie=
|
||||
Apple Pie=Apfelkuchen
|
||||
Baked Potato=Ofenkartoffel
|
||||
#Baking Tray=
|
||||
#Banana=
|
||||
#Banana Leaves=
|
||||
Baking Tray=Kuchenblech
|
||||
Banana=Banane
|
||||
Banana Leaves=Bananenblatt
|
||||
Bar of Dark Chocolate=Tafel Zartbitterschokolade
|
||||
Barley=Gerste
|
||||
Barley Seed=Gerstenkörner
|
||||
Bean Pole (place on soil before planting beans)=Bohnenstange (vor dem Pflanzen der Bohnen auf den\nAckerboden stellen)
|
||||
#Beetroot=
|
||||
#Beetroot Soup=
|
||||
#Bibimbap=
|
||||
Beetroot=Rote Beete
|
||||
Beetroot Soup=Rote Beete Suppe
|
||||
Bibimbap=Bibimbap
|
||||
Wild Blueberries=Wilde Blaubeeren
|
||||
Blueberry Muffin=Blaubeermuffin
|
||||
#Blueberry Pie=
|
||||
Blueberry Pie=Blaubeerkuchen
|
||||
Bottle of Ethanol=Flasche Ethanol
|
||||
Bottle of Hemp Oil=Flasche mit Hanföl
|
||||
#Bowl of Chili=
|
||||
Bowl of Chili=Chili Schale
|
||||
Bread=Brot
|
||||
Bronze Hoe=Bronzehacke
|
||||
#Cabbage=
|
||||
#Cactus Juice=
|
||||
Cabbage=Weißkohl
|
||||
Cactus Juice=Kaktussaft
|
||||
Carrot=Möhre
|
||||
#Carrot Juice=
|
||||
#Chili Pepper=
|
||||
#Chocolate Block=
|
||||
Carrot Juice=Möhrensaft
|
||||
Chili Pepper=Chili
|
||||
Chocolate Block=Schokoladenstück
|
||||
Chocolate Donut=Schokodonut
|
||||
Cocoa Beans=Kakaobohne
|
||||
Coffee Beans=Kaffeebohnen
|
||||
Cookie=Keks
|
||||
#Cooking Pot=
|
||||
Cooking Pot=Kochtopf
|
||||
Corn=Mais
|
||||
Corn on the Cob=Maiskolben
|
||||
#Cornstarch=
|
||||
Cornstarch=Speisestärke
|
||||
Cotton=Baumwolle
|
||||
Cotton Seed=Baumwollsamen
|
||||
Cucumber=Gurke
|
||||
#Cucumber and Potato Salad=
|
||||
Cucumber and Potato Salad=Gurken und Tomatensalat
|
||||
Cup of Coffee=Tasse Kaffee
|
||||
#Cutting Board=
|
||||
Cutting Board=Schneidebrett
|
||||
Diamond Hoe=Diamanthacke
|
||||
Donut=Donut
|
||||
Flour=Mehl
|
||||
#Garlic=
|
||||
#Garlic Braid=
|
||||
#Garlic Bread=
|
||||
#Garlic clove=
|
||||
#Glass Mixing Bowl=
|
||||
Garlic=Knoblauch
|
||||
Garlic Braid=Knoblauchzopf
|
||||
Garlic Bread=Knoblauchbrot
|
||||
Garlic clove=Knoblauchzehe
|
||||
Glass Mixing Bowl=Glasschlüssel
|
||||
Golden Carrot=Goldene Möhre
|
||||
Grapes=Weintrauben
|
||||
Green Beans=Grüne Bohnen
|
||||
#Ground Pepper=
|
||||
#Hemp Block=
|
||||
Ground Pepper=Gemahlener Pfeffer
|
||||
Hemp Block=Hanfblock
|
||||
Hemp Fibre=Hanffaser
|
||||
Hemp Leaf=Hanfblatt
|
||||
Hemp Rope=Hanfseil
|
||||
Hemp Seed=Hanfsamen
|
||||
Hoe=Hacke
|
||||
#Hoe Bomb (use or throw on grassy areas to hoe land)=
|
||||
Hoe Bomb (use or throw on grassy areas to hoe land)=Hackbombe (Auf Grasland werfen oder benutzen)
|
||||
Jack 'O Lantern (punch to turn on and off)=Kürbislaterne (Punch zum Ein- und Ausschalten)
|
||||
#Jaffa Cake=
|
||||
#Juicer=
|
||||
Jaffa Cake=Jaffakeks
|
||||
Juicer=Entsafter
|
||||
Melon=Melone
|
||||
Melon Slice=Melonenscheibe
|
||||
Mese Hoe=Mesehacke
|
||||
#Mint Leaf=
|
||||
#Mint Seeds=
|
||||
#Mint Tea=
|
||||
#Mithril Scythe (Right-click to harvest and replant crops)=
|
||||
#Mortar and Pestle=
|
||||
#Multigrain Bread=
|
||||
#Multigrain Flour=
|
||||
#Oat seed=
|
||||
#Oats=
|
||||
#Onion=
|
||||
#Onion Soup=
|
||||
#Orange=
|
||||
#Pasta=
|
||||
#Pea Pod=
|
||||
#Pea Soup=
|
||||
#Peas=
|
||||
#Pepper=
|
||||
#Peppercorn=
|
||||
#Pineapple=
|
||||
#Pineapple Juice=
|
||||
#Pineapple Ring=
|
||||
#Pineapple Top=
|
||||
#Porridge=
|
||||
Mint Leaf=Minzblatt
|
||||
Mint Seeds=Minzsamen
|
||||
Mint Tea=Minztee
|
||||
Mithril Scythe (Right-click to harvest and replant crops)=Mithril-Sense (Rechts-Klick zum Ernten und Wiedereinpflanzen)
|
||||
Mortar and Pestle=Mörser und Stößel
|
||||
Multigrain Bread=Mehrkornbrot
|
||||
Multigrain Flour=Mehrkornmehl
|
||||
Oat seed=Hafersamen
|
||||
Oats=Hafer
|
||||
Onion=Zwiebel
|
||||
Onion Soup=Zwiebelsuppe
|
||||
Orange=Apfelsine
|
||||
Pasta=Pasta
|
||||
Pea Pod=Erbsenschote
|
||||
Pea Soup=Erbsensuppe
|
||||
Peas=Erbsen
|
||||
Pepper=Pfeffer
|
||||
Peppercorn=Pfefferkorn
|
||||
Pineapple=Ananas
|
||||
Pineapple Juice=Ananassaft
|
||||
Pineapple Ring=Ananasscheibe
|
||||
Pineapple Top=Ananasdeckel
|
||||
Porridge=Haferbrei
|
||||
Potato=Kartoffel
|
||||
Pumpkin=Kürbis
|
||||
Pumpkin Bread=Kürbisbrot
|
||||
@ -98,37 +98,37 @@ Raspberries=Himbeeren
|
||||
Raspberry Smoothie=Himbeersmoothie
|
||||
Rhubarb=Rhabarber
|
||||
Rhubarb Pie=Rhabarberkuchen
|
||||
#Rice=
|
||||
#Rice Bread=
|
||||
#Rice Flour=
|
||||
#Rice grains=
|
||||
#Rose Water=
|
||||
#Rye=
|
||||
#Rye seed=
|
||||
#Salt=
|
||||
#Saucepan=
|
||||
#Savanna Soil=
|
||||
#Scarecrow Bottom=
|
||||
Rice=Reis
|
||||
Rice Bread=Reiswaffel
|
||||
Rice Flour=Reismehl
|
||||
Rice grains=Reissaat
|
||||
Rose Water=Rosenwasser
|
||||
Rye=Roggen
|
||||
Rye seed=Roggensaat
|
||||
Salt=Salz
|
||||
Saucepan=Kasserolle
|
||||
Savanna Soil=Savannaerde
|
||||
Scarecrow Bottom=Vogelscheuchengestell
|
||||
Seed=Saatgut
|
||||
#Skillet=
|
||||
#Sliced Bread=
|
||||
Skillet=Bratpfanne
|
||||
Sliced Bread=Geschnittenes Brot
|
||||
Soil=Ackerboden
|
||||
#Spaghetti=
|
||||
Spaghetti=Spaghetti
|
||||
Steel Hoe=Stahlhacke
|
||||
Stone Hoe=Steinhacke
|
||||
Straw=Stroh
|
||||
#Strawberry=
|
||||
#String=
|
||||
Strawberry=Erdbeere
|
||||
String=Faden
|
||||
Sugar=Zucker
|
||||
#Toast=
|
||||
#Toast Sandwich=
|
||||
Toast=Toast
|
||||
Toast Sandwich=Toast Sandwich
|
||||
Tomato=Tomate
|
||||
Trellis (place on soil before planting grapes)=Spalier (vor dem Pflanzen der Weintrauben auf den\nAckerboden stellen)
|
||||
#Turkish Delight=
|
||||
#Wet Savanna Soil=
|
||||
Turkish Delight=Lokum
|
||||
Wet Savanna Soil=Feuchte Savannaerde
|
||||
Wet Soil=Bewässerter Ackerboden
|
||||
Wheat=Weizen
|
||||
Wheat Seed=Weizenkörner
|
||||
#Wild Cotton=
|
||||
#Wooden Bowl=
|
||||
Wild Cotton=Wilde Baumwolle
|
||||
Wooden Bowl=Holzschale
|
||||
Wooden Hoe=Holzhacke
|
||||
|
@ -60,7 +60,7 @@ Hemp Rope=麻绳
|
||||
Hemp Seed=大麻籽
|
||||
Hoe=锄头
|
||||
Hoe Bomb (use or throw on grassy areas to hoe land)=锄弹(在草地上使用或扔在锄地上)
|
||||
Jack 'O Lantern (punch to turn on and off)=杰克灯(按一下开关)
|
||||
Jack 'O Lantern (punch to turn on and off)=南瓜灯(按一下开关)
|
||||
Jaffa Cake=佳发饼
|
||||
Juicer=榨汁机
|
||||
Melon=甜瓜
|
||||
@ -118,7 +118,7 @@ Steel Hoe=钢锄头
|
||||
Stone Hoe=石锄
|
||||
Straw=稻草
|
||||
Strawberry=草莓
|
||||
String=字符串
|
||||
String=线
|
||||
Sugar=糖
|
||||
Toast=烤面包片
|
||||
Toast Sandwich=三明治面包
|
||||
|
@ -60,7 +60,7 @@ Hemp Rope=麻繩
|
||||
Hemp Seed=大麻籽
|
||||
Hoe=鋤頭
|
||||
Hoe Bomb (use or throw on grassy areas to hoe land)=鋤彈(在草地上使用或扔在鋤地上)
|
||||
Jack 'O Lantern (punch to turn on and off)=傑克燈(按一下開關)
|
||||
Jack 'O Lantern (punch to turn on and off)=南瓜燈(按一下開關)
|
||||
Jaffa Cake=佳發餅
|
||||
Juicer=榨汁機
|
||||
Melon=甜瓜
|
||||
@ -118,7 +118,7 @@ Steel Hoe=鋼鋤頭
|
||||
Stone Hoe=石鋤
|
||||
Straw=稻草
|
||||
Strawberry=草莓
|
||||
String=字符串
|
||||
String=線
|
||||
Sugar=糖
|
||||
Toast=烤麵包片
|
||||
Toast Sandwich=三明治麵包
|
||||
|
@ -59,7 +59,7 @@ Cornstarch=玉米淀粉
|
||||
Bottle of Ethanol=一瓶乙醇
|
||||
Cotton Seed=棉籽
|
||||
Cotton=棉花
|
||||
String=字符串
|
||||
String=线
|
||||
Cucumber=黄瓜
|
||||
Garlic clove=蒜瓣
|
||||
Garlic=大蒜
|
||||
|
@ -72,6 +72,8 @@ if minetest.get_modpath("lucky_block") then
|
||||
{name = "farming:seed_rice", max = 15},
|
||||
{name = "farming:seed_oat", max = 15},
|
||||
{name = "farming:soil_wet", max = 10},
|
||||
{name = "farming:cotton_wild", max = 5},
|
||||
{name = "farming:grapebush", max = 5},
|
||||
}},
|
||||
})
|
||||
end
|
||||
|
95
mapgen.lua
@ -1,3 +1,8 @@
|
||||
-- what mapgen are we using
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
|
||||
-- temp vars
|
||||
local tmp1, tmp2, tmp3
|
||||
|
||||
-- decoration function
|
||||
local function register_plant(name, min, max, spawnon, spawnby, num, rarety)
|
||||
@ -35,9 +40,6 @@ end
|
||||
register_plant("potato_3", 15, 40, nil, "", -1, farming.potato)
|
||||
register_plant("tomato_7", 5, 20, nil, "", -1, farming.tomato)
|
||||
register_plant("corn_7", 12, 22, nil, "", -1, nil)
|
||||
register_plant("coffee_5", 20, 45, {"default:dirt_with_dry_grass",
|
||||
"default:dirt_with_rainforest_litter",
|
||||
"default:dry_dirt_with_dry_grass"}, "", -1, farming.coffee)
|
||||
register_plant("raspberry_4", 3, 10, nil, "", -1, farming.raspberry)
|
||||
register_plant("rhubarb_3", 3, 15, nil, "", -1, farming.rhubarb)
|
||||
register_plant("blueberry_4", 3, 10, nil, "", -1, farming.blueberry)
|
||||
@ -47,23 +49,26 @@ register_plant("onion_5", 5, 22, nil, "", -1, farming.onion)
|
||||
register_plant("garlic_5", 3, 30, nil, "group:tree", 1, farming.garlic)
|
||||
register_plant("pea_5", 25, 50, nil, "", -1, farming.peas)
|
||||
register_plant("beetroot_5", 1, 15, nil, "", -1, farming.beetroot)
|
||||
register_plant("mint_4", 1, 75, {"default:dirt_with_grass",
|
||||
"default:dirt_with_coniferous_litter"}, "group:water", 1, farming.mint)
|
||||
register_plant("cabbage_6", 2, 10, nil, "", -1, farming.cabbage)
|
||||
register_plant("lettuce_5", 5, 30, nil, "", -1, farming.lettuce)
|
||||
register_plant("blackberry_4", 3, 10, nil, "", -1, farming.blackberry)
|
||||
register_plant("soy_6", 20, 50, {"default:dirt_with_dry_grass",
|
||||
"default:dirt_with_rainforest_litter",
|
||||
"default:dry_dirt_with_dry_grass"}, "", -1, farming.soy)
|
||||
register_plant("vanilla_7", 5, 35, nil, "", -1, farming.vanilla)
|
||||
register_plant("parsley_3", 10, 40, nil, "", -1, farming.parsley)
|
||||
register_plant("sunflower_8", 10, 40, nil, "", -1, farming.sunflower)
|
||||
register_plant("mint_4", 1, 75, {
|
||||
"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
|
||||
"group:water", 1, farming.mint)
|
||||
|
||||
|
||||
if minetest.get_mapgen_setting("mg_name") == "v6" then
|
||||
-- v6 mapgen compatibility for specific crops
|
||||
if mg_name == "v6" then
|
||||
|
||||
register_plant("carrot_8", 1, 30, nil, "group:water", 1, farming.carrot)
|
||||
register_plant("cucumber_4", 1, 20, nil, "group:water", 1, farming.cucumber)
|
||||
register_plant("melon_8", 1, 20, nil, "group:water", 1, farming.melon)
|
||||
register_plant("pumpkin_8", 1, 20, nil, "group:water", 1, farming.pumpkin)
|
||||
register_plant("coffee_5", 20, 45, nil, "", -1, farming.coffee)
|
||||
register_plant("soy_6", 20, 50, nil, "", -1, farming.soy)
|
||||
else
|
||||
-- v7 maps have a beach so plants growing near water is limited to 6 high
|
||||
register_plant("carrot_8", 1, 15, nil, "", -1, nil)
|
||||
@ -71,8 +76,15 @@ else
|
||||
register_plant("melon_8", 1, 6, {"default:dirt_with_dry_grass",
|
||||
"default:dirt_with_rainforest_litter"}, "", -1, farming.melon)
|
||||
register_plant("pumpkin_8", 1, 6, nil, "", -1, farming.pumpkin)
|
||||
register_plant("coffee_5", 20, 45, {"default:dirt_with_dry_grass",
|
||||
"default:dirt_with_rainforest_litter",
|
||||
"default:dry_dirt_with_dry_grass"}, "", -1, farming.coffee)
|
||||
register_plant("soy_6", 20, 50, {"default:dirt_with_dry_grass",
|
||||
"default:dirt_with_rainforest_litter",
|
||||
"default:dry_dirt_with_dry_grass"}, "", -1, farming.soy)
|
||||
end
|
||||
|
||||
|
||||
if farming.hemp then
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
@ -94,6 +106,7 @@ minetest.register_decoration({
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
if farming.chili then
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
@ -115,10 +128,40 @@ minetest.register_decoration({
|
||||
})
|
||||
end
|
||||
|
||||
if farming.pepper then
|
||||
|
||||
if farming.artichoke then
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_rainforest_litter"},
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0,
|
||||
scale = tonumber(farming.artichoke) or farming.rarety,
|
||||
spread = {x = 100, y = 100, z = 100},
|
||||
seed = 448,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
y_min = 1,
|
||||
y_max = 13,
|
||||
decoration = {"farming:artichoke_5"},
|
||||
spawn_by = "group:tree",
|
||||
num_spawn_by = 1,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
if farming.pepper then
|
||||
|
||||
local tmp1 = {"default:dirt_with_rainforest_litter"} -- v7
|
||||
|
||||
if mg_name == "v6" then
|
||||
tmp1 = {"default:dirt_with_grass"} -- v6
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = tmp1,
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0,
|
||||
@ -136,10 +179,22 @@ minetest.register_decoration({
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
if farming.pineapple then
|
||||
|
||||
tmp1 = {"default:dirt_with_dry_grass", "default:dry_dirt_with_dry_grass"}
|
||||
tmp2 = nil
|
||||
tmp3 = -1
|
||||
|
||||
if mg_name == "v6" then
|
||||
tmp1 = {"default:dirt_with_grass"}
|
||||
tmp2 = "default:desert_sand"
|
||||
tmp3 = 1
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_dry_grass", "default:dry_dirt_with_dry_grass"},
|
||||
place_on = tmp1,
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0,
|
||||
@ -151,14 +206,24 @@ minetest.register_decoration({
|
||||
},
|
||||
y_min = 18,
|
||||
y_max = 30,
|
||||
decoration = {"farming:pineapple_8"}
|
||||
decoration = {"farming:pineapple_8"},
|
||||
spawn_by = tmp2,
|
||||
num_spawn_by = tmp3
|
||||
})
|
||||
end
|
||||
|
||||
tmp1 = {"default:dry_dirt_with_dry_grass"}
|
||||
tmp2 = {"savanna"}
|
||||
|
||||
if mg_name == "v6" then
|
||||
tmp1 = {"default:dirt_with_grass"}
|
||||
tmp2 = {"jungle"}
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "farming:cotton_wild",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dry_dirt_with_dry_grass"},
|
||||
place_on = tmp1,
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
@ -168,7 +233,7 @@ minetest.register_decoration({
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"savanna"},
|
||||
biomes = tmp2,
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "farming:cotton_wild"
|
||||
|
2
soil.lua
@ -148,7 +148,7 @@ minetest.register_abm({
|
||||
if minetest.registered_nodes[nn]
|
||||
and minetest.registered_nodes[nn].walkable
|
||||
and minetest.get_item_group(nn, "plant") == 0 then
|
||||
minetest.set_node(pos, {name = "default:dirt"})
|
||||
minetest.set_node(pos, {name = ndef.soil.base})
|
||||
return
|
||||
end
|
||||
|
||||
|
BIN
textures/farming_artichoke.png
Normal file
After Width: | Height: | Size: 263 B |
BIN
textures/farming_artichoke_1.png
Normal file
After Width: | Height: | Size: 118 B |
BIN
textures/farming_artichoke_2.png
Normal file
After Width: | Height: | Size: 120 B |
BIN
textures/farming_artichoke_3.png
Normal file
After Width: | Height: | Size: 183 B |
BIN
textures/farming_artichoke_4.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/farming_artichoke_5.png
Normal file
After Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
BIN
textures/farming_caramel.png
Normal file
After Width: | Height: | Size: 133 B |
BIN
textures/farming_cheese_vegan.png
Normal file
After Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 173 B |
BIN
textures/farming_gyoza.png
Normal file
After Width: | Height: | Size: 266 B |
BIN
textures/farming_melon_bottom.png
Normal file
After Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 193 B |
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 233 B |
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 289 B |
BIN
textures/farming_mochi.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
textures/farming_onigiri.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
textures/farming_paella.png
Normal file
After Width: | Height: | Size: 487 B |
BIN
textures/farming_parsley.png
Normal file
After Width: | Height: | Size: 606 B |
BIN
textures/farming_parsley_1.png
Normal file
After Width: | Height: | Size: 167 B |
BIN
textures/farming_parsley_2.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
textures/farming_parsley_3.png
Normal file
After Width: | Height: | Size: 270 B |
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 449 B |
BIN
textures/farming_popcorn.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
textures/farming_potato_omelet.png
Normal file
After Width: | Height: | Size: 687 B |
BIN
textures/farming_pumpkin_bottom.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
textures/farming_salt_crystal.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
textures/farming_soy_sauce.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
textures/farming_spanish_potatoes.png
Normal file
After Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 382 B |
BIN
textures/farming_sunflower.png
Normal file
After Width: | Height: | Size: 703 B |
BIN
textures/farming_sunflower_1.png
Normal file
After Width: | Height: | Size: 107 B |
BIN
textures/farming_sunflower_2.png
Normal file
After Width: | Height: | Size: 121 B |
BIN
textures/farming_sunflower_3.png
Normal file
After Width: | Height: | Size: 136 B |
BIN
textures/farming_sunflower_4.png
Normal file
After Width: | Height: | Size: 162 B |
BIN
textures/farming_sunflower_5.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
textures/farming_sunflower_6.png
Normal file
After Width: | Height: | Size: 273 B |
BIN
textures/farming_sunflower_7.png
Normal file
After Width: | Height: | Size: 320 B |
BIN
textures/farming_sunflower_8.png
Normal file
After Width: | Height: | Size: 432 B |
BIN
textures/farming_sunflower_bread.png
Normal file
After Width: | Height: | Size: 440 B |
BIN
textures/farming_sunflower_oil.png
Normal file
After Width: | Height: | Size: 164 B |
BIN
textures/farming_sunflower_seeds.png
Normal file
After Width: | Height: | Size: 196 B |
BIN
textures/farming_sunflower_seeds_toasted.png
Normal file
After Width: | Height: | Size: 196 B |
BIN
textures/farming_tomato_soup.png
Normal file
After Width: | Height: | Size: 161 B |
BIN
textures/farming_vanilla_flan.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
textures/farming_water_glass.png
Normal file
After Width: | Height: | Size: 167 B |
@ -20,7 +20,7 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:bowl",
|
||||
burntime = 10,
|
||||
burntime = 10
|
||||
})
|
||||
|
||||
-- saucepan
|
||||
@ -155,9 +155,6 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "vessels:glass_fragments",
|
||||
recipe = {
|
||||
"farming:mixing_bowl"
|
||||
}
|
||||
recipe = {{"farming:mixing_bowl"}}
|
||||
})
|
||||
|