Compare commits
20 Commits
62b83f71a4
...
9fa818c1aa
Author | SHA1 | Date | |
---|---|---|---|
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 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
|
||||
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
|
||||
|
@ -33,9 +33,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 +50,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 +148,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
|
||||
}
|
@ -36,7 +36,7 @@ minetest.register_craft({
|
||||
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({
|
||||
|
@ -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 = {
|
||||
|
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
|
||||
}
|
@ -24,6 +24,38 @@ minetest.register_craft({
|
||||
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()
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "farming:soy_sauce",
|
||||
recipe = {
|
||||
"group:food_soy", "group:food_soy", "group:food_juicer",
|
||||
"bucket:bucket_river_water", "vessels:glass_bottle", "group:food_salt"
|
||||
},
|
||||
replacements = {
|
||||
{"bucket:bucket_river_water", "bucket:bucket_empty"},
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
}
|
||||
})
|
||||
|
||||
-- soy milk
|
||||
minetest.register_node("farming:soy_milk", {
|
||||
description = S("Soy Milk"),
|
||||
|
@ -35,6 +35,8 @@ 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.grains = true -- true or false only
|
||||
|
||||
-- default rarety of crops on map (higher number = more crops)
|
||||
|
254
food.lua
@ -16,6 +16,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 +46,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 +98,40 @@ 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 +193,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"},
|
||||
@ -273,7 +361,6 @@ 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",
|
||||
@ -283,7 +370,7 @@ minetest.register_craft({
|
||||
},
|
||||
replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}}
|
||||
})
|
||||
else
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pasta",
|
||||
type = "shapeless",
|
||||
@ -296,7 +383,6 @@ minetest.register_craft({
|
||||
{"group:food_oil", "vessels:glass_bottle"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Spaghetti
|
||||
|
||||
@ -324,7 +410,6 @@ 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",
|
||||
@ -335,7 +420,7 @@ minetest.register_craft({
|
||||
},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
else
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:bibimbap",
|
||||
type = "shapeless",
|
||||
@ -346,7 +431,6 @@ minetest.register_craft({
|
||||
},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
end
|
||||
|
||||
-- Burger
|
||||
|
||||
@ -401,3 +485,157 @@ 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({
|
||||
type = "shapeless",
|
||||
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({
|
||||
type = "shapeless",
|
||||
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({
|
||||
type = "shapeless",
|
||||
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({
|
||||
type = "shapeless",
|
||||
output = "farming:onigiri",
|
||||
recipe = {
|
||||
"group:food_rice", "group:food_rice", "group:food_seaweed", "group:food_salt"
|
||||
}
|
||||
})
|
||||
|
||||
-- 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({
|
||||
type = "shapeless",
|
||||
output = "farming:gyoza 4",
|
||||
recipe = {
|
||||
"group:food_cabbage", "group:food_garlic_clove", "group:food_onion",
|
||||
"group:food_meat_raw", "group:food_salt", "group:food_skillet",
|
||||
"group:food_flour"
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_skillet", "farming:skillet"}
|
||||
}
|
||||
})
|
||||
|
6
init.lua
@ -7,7 +7,7 @@
|
||||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20201213",
|
||||
version = "20210311",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {
|
||||
type = "fixed",
|
||||
@ -633,6 +633,8 @@ 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.grains = true
|
||||
farming.rarety = 0.002
|
||||
|
||||
@ -703,6 +705,8 @@ 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)
|
||||
|
||||
dofile(farming.path .. "/food.lua")
|
||||
dofile(farming.path .. "/mapgen.lua")
|
||||
|
25
license.txt
@ -145,13 +145,22 @@ Created by mDiyo (Natura), modified by TenPlus1 (License: CC BY-SA 3.0):
|
||||
farming_barley.png
|
||||
|
||||
Created by OgelGames (CC BY-SA 4.0)
|
||||
farming_berry_smoothie.png
|
||||
farming_cactus_juice.png
|
||||
farming_salad.png
|
||||
farming_berry_smoothie.png
|
||||
farming_cactus_juice.png
|
||||
farming_salad.png
|
||||
|
||||
Created by Felfa (CC0)
|
||||
farming_blackberry*.png
|
||||
farming_lettuce*.png
|
||||
farming_burger.png
|
||||
farming_soy*.png
|
||||
farming_vanilla*.png
|
||||
farming_blackberry*.png
|
||||
farming_lettuce*.png
|
||||
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
|
||||
|
||||
Created by gorlock (CC0)
|
||||
farming_salt_crystal.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=Salat
|
||||
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=Jaffa-Torte
|
||||
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=Brei
|
||||
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
|
||||
|
238
locale/zh_CN.txt
@ -1,119 +1,119 @@
|
||||
Seed=种子
|
||||
Banana=香蕉
|
||||
Banana Leaves=香蕉叶
|
||||
Orange=橙色
|
||||
Strawberry=草莓
|
||||
Sugar=糖
|
||||
Salt=盐
|
||||
Rose Water=玫瑰汁
|
||||
Turkish Delight=土耳其软糖
|
||||
Garlic Bread=蒜香面包
|
||||
Donut=甜甜圈
|
||||
Chocolate Donut=巧克力甜甜圈
|
||||
Apple Donut=苹果甜甜圈
|
||||
Porridge=粥
|
||||
Jaffa Cake=佳发饼
|
||||
Hoe=锄头
|
||||
Wooden Hoe=木锄
|
||||
Stone Hoe=石锄
|
||||
Steel Hoe=钢锄头
|
||||
Bronze Hoe=青铜锄头
|
||||
Mese Hoe=黄石锄头
|
||||
Diamond Hoe=钻石锄
|
||||
Hoe Bomb (use or throw on grassy areas to hoe land)=锄弹(在草地上使用或扔在锄地上)
|
||||
Mithril Scythe (Right-click to harvest and replant crops)=秘银镰刀(右击可收获并重新种植作物)
|
||||
Soil=土壤
|
||||
Wet Soil=湿土
|
||||
Wooden Bowl=木碗
|
||||
Saucepan=平底锅
|
||||
Cooking Pot=锅
|
||||
Baking Tray=烤盘
|
||||
Skillet=平底锅
|
||||
Mortar and Pestle=研钵
|
||||
Cutting Board=砧板
|
||||
Juicer=榨汁机
|
||||
Glass Mixing Bowl=搅拌杯
|
||||
Barley Seed=大麦种子
|
||||
Barley=大麦
|
||||
Green Beans=青豆
|
||||
Bean Pole (place on soil before planting beans)=豆杆(种豆前先放在土上)
|
||||
Beetroot=甜菜根
|
||||
Beetroot Soup=甜菜根汤
|
||||
Blueberries=蓝莓
|
||||
Blueberry Muffin=蓝莓松糕
|
||||
Blueberry Pie=蓝莓派
|
||||
Carrot=胡萝卜
|
||||
Carrot Juice=胡萝卜汁
|
||||
Golden Carrot=金萝卜
|
||||
Chili Pepper=辣椒
|
||||
Bowl of Chili=一碗辣椒
|
||||
Cocoa Beans=可可豆
|
||||
Cookie=曲奇
|
||||
Bar of Dark Chocolate=黑巧克力条
|
||||
Chocolate Block=巧克力块
|
||||
Coffee Beans=咖啡豆
|
||||
Cup of Coffee=一杯咖啡
|
||||
Corn=玉米
|
||||
Corn on the Cob=玉米棒
|
||||
Cornstarch=玉米淀粉
|
||||
Bottle of Ethanol=一瓶乙醇
|
||||
Cotton Seed=棉籽
|
||||
Cotton=棉花
|
||||
String=字符串
|
||||
Cucumber=黄瓜
|
||||
Garlic clove=蒜瓣
|
||||
Garlic=大蒜
|
||||
Garlic Braid=蒜辫
|
||||
Grapes=葡萄
|
||||
Trellis (place on soil before planting grapes)=棚架(种植葡萄前先放在土壤上)
|
||||
Hemp Seed=大麻籽
|
||||
Hemp Leaf=大麻叶
|
||||
Bottle of Hemp Oil=一瓶大麻油
|
||||
Hemp Fibre=大麻纤维
|
||||
Hemp Block=麻块
|
||||
Hemp Rope=麻绳
|
||||
Melon Slice=西瓜片
|
||||
Melon=甜瓜
|
||||
Onion=洋葱
|
||||
Pea Pod=豌豆荚
|
||||
Peas=豌豆
|
||||
Pea Soup=豌豆汤
|
||||
Peppercorn=胡椒粉
|
||||
Pepper=胡椒粉
|
||||
Ground Pepper=胡椒粉
|
||||
Pineapple Top=菠萝上衣
|
||||
Pineapple=菠萝
|
||||
Pineapple Ring=菠萝圈
|
||||
Pineapple Juice=菠萝汁
|
||||
Potato=土豆
|
||||
Baked Potato=焗马铃薯
|
||||
Cucumber and Potato Salad=黄瓜土豆沙拉
|
||||
Pumpkin Slice=南瓜片
|
||||
Jack 'O Lantern (punch to turn on and off)=杰克灯(按一下开关)
|
||||
Scarecrow Bottom=稻草人屁股
|
||||
Pumpkin Bread=南瓜面包
|
||||
Pumpkin Dough=南瓜面团
|
||||
Pumpkin=南瓜
|
||||
Raspberries=覆盆子
|
||||
Raspberry Smoothie=覆盆子冰沙
|
||||
Rhubarb=大黄
|
||||
Rhubarb Pie=大黄派
|
||||
Rye=黑麦
|
||||
Rye seed=黑麦种子
|
||||
Oat=燕麦
|
||||
Oat seed=燕麦籽
|
||||
Rice=大米
|
||||
Rice grains=稻谷
|
||||
Rice Bread=米饭面包
|
||||
Rice Flour=米粉
|
||||
Multigrain Flour=多粒面粉
|
||||
Multigrain Bread=杂粮面包
|
||||
Tomato=番茄
|
||||
Wheat Seed=小麦种子
|
||||
Wheat=小麦
|
||||
Straw=稻草
|
||||
Flour=面粉
|
||||
Bread=面包
|
||||
Sliced Bread=切片面包
|
||||
Toast=烤面包片
|
||||
Toast Sandwich=三明治面包
|
||||
Seed=种子
|
||||
Banana=香蕉
|
||||
Banana Leaves=香蕉叶
|
||||
Orange=橙色
|
||||
Strawberry=草莓
|
||||
Sugar=糖
|
||||
Salt=盐
|
||||
Rose Water=玫瑰汁
|
||||
Turkish Delight=土耳其软糖
|
||||
Garlic Bread=蒜香面包
|
||||
Donut=甜甜圈
|
||||
Chocolate Donut=巧克力甜甜圈
|
||||
Apple Donut=苹果甜甜圈
|
||||
Porridge=粥
|
||||
Jaffa Cake=佳发饼
|
||||
Hoe=锄头
|
||||
Wooden Hoe=木锄
|
||||
Stone Hoe=石锄
|
||||
Steel Hoe=钢锄头
|
||||
Bronze Hoe=青铜锄头
|
||||
Mese Hoe=黄石锄头
|
||||
Diamond Hoe=钻石锄
|
||||
Hoe Bomb (use or throw on grassy areas to hoe land)=锄弹(在草地上使用或扔在锄地上)
|
||||
Mithril Scythe (Right-click to harvest and replant crops)=秘银镰刀(右击可收获并重新种植作物)
|
||||
Soil=土壤
|
||||
Wet Soil=湿土
|
||||
Wooden Bowl=木碗
|
||||
Saucepan=平底锅
|
||||
Cooking Pot=锅
|
||||
Baking Tray=烤盘
|
||||
Skillet=平底锅
|
||||
Mortar and Pestle=研钵
|
||||
Cutting Board=砧板
|
||||
Juicer=榨汁机
|
||||
Glass Mixing Bowl=搅拌杯
|
||||
Barley Seed=大麦种子
|
||||
Barley=大麦
|
||||
Green Beans=青豆
|
||||
Bean Pole (place on soil before planting beans)=豆杆(种豆前先放在土上)
|
||||
Beetroot=甜菜根
|
||||
Beetroot Soup=甜菜根汤
|
||||
Blueberries=蓝莓
|
||||
Blueberry Muffin=蓝莓松糕
|
||||
Blueberry Pie=蓝莓派
|
||||
Carrot=胡萝卜
|
||||
Carrot Juice=胡萝卜汁
|
||||
Golden Carrot=金萝卜
|
||||
Chili Pepper=辣椒
|
||||
Bowl of Chili=一碗辣椒
|
||||
Cocoa Beans=可可豆
|
||||
Cookie=曲奇
|
||||
Bar of Dark Chocolate=黑巧克力条
|
||||
Chocolate Block=巧克力块
|
||||
Coffee Beans=咖啡豆
|
||||
Cup of Coffee=一杯咖啡
|
||||
Corn=玉米
|
||||
Corn on the Cob=玉米棒
|
||||
Cornstarch=玉米淀粉
|
||||
Bottle of Ethanol=一瓶乙醇
|
||||
Cotton Seed=棉籽
|
||||
Cotton=棉花
|
||||
String=线
|
||||
Cucumber=黄瓜
|
||||
Garlic clove=蒜瓣
|
||||
Garlic=大蒜
|
||||
Garlic Braid=蒜辫
|
||||
Grapes=葡萄
|
||||
Trellis (place on soil before planting grapes)=棚架(种植葡萄前先放在土壤上)
|
||||
Hemp Seed=大麻籽
|
||||
Hemp Leaf=大麻叶
|
||||
Bottle of Hemp Oil=一瓶大麻油
|
||||
Hemp Fibre=大麻纤维
|
||||
Hemp Block=麻块
|
||||
Hemp Rope=麻绳
|
||||
Melon Slice=西瓜片
|
||||
Melon=甜瓜
|
||||
Onion=洋葱
|
||||
Pea Pod=豌豆荚
|
||||
Peas=豌豆
|
||||
Pea Soup=豌豆汤
|
||||
Peppercorn=胡椒粉
|
||||
Pepper=胡椒粉
|
||||
Ground Pepper=胡椒粉
|
||||
Pineapple Top=菠萝上衣
|
||||
Pineapple=菠萝
|
||||
Pineapple Ring=菠萝圈
|
||||
Pineapple Juice=菠萝汁
|
||||
Potato=土豆
|
||||
Baked Potato=焗马铃薯
|
||||
Cucumber and Potato Salad=黄瓜土豆沙拉
|
||||
Pumpkin Slice=南瓜片
|
||||
Jack 'O Lantern (punch to turn on and off)=杰克灯(按一下开关)
|
||||
Scarecrow Bottom=稻草人屁股
|
||||
Pumpkin Bread=南瓜面包
|
||||
Pumpkin Dough=南瓜面团
|
||||
Pumpkin=南瓜
|
||||
Raspberries=覆盆子
|
||||
Raspberry Smoothie=覆盆子冰沙
|
||||
Rhubarb=大黄
|
||||
Rhubarb Pie=大黄派
|
||||
Rye=黑麦
|
||||
Rye seed=黑麦种子
|
||||
Oat=燕麦
|
||||
Oat seed=燕麦籽
|
||||
Rice=大米
|
||||
Rice grains=稻谷
|
||||
Rice Bread=米饭面包
|
||||
Rice Flour=米粉
|
||||
Multigrain Flour=多粒面粉
|
||||
Multigrain Bread=杂粮面包
|
||||
Tomato=番茄
|
||||
Wheat Seed=小麦种子
|
||||
Wheat=小麦
|
||||
Straw=稻草
|
||||
Flour=面粉
|
||||
Bread=面包
|
||||
Sliced Bread=切片面包
|
||||
Toast=烤面包片
|
||||
Toast Sandwich=三明治面包
|
||||
|
94
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,25 @@ 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("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 +75,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 +105,7 @@ minetest.register_decoration({
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
if farming.chili then
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
@ -115,10 +127,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 +178,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 +205,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 +232,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 |
BIN
textures/farming_gyoza.png
Normal file
After Width: | Height: | Size: 603 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 |
BIN
textures/farming_potato_omelet.png
Normal file
After Width: | Height: | Size: 687 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_vanilla_flan.png
Normal file
After Width: | Height: | Size: 1.2 KiB |