update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees, pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
@ -18,3 +18,6 @@ Changelog:
|
||||
- 0.1 - Initial Release
|
||||
|
||||
Lucky Blocks: 9
|
||||
|
||||
|
||||
Note: Under settings you will find 'colored_clay_compatibility' switch that when enabled will register aliases for the older colored clay mod and it's stairplus stairs.
|
||||
|
@ -300,4 +300,43 @@ lucky_block:add_blocks({
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- colored clay compatibility
|
||||
if minetest.settings:get_bool("colored_clay_compatibility") == true then
|
||||
|
||||
local cc = {
|
||||
{"black", "black"},
|
||||
{"blue", "blue"},
|
||||
{"bright", "natural"},
|
||||
{"brown", "brown"},
|
||||
{"cyan", "cyan"},
|
||||
{"dark_green", "dark_green"},
|
||||
{"dark_grey", "dark_grey"},
|
||||
{"green", "green"},
|
||||
{"grey", "grey"},
|
||||
{"hardened", "natural"},
|
||||
{"magenta", "magenta"},
|
||||
{"orange", "orange"},
|
||||
{"pink", "pink"},
|
||||
{"red", "red"},
|
||||
{"violet", "violet"},
|
||||
{"white", "white"},
|
||||
{"yellow", "yellow"}
|
||||
}
|
||||
|
||||
for n = 1, #cc do
|
||||
|
||||
local nod1 = "colored_clay:" .. cc[n][1]
|
||||
local nod2 = "bakedclay:" .. cc[n][2]
|
||||
|
||||
minetest.register_alias(nod1, nod2)
|
||||
|
||||
if stairsplus_mod then
|
||||
stairsplus:register_alias_all("colored_clay", cc[n][1], "bakedclay", cc[n][2])
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
print ("[MOD] Baked Clay loaded")
|
||||
|
2
bakedclay/settingtypes.txt
Normal file
@ -0,0 +1,2 @@
|
||||
# Registers compatibility aliases with the older colored_clay mod
|
||||
colored_clay_compatibility (Colored Clay Compatibility) bool false
|
30
basic_materials/.luacheckrc
Normal file
@ -0,0 +1,30 @@
|
||||
std = "lua51+minetest"
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_line_length = 999
|
||||
|
||||
stds.minetest = {
|
||||
read_globals = {
|
||||
"DIR_DELIM",
|
||||
"minetest",
|
||||
"core",
|
||||
"dump",
|
||||
"vector",
|
||||
"nodeupdate",
|
||||
"VoxelManip",
|
||||
"VoxelArea",
|
||||
"PseudoRandom",
|
||||
"ItemStack",
|
||||
"default",
|
||||
table = {
|
||||
fields = {
|
||||
"copy",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
"default",
|
||||
"moreores",
|
||||
}
|
@ -7,6 +7,7 @@
|
||||
local modpath = minetest.get_modpath("basic_materials")
|
||||
|
||||
basic_materials = {}
|
||||
basic_materials.mod = { author = "Vanessa Dannenberg" }
|
||||
|
||||
dofile(modpath.."/metals.lua")
|
||||
dofile(modpath.."/plastics.lua")
|
||||
|
@ -5,31 +5,37 @@ local S = minetest.get_translator("basic_materials")
|
||||
|
||||
minetest.register_craftitem("basic_materials:steel_wire", {
|
||||
description = S("Spool of steel wire"),
|
||||
groups = { wire = 1 },
|
||||
inventory_image = "basic_materials_steel_wire.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("basic_materials:copper_wire", {
|
||||
description = S("Spool of copper wire"),
|
||||
groups = { wire = 1 },
|
||||
inventory_image = "basic_materials_copper_wire.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("basic_materials:silver_wire", {
|
||||
description = S("Spool of silver wire"),
|
||||
groups = { wire = 1 },
|
||||
inventory_image = "basic_materials_silver_wire.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("basic_materials:gold_wire", {
|
||||
description = S("Spool of gold wire"),
|
||||
groups = { wire = 1 },
|
||||
inventory_image = "basic_materials_gold_wire.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("basic_materials:steel_strip", {
|
||||
description = S("Steel Strip"),
|
||||
groups = { strip = 1 },
|
||||
inventory_image = "basic_materials_steel_strip.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("basic_materials:copper_strip", {
|
||||
description = S("Copper Strip"),
|
||||
groups = { strip = 1 },
|
||||
inventory_image = "basic_materials_copper_strip.png"
|
||||
})
|
||||
|
||||
@ -40,11 +46,13 @@ minetest.register_craftitem("basic_materials:steel_bar", {
|
||||
|
||||
minetest.register_craftitem("basic_materials:chainlink_brass", {
|
||||
description = S("Chainlinks (brass)"),
|
||||
groups = { chainlinks = 1 },
|
||||
inventory_image = "basic_materials_chainlink_brass.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("basic_materials:chainlink_steel", {
|
||||
description = S("Chainlinks (steel)"),
|
||||
groups = { chainlinks = 1 },
|
||||
inventory_image = "basic_materials_chainlink_steel.png"
|
||||
})
|
||||
|
||||
@ -70,14 +78,6 @@ local chains_sbox = {
|
||||
fixed = { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1 }
|
||||
}
|
||||
|
||||
local topchains_sbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.25, 0.35, -0.25, 0.25, 0.5, 0.25 },
|
||||
{ -0.1, -0.5, -0.1, 0.1, 0.4, 0.1 }
|
||||
}
|
||||
}
|
||||
|
||||
minetest.register_node("basic_materials:chain_steel", {
|
||||
description = S("Chain (steel, hanging)"),
|
||||
drawtype = "mesh",
|
||||
|
@ -10,6 +10,7 @@ minetest.register_craftitem("basic_materials:plastic_sheet", {
|
||||
|
||||
minetest.register_craftitem("basic_materials:plastic_strip", {
|
||||
description = S("Plastic strips"),
|
||||
groups = { strip = 1 },
|
||||
inventory_image = "basic_materials_plastic_strip.png",
|
||||
})
|
||||
|
||||
|
@ -6,7 +6,8 @@ local min, max, random = math.min, math.max, math.random
|
||||
|
||||
|
||||
-- Load support for intllib.
|
||||
local S, NS = dofile(path .. "/intllib.lua")
|
||||
local S = minetest.get_translator and minetest.get_translator("bonemeal") or
|
||||
dofile(path .. "/intllib.lua")
|
||||
|
||||
|
||||
-- creative check
|
||||
|
6
bonemeal/locale/bonemeal.es.tr
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: bonemeal
|
||||
Mulch=Mantillo
|
||||
Bone Meal=Comida de hueso
|
||||
Fertiliser=Fertilizante
|
||||
Bone=Hueso
|
||||
[MOD] bonemeal loaded=[MOD] bonemeal cargado
|
6
bonemeal/locale/bonemeal.fr.tr
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: beds
|
||||
Mulch=Paillis
|
||||
Bone Meal=Poudre d'os
|
||||
Fertiliser=Engrais
|
||||
Bone=Os
|
||||
[MOD] bonemeal loaded=[MOD] bonemeal chargé
|
6
bonemeal/locale/bonemeal.it.tr
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: bonemeal
|
||||
Mulch=Pacciame
|
||||
Bone Meal=Pasto osseo
|
||||
Fertiliser=Fertilizzante
|
||||
Bone=Ossa
|
||||
[MOD] bonemeal loaded=[MOD] bonemeal caricata
|
6
bonemeal/locale/bonemeal.ru.tr
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: bonemeal
|
||||
Mulch=Мульча
|
||||
Bone Meal=Костная Мука
|
||||
Fertiliser=Удобрение
|
||||
Bone=Кость
|
||||
[MOD] bonemeal loaded=[MOD] костная мука загружена
|
7
bonemeal/locale/es.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# init.lua
|
||||
|
||||
Mulch = Mantillo
|
||||
Bone Meal = Comida de hueso
|
||||
Fertiliser = Fertilizante
|
||||
Bone = Hueso
|
||||
[MOD] bonemeal loaded = [MOD] bonemeal cargado
|
7
bonemeal/locale/it.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# init.lua
|
||||
|
||||
Mulch = Pacciame
|
||||
Bone Meal = Pasto osseo
|
||||
Fertiliser = Fertilizzante
|
||||
Bone = Ossa
|
||||
[MOD] bonemeal loaded = [MOD] bonemeal caricata
|
6
bonemeal/locale/template.tr
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: bonemeal
|
||||
Mulch =
|
||||
Bone Meal =
|
||||
Fertiliser =
|
||||
Bone =
|
||||
[MOD] bonemeal loaded =
|
@ -1,7 +1,7 @@
|
||||
# init.lua
|
||||
|
||||
Mulch =
|
||||
Bone Meal =
|
||||
Fertiliser =
|
||||
Bone =
|
||||
[bonemeal] loaded =
|
||||
Mulch =
|
||||
Bone Meal =
|
||||
Fertiliser =
|
||||
Bone =
|
||||
[MOD] bonemeal loaded =
|
||||
|
@ -39,7 +39,8 @@ if farming and farming.mod and farming.mod == "redo" then
|
||||
{"farming:rye_", 8},
|
||||
{"farming:oat_", 8},
|
||||
{"farming:rice_", 8},
|
||||
{"farming:mint_", 4}
|
||||
{"farming:mint_", 4},
|
||||
{"farming:cabbage_", 6}
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -15,7 +15,7 @@ Exchange=Tausch
|
||||
### craftitems.lua ###
|
||||
|
||||
@1 Minegeld Note=@1 Minegeld Banknote
|
||||
@1 Minegeld cent coin=
|
||||
@1 Minegeld cent coin=@1 Cent MünzeM
|
||||
Bundle of random Minegeld notes=Bündel von verschiedenen Minegeld Banknoten
|
||||
|
||||
### safe.lua ###
|
||||
|
45
currency/locale/currency.it.tr
Normal file
@ -0,0 +1,45 @@
|
||||
# textdomain: currency
|
||||
# Hamlet, 2020
|
||||
|
||||
|
||||
### barter.lua ###
|
||||
|
||||
Barter Table=Tavolo di baratto
|
||||
Cancel=Annulla
|
||||
Confirm=Conferma
|
||||
Start=Inizia
|
||||
|
||||
### shop.lua ###
|
||||
|
||||
Exchange=Scambia
|
||||
|
||||
### craftitems.lua ###
|
||||
|
||||
@1 Minegeld Note=@ biglietto Minegeld
|
||||
@1 Minegeld cent coin=@ moneta di centesimo Minegeld
|
||||
Bundle of random Minegeld notes=Pacchetto di biglietti Minegeld casuali
|
||||
|
||||
### safe.lua ###
|
||||
|
||||
Safe=Cassaforte
|
||||
Safe (owned by @1)=Cassaforte (di proprietà di @1)
|
||||
|
||||
### shop.lua ###
|
||||
|
||||
Customer gets:=Il cliente ottiene:
|
||||
Customer gives (pay here!)=Il cliente dà (paga qui!)
|
||||
Customers gave:=I clienti hanno dato:
|
||||
Exchange can not be done, check if you put all items!=Lo scambio non può essere fatto, controlla di avere messo tutti gli oggetti!
|
||||
Exchange can not be done, contact the shop owner.=Lo scambio non può essere fatto, contatta il proprietario del negozio.
|
||||
Exchange shop (owned by @1)=Negozio di scambio (di proprietà di @1)
|
||||
Exchanged!=Scambiato!
|
||||
In exchange, you give:=In cambio, tu dai:
|
||||
Owner gives:=Il proprietario dà:
|
||||
Owner wants:=Il proprietario vuole:
|
||||
|
||||
Owner, Use (E)+Place (right mouse button) for customer interface=Proprietario, usa (E)+Posiziona (pulsante destro del mouse) per l'interfaccia cliente
|
||||
|
||||
Shop=Negozio
|
||||
This is your own shop, you can't exchange to yourself!=Questo è il tuo negozio, non puoi fare scambi con te stesso!
|
||||
You want:=Tu vuoi:
|
||||
Your stock:=La tua scorta:
|
@ -13,7 +13,8 @@ This mod works by adding your new plant to the {growing=1} group and numbering t
|
||||
|
||||
### Changelog:
|
||||
|
||||
- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base options, onion soup added (thanks edcrypt)
|
||||
- 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
|
||||
- 1.43 - Scythe works on use instead of right-click, added seed=1 groups to actual seeds and seed=2 group for plantable food items.
|
||||
- 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block.
|
||||
|
@ -12,13 +12,13 @@ end
|
||||
|
||||
minetest.override_item("default:apple", {
|
||||
groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||
leafdecay = 3, leafdecay_drop = 1},
|
||||
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},
|
||||
groups = {food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 2}
|
||||
})
|
||||
end
|
||||
|
||||
@ -45,7 +45,7 @@ else
|
||||
},
|
||||
groups = {food_banana = 1, fleshy = 3, dig_immediate = 3, flammable = 2},
|
||||
on_use = minetest.item_eat(2),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node(":ethereal:bananaleaves", {
|
||||
@ -56,7 +56,7 @@ else
|
||||
paramtype = "light",
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
||||
alias("farming_plus:banana_sapling", "default:sapling")
|
||||
@ -103,7 +103,7 @@ else
|
||||
},
|
||||
groups = {food_orange = 1, fleshy = 3, dig_immediate = 3, flammable = 2},
|
||||
on_use = minetest.item_eat(4),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
||||
alias("farming_plus:orange_item", "ethereal:orange")
|
||||
@ -151,7 +151,7 @@ else
|
||||
inventory_image = "strawberry.png",
|
||||
wield_image = "strawberry.png",
|
||||
groups = {food_strawberry = 1, flammable = 2},
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
alias("farming_plus:strawberry_item", "ethereal:strawberry")
|
||||
|
@ -16,14 +16,14 @@ minetest.register_node("farming:seed_barley", {
|
||||
selection_box = farming.select,
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:barley_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- harvested barley
|
||||
minetest.register_craftitem("farming:barley", {
|
||||
description = S("Barley"),
|
||||
inventory_image = "farming_barley.png",
|
||||
groups = {food_barley = 1, flammable = 2},
|
||||
groups = {food_barley = 1, flammable = 2}
|
||||
})
|
||||
|
||||
-- flour
|
||||
@ -34,11 +34,11 @@ minetest.register_craft({
|
||||
"farming:barley", "farming:barley", "farming:barley",
|
||||
"farming:barley", "farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
-- barley definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_barley_1.png"},
|
||||
paramtype = "light",
|
||||
@ -57,52 +57,52 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:barley_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:barley_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_barley_2.png"}
|
||||
minetest.register_node("farming:barley_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_barley_2.png"}
|
||||
minetest.register_node("farming:barley_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_barley_3.png"}
|
||||
minetest.register_node("farming:barley_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_barley_3.png"}
|
||||
minetest.register_node("farming:barley_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_barley_4.png"}
|
||||
minetest.register_node("farming:barley_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_barley_4.png"}
|
||||
minetest.register_node("farming:barley_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_barley_5.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_barley_5.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:barley"}, rarity = 2},
|
||||
{items = {"farming:seed_barley"}, rarity = 2},
|
||||
{items = {"farming:seed_barley"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:barley_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:barley_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_barley_6.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_barley_6.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:barley"}, rarity = 2},
|
||||
{items = {"farming:seed_barley"}, rarity = 1},
|
||||
{items = {"farming:seed_barley"}, rarity = 1}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:barley_6", table.copy(crop_def))
|
||||
minetest.register_node("farming:barley_6", table.copy(def))
|
||||
|
||||
-- stage 7 (final)
|
||||
crop_def.tiles = {"farming_barley_7.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_barley_7.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:barley"}, rarity = 1},
|
||||
{items = {"farming:barley"}, rarity = 3},
|
||||
{items = {"farming:seed_barley"}, rarity = 1},
|
||||
{items = {"farming:seed_barley"}, rarity = 3},
|
||||
{items = {"farming:seed_barley"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:barley_7", table.copy(crop_def))
|
||||
minetest.register_node("farming:barley_7", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:barley"] = {
|
||||
@ -114,9 +114,8 @@ farming.registered_plants["farming:barley"] = {
|
||||
}
|
||||
|
||||
-- Fuel
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:barley",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
@ -13,7 +13,6 @@ local function place_beans(itemstack, placer, pointed_thing, plantname)
|
||||
|
||||
-- check if pointing at a node
|
||||
if not pt or pt.type ~= "node" then
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
@ -74,17 +73,16 @@ minetest.register_craftitem("farming:beans", {
|
||||
inventory_image = "farming_beans.png",
|
||||
groups = {seed = 2, food_beans = 1, flammable = 2},
|
||||
on_use = minetest.item_eat(1),
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return place_beans(itemstack, placer, pointed_thing, "farming:beanpole_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- beans can be used for green dye
|
||||
minetest.register_craft({
|
||||
output = "dye:green",
|
||||
recipe = {
|
||||
{"farming:beans"},
|
||||
{"farming:beans"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -94,7 +92,7 @@ minetest.register_node("farming:beanpole", {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_beanpole.png"},
|
||||
inventory_image = "farming_beanpole.png",
|
||||
visual_scale = 1.90, -- 1.45,
|
||||
visual_scale = 1.90,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
@ -164,28 +162,28 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{"default:stick", "", "default:stick"},
|
||||
{"default:stick", "", "default:stick"},
|
||||
{"default:stick", "", "default:stick"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:beanpole",
|
||||
burntime = 10,
|
||||
burntime = 10
|
||||
})
|
||||
|
||||
-- green bean definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_beanpole_1.png"},
|
||||
visual_scale = 1.90, -- 1.45,
|
||||
visual_scale = 1.90,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
sunlight_propagates = true,
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"farming:beanpole"}, rarity = 1},
|
||||
{items = {"farming:beanpole"}, rarity = 1}
|
||||
}
|
||||
},
|
||||
selection_box = farming.select,
|
||||
@ -197,32 +195,32 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:beanpole_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:beanpole_1", table.copy(def))
|
||||
|
||||
-- stage2
|
||||
crop_def.tiles = {"farming_beanpole_2.png"}
|
||||
minetest.register_node("farming:beanpole_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_beanpole_2.png"}
|
||||
minetest.register_node("farming:beanpole_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_beanpole_3.png"}
|
||||
minetest.register_node("farming:beanpole_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_beanpole_3.png"}
|
||||
minetest.register_node("farming:beanpole_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_beanpole_4.png"}
|
||||
minetest.register_node("farming:beanpole_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_beanpole_4.png"}
|
||||
minetest.register_node("farming:beanpole_4", table.copy(def))
|
||||
|
||||
-- stage 5 (final)
|
||||
crop_def.tiles = {"farming_beanpole_5.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_beanpole_5.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:beanpole"}, rarity = 1},
|
||||
{items = {"farming:beans 3"}, rarity = 1},
|
||||
{items = {"farming:beans 2"}, rarity = 2},
|
||||
{items = {"farming:beans 2"}, rarity = 3},
|
||||
{items = {"farming:beans 2"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:beanpole_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:beanpole_5", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:beans"] = {
|
||||
@ -246,13 +244,13 @@ minetest.register_node("farming:beanbush", {
|
||||
items = {
|
||||
{items = {"farming:beans 1"}, rarity = 1},
|
||||
{items = {"farming:beans 1"}, rarity = 2},
|
||||
{items = {"farming:beans 1"}, rarity = 3},
|
||||
{items = {"farming:beans 1"}, rarity = 3}
|
||||
}
|
||||
},
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
not_in_creative_inventory=1
|
||||
not_in_creative_inventory = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
@ -9,7 +9,7 @@ minetest.register_craftitem("farming:beetroot", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:beetroot_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
-- beetroot soup
|
||||
@ -17,7 +17,7 @@ minetest.register_craftitem("farming:beetroot_soup", {
|
||||
description = S("Beetroot Soup"),
|
||||
inventory_image = "farming_beetroot_soup.png",
|
||||
groups = {flammable = 2},
|
||||
on_use = minetest.item_eat(6, "farming:bowl"),
|
||||
on_use = minetest.item_eat(6, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -34,15 +34,13 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dye:red",
|
||||
recipe = {"group:food_beetroot"},
|
||||
recipe = {"group:food_beetroot"}
|
||||
})
|
||||
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_beetroot_1.png"},
|
||||
paramtype = "light",
|
||||
-- paramtype2 = "meshoptions",
|
||||
-- place_param2 = 3,
|
||||
sunlight_propagates = true,
|
||||
waving = 1,
|
||||
walkable = false,
|
||||
@ -57,32 +55,32 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:beetroot_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:beetroot_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_beetroot_2.png"}
|
||||
minetest.register_node("farming:beetroot_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_beetroot_2.png"}
|
||||
minetest.register_node("farming:beetroot_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_beetroot_3.png"}
|
||||
minetest.register_node("farming:beetroot_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_beetroot_3.png"}
|
||||
minetest.register_node("farming:beetroot_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_beetroot_4.png"}
|
||||
minetest.register_node("farming:beetroot_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_beetroot_4.png"}
|
||||
minetest.register_node("farming:beetroot_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_beetroot_5.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_beetroot_5.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
max_items = 4, items = {
|
||||
{items = {"farming:beetroot"}, rarity = 1},
|
||||
{items = {"farming:beetroot"}, rarity = 2},
|
||||
{items = {"farming:beetroot"}, rarity = 3},
|
||||
{items = {"farming:beetroot"}, rarity = 4},
|
||||
{items = {"farming:beetroot"}, rarity = 4}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:beetroot_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:beetroot_5", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:beetroot"] = {
|
||||
|
@ -10,30 +10,28 @@ minetest.register_craftitem("farming:blueberries", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:blueberry_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
-- blueberry muffin (thanks to sosogirl123 @ deviantart.com for muffin image)
|
||||
|
||||
minetest.register_craftitem("farming:muffin_blueberry", {
|
||||
description = S("Blueberry Muffin"),
|
||||
inventory_image = "farming_blueberry_muffin.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
on_use = minetest.item_eat(2)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:muffin_blueberry 2",
|
||||
recipe = {
|
||||
{"group:food_blueberries", "group:food_bread", "group:food_blueberries"},
|
||||
{"group:food_blueberries", "group:food_bread", "group:food_blueberries"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Blueberry Pie
|
||||
|
||||
minetest.register_craftitem("farming:blueberry_pie", {
|
||||
description = S("Blueberry Pie"),
|
||||
inventory_image = "farming_blueberry_pie.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -47,7 +45,7 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
-- blueberry definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_blueberry_1.png"},
|
||||
paramtype = "light",
|
||||
@ -64,27 +62,27 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:blueberry_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:blueberry_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_blueberry_2.png"}
|
||||
minetest.register_node("farming:blueberry_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_blueberry_2.png"}
|
||||
minetest.register_node("farming:blueberry_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_blueberry_3.png"}
|
||||
minetest.register_node("farming:blueberry_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_blueberry_3.png"}
|
||||
minetest.register_node("farming:blueberry_3", table.copy(def))
|
||||
|
||||
-- stage 4 (final)
|
||||
crop_def.tiles = {"farming_blueberry_4.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_blueberry_4.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:blueberries 2"}, rarity = 1},
|
||||
{items = {"farming:blueberries"}, rarity = 2},
|
||||
{items = {"farming:blueberries"}, rarity = 3},
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:blueberry_4", table.copy(crop_def))
|
||||
minetest.register_node("farming:blueberry_4", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:blueberries"] = {
|
||||
|
69
farming/crops/cabbage.lua
Normal file
@ -0,0 +1,69 @@
|
||||
|
||||
local S = farming.intllib
|
||||
|
||||
-- cabbage
|
||||
minetest.register_craftitem("farming:cabbage", {
|
||||
description = S("Cabbage"),
|
||||
inventory_image = "farming_cabbage.png",
|
||||
groups = {seed = 2, food_cabbage = 1, flammable = 2},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:cabbage_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cabbage_1.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
waving = 1,
|
||||
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:cabbage_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
def.tiles = {"farming_cabbage_2.png"}
|
||||
minetest.register_node("farming:cabbage_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
def.tiles = {"farming_cabbage_3.png"}
|
||||
minetest.register_node("farming:cabbage_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
def.tiles = {"farming_cabbage_4.png"}
|
||||
minetest.register_node("farming:cabbage_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
def.tiles = {"farming_cabbage_5.png"}
|
||||
minetest.register_node("farming:cabbage_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
def.tiles = {"farming_cabbage_6.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
max_items = 2, items = {
|
||||
{items = {"farming:cabbage"}, rarity = 1},
|
||||
{items = {"farming:cabbage"}, rarity = 5}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:cabbage_6", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:cabbage"] = {
|
||||
crop = "farming:cabbage",
|
||||
seed = "farming:cabbage",
|
||||
minlight = 13,
|
||||
maxlight = 15,
|
||||
steps = 6
|
||||
}
|
@ -14,7 +14,7 @@ minetest.register_craftitem("farming:carrot", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:carrot_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(4),
|
||||
on_use = minetest.item_eat(4)
|
||||
})
|
||||
|
||||
-- carrot juice
|
||||
@ -22,7 +22,7 @@ minetest.register_craftitem("farming:carrot_juice", {
|
||||
description = S("Carrot Juice"),
|
||||
inventory_image = "farming_carrot_juice.png",
|
||||
on_use = minetest.item_eat(4, "vessels:drinking_glass"),
|
||||
groups = {vessel = 1},
|
||||
groups = {vessel = 1, drink = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -32,15 +32,15 @@ minetest.register_craft({
|
||||
"vessels:drinking_glass", "group:food_carrot", "farming:juicer"
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"},
|
||||
},
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
}
|
||||
})
|
||||
|
||||
-- golden carrot
|
||||
minetest.register_craftitem("farming:carrot_gold", {
|
||||
description = S("Golden Carrot"),
|
||||
inventory_image = "farming_carrot_gold.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
on_use = minetest.item_eat(10)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -48,12 +48,12 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"", "default:gold_lump", ""},
|
||||
{"default:gold_lump", "group:food_carrot", "default:gold_lump"},
|
||||
{"", "default:gold_lump", ""},
|
||||
{"", "default:gold_lump", ""}
|
||||
}
|
||||
})
|
||||
|
||||
-- carrot definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_carrot_1.png"},
|
||||
paramtype = "light",
|
||||
@ -71,48 +71,48 @@ local crop_def = {
|
||||
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:carrot_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:carrot_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_carrot_2.png"}
|
||||
minetest.register_node("farming:carrot_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_carrot_2.png"}
|
||||
minetest.register_node("farming:carrot_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_carrot_3.png"}
|
||||
minetest.register_node("farming:carrot_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_carrot_3.png"}
|
||||
minetest.register_node("farming:carrot_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_carrot_4.png"}
|
||||
minetest.register_node("farming:carrot_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_carrot_4.png"}
|
||||
minetest.register_node("farming:carrot_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_carrot_5.png"}
|
||||
minetest.register_node("farming:carrot_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_carrot_5.png"}
|
||||
minetest.register_node("farming:carrot_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_carrot_6.png"}
|
||||
minetest.register_node("farming:carrot_6", table.copy(crop_def))
|
||||
def.tiles = {"farming_carrot_6.png"}
|
||||
minetest.register_node("farming:carrot_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_carrot_7.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_carrot_7.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:carrot"}, rarity = 1},
|
||||
{items = {"farming:carrot 2"}, rarity = 3},
|
||||
{items = {"farming:carrot 2"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:carrot_7", table.copy(crop_def))
|
||||
minetest.register_node("farming:carrot_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_carrot_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_carrot_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:carrot 2"}, rarity = 1},
|
||||
{items = {"farming:carrot 3"}, rarity = 2},
|
||||
{items = {"farming:carrot 3"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:carrot_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:carrot_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:carrot"] = {
|
||||
|
@ -9,14 +9,14 @@ minetest.register_craftitem("farming:chili_pepper", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:chili_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(2),
|
||||
on_use = minetest.item_eat(2)
|
||||
})
|
||||
|
||||
-- bowl of chili
|
||||
minetest.register_craftitem("farming:chili_bowl", {
|
||||
description = S("Bowl of Chili"),
|
||||
inventory_image = "farming_chili_bowl.png",
|
||||
on_use = minetest.item_eat(8, "farming:bowl"),
|
||||
on_use = minetest.item_eat(8, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -25,19 +25,19 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
"group:food_chili_pepper", "group:food_barley",
|
||||
"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"},
|
||||
{"farming:chili_pepper"}
|
||||
}
|
||||
})
|
||||
|
||||
-- chili definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_chili_1.png"},
|
||||
paramtype = "light",
|
||||
@ -54,42 +54,42 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:chili_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:chili_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_chili_2.png"}
|
||||
minetest.register_node("farming:chili_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_chili_2.png"}
|
||||
minetest.register_node("farming:chili_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_chili_3.png"}
|
||||
minetest.register_node("farming:chili_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_chili_3.png"}
|
||||
minetest.register_node("farming:chili_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_chili_4.png"}
|
||||
minetest.register_node("farming:chili_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_chili_4.png"}
|
||||
minetest.register_node("farming:chili_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_chili_5.png"}
|
||||
minetest.register_node("farming:chili_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_chili_5.png"}
|
||||
minetest.register_node("farming:chili_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_chili_6.png"}
|
||||
minetest.register_node("farming:chili_6", table.copy(crop_def))
|
||||
def.tiles = {"farming_chili_6.png"}
|
||||
minetest.register_node("farming:chili_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_chili_7.png"}
|
||||
minetest.register_node("farming:chili_7", table.copy(crop_def))
|
||||
def.tiles = {"farming_chili_7.png"}
|
||||
minetest.register_node("farming:chili_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_chili_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_chili_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:chili_pepper 3"}, rarity = 1},
|
||||
{items = {"farming:chili_pepper 2"}, rarity = 2},
|
||||
{items = {"farming:chili_pepper 2"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:chili_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:chili_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:chili_pepper"] = {
|
||||
|
@ -70,13 +70,13 @@ minetest.register_craftitem("farming:cocoa_beans", {
|
||||
groups = {seed = 2, food_cocoa = 1, flammable = 2},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return place_cocoa(itemstack, placer, pointed_thing, "farming:cocoa_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "dye:brown 2",
|
||||
recipe = {
|
||||
{ "farming:cocoa_beans" },
|
||||
{ "farming:cocoa_beans" }
|
||||
}
|
||||
})
|
||||
|
||||
@ -84,13 +84,13 @@ minetest.register_craft( {
|
||||
minetest.register_craftitem("farming:cookie", {
|
||||
description = S("Cookie"),
|
||||
inventory_image = "farming_cookie.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
on_use = minetest.item_eat(2)
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "farming:cookie 8",
|
||||
recipe = {
|
||||
{"group:food_wheat", "group:food_cocoa", "group:food_wheat" },
|
||||
{"group:food_wheat", "group:food_cocoa", "group:food_wheat" }
|
||||
}
|
||||
})
|
||||
|
||||
@ -98,13 +98,13 @@ minetest.register_craft( {
|
||||
minetest.register_craftitem("farming:chocolate_dark", {
|
||||
description = S("Bar of Dark Chocolate"),
|
||||
inventory_image = "farming_chocolate_dark.png",
|
||||
on_use = minetest.item_eat(3),
|
||||
on_use = minetest.item_eat(3)
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "farming:chocolate_dark",
|
||||
recipe = {
|
||||
{"group:food_cocoa", "group:food_cocoa", "group:food_cocoa"},
|
||||
{"group:food_cocoa", "group:food_cocoa", "group:food_cocoa"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -114,7 +114,7 @@ minetest.register_node("farming:chocolate_block", {
|
||||
tiles = {"farming_chocolate_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, oddly_breakable_by_hand = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -122,19 +122,19 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"farming:chocolate_dark", "farming:chocolate_dark", "farming:chocolate_dark"},
|
||||
{"farming:chocolate_dark", "farming:chocolate_dark", "farming:chocolate_dark"},
|
||||
{"farming:chocolate_dark", "farming:chocolate_dark", "farming:chocolate_dark"},
|
||||
{"farming:chocolate_dark", "farming:chocolate_dark", "farming:chocolate_dark"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:chocolate_dark 9",
|
||||
recipe = {
|
||||
{"farming:chocolate_block"},
|
||||
{"farming:chocolate_block"}
|
||||
}
|
||||
})
|
||||
|
||||
-- cocoa definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cocoa_1.png"},
|
||||
paramtype = "light",
|
||||
@ -150,7 +150,7 @@ local crop_def = {
|
||||
},
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, growing = 1,
|
||||
not_in_creative_inventory=1, leafdecay = 1, leafdecay_drop = 1
|
||||
not_in_creative_inventory = 1, leafdecay = 1, leafdecay_drop = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
growth_check = function(pos, node_name)
|
||||
@ -158,37 +158,37 @@ local crop_def = {
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end,
|
||||
end
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:cocoa_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:cocoa_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_cocoa_2.png"}
|
||||
minetest.register_node("farming:cocoa_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_cocoa_2.png"}
|
||||
minetest.register_node("farming:cocoa_2", table.copy(def))
|
||||
|
||||
-- stage3
|
||||
crop_def.tiles = {"farming_cocoa_3.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_cocoa_3.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:cocoa_beans 1"}, rarity = 1},
|
||||
{items = {"farming:cocoa_beans 1"}, rarity = 1}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:cocoa_3", table.copy(crop_def))
|
||||
minetest.register_node("farming:cocoa_3", table.copy(def))
|
||||
|
||||
-- stage 4 (final)
|
||||
crop_def.tiles = {"farming_cocoa_4.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.growth_check = nil
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_cocoa_4.png"}
|
||||
def.groups.growing = nil
|
||||
def.growth_check = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:cocoa_beans 2"}, rarity = 1},
|
||||
{items = {"farming:cocoa_beans 1"}, rarity = 2},
|
||||
{items = {"farming:cocoa_beans 1"}, rarity = 4},
|
||||
{items = {"farming:cocoa_beans 1"}, rarity = 4}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:cocoa_4", table.copy(crop_def))
|
||||
minetest.register_node("farming:cocoa_4", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:cocoa_beans"] = {
|
||||
@ -218,27 +218,22 @@ minetest.register_on_generated(function(minp, maxp)
|
||||
|
||||
dir = math.random(1, 80)
|
||||
|
||||
if dir == 1 then
|
||||
pos.x = pos.x + 1
|
||||
elseif dir == 2 then
|
||||
pos.x = pos.x - 1
|
||||
elseif dir == 3 then
|
||||
pos.z = pos.z + 1
|
||||
elseif dir == 4 then
|
||||
pos.z = pos.z -1
|
||||
if dir == 1 then pos.x = pos.x + 1
|
||||
elseif dir == 2 then pos.x = pos.x - 1
|
||||
elseif dir == 3 then pos.z = pos.z + 1
|
||||
elseif dir == 4 then pos.z = pos.z -1
|
||||
end
|
||||
|
||||
if dir < 5
|
||||
and minetest.get_node(pos).name == "air"
|
||||
and minetest.get_node_light(pos) > 12 then
|
||||
|
||||
--print ("Cocoa Pod added at " .. minetest.pos_to_string(pos))
|
||||
--print ("Cocoa Pod added at " .. minetest.pos_to_string(pos))
|
||||
|
||||
minetest.swap_node(pos, {
|
||||
name = "farming:cocoa_" .. tostring(math.random(1, 4))
|
||||
name = "farming:cocoa_" .. tostring(math.random(4))
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
@ -8,13 +8,13 @@ minetest.register_craftitem("farming:coffee_beans", {
|
||||
groups = {seed = 2, food_coffee = 1, flammable = 2},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:coffee_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- cold cup of coffee
|
||||
minetest.register_node("farming:coffee_cup", {
|
||||
description = S("Cup of Coffee"),
|
||||
drawtype = "torchlike", --"plantlike",
|
||||
drawtype = "torchlike",
|
||||
tiles = {"farming_coffee_cup.png"},
|
||||
inventory_image = "farming_coffee_cup.png",
|
||||
wield_image = "farming_coffee_cup.png",
|
||||
@ -24,9 +24,9 @@ minetest.register_node("farming:coffee_cup", {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
|
||||
},
|
||||
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
|
||||
groups = {vessel = 1, dig_immediate = 3, attached_node = 1, drink = 1},
|
||||
on_use = minetest.item_eat(2, "vessels:drinking_glass"),
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_alias("farming:coffee_cup_hot", "farming:coffee_cup")
|
||||
@ -35,16 +35,17 @@ 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",
|
||||
recipe = {
|
||||
"vessels:drinking_glass", "group:food_coffee",
|
||||
"bucket:bucket_water", "group:food_saucepan"},
|
||||
replacements = {
|
||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
||||
{"group:food_saucepan", "farming:saucepan"},
|
||||
{"group:food_saucepan", "farming:saucepan"}
|
||||
}
|
||||
})
|
||||
|
||||
-- coffee definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_coffee_1.png"},
|
||||
paramtype = "light",
|
||||
@ -61,31 +62,31 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:coffee_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:coffee_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_coffee_2.png"}
|
||||
minetest.register_node("farming:coffee_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_coffee_2.png"}
|
||||
minetest.register_node("farming:coffee_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_coffee_3.png"}
|
||||
minetest.register_node("farming:coffee_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_coffee_3.png"}
|
||||
minetest.register_node("farming:coffee_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_coffee_4.png"}
|
||||
minetest.register_node("farming:coffee_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_coffee_4.png"}
|
||||
minetest.register_node("farming:coffee_4", table.copy(def))
|
||||
|
||||
-- stage 5 (final)
|
||||
crop_def.tiles = {"farming_coffee_5.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_coffee_5.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:coffee_beans 2"}, rarity = 1},
|
||||
{items = {"farming:coffee_beans 2"}, rarity = 2},
|
||||
{items = {"farming:coffee_beans 2"}, rarity = 3},
|
||||
{items = {"farming:coffee_beans 2"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:coffee_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:coffee_5", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:coffee"] = {
|
||||
|
@ -14,7 +14,7 @@ minetest.register_craftitem("farming:corn", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:corn_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(3),
|
||||
on_use = minetest.item_eat(3)
|
||||
})
|
||||
|
||||
-- corn on the cob (texture by TenPlus1)
|
||||
@ -22,7 +22,7 @@ minetest.register_craftitem("farming:corn_cob", {
|
||||
description = S("Corn on the Cob"),
|
||||
inventory_image = "farming_corn_cob.png",
|
||||
groups = {food_corn_cooked = 1, flammable = 2},
|
||||
on_use = minetest.item_eat(5),
|
||||
on_use = minetest.item_eat(5)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -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, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -66,7 +66,7 @@ minetest.register_node("farming:bottle_ethanol", {
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||
},
|
||||
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
@ -74,19 +74,19 @@ minetest.register_craft( {
|
||||
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"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:bottle_ethanol",
|
||||
burntime = 80, --240,
|
||||
burntime = 80,
|
||||
replacements = {{ "farming:bottle_ethanol", "vessels:glass_bottle"}}
|
||||
})
|
||||
|
||||
-- corn definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_corn_1.png"},
|
||||
paramtype = "light",
|
||||
@ -103,51 +103,51 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:corn_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:corn_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_corn_2.png"}
|
||||
minetest.register_node("farming:corn_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_corn_2.png"}
|
||||
minetest.register_node("farming:corn_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_corn_3.png"}
|
||||
minetest.register_node("farming:corn_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_corn_3.png"}
|
||||
minetest.register_node("farming:corn_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_corn_4.png"}
|
||||
minetest.register_node("farming:corn_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_corn_4.png"}
|
||||
minetest.register_node("farming:corn_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_corn_5.png"}
|
||||
minetest.register_node("farming:corn_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_corn_5.png"}
|
||||
minetest.register_node("farming:corn_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_corn_6.png"}
|
||||
crop_def.visual_scale = 1.9 -- 1.45
|
||||
minetest.register_node("farming:corn_6", table.copy(crop_def))
|
||||
def.tiles = {"farming_corn_6.png"}
|
||||
def.visual_scale = 1.9
|
||||
minetest.register_node("farming:corn_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_corn_7.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_corn_7.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:corn"}, rarity = 1},
|
||||
{items = {"farming:corn"}, rarity = 2},
|
||||
{items = {"farming:corn"}, rarity = 3},
|
||||
{items = {"farming:corn"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:corn_7", table.copy(crop_def))
|
||||
minetest.register_node("farming:corn_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_corn_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_corn_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:corn 2"}, rarity = 1},
|
||||
{items = {"farming:corn 2"}, rarity = 2},
|
||||
{items = {"farming:corn 2"}, rarity = 2},
|
||||
{items = {"farming:corn 2"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:corn_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:corn_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:corn"] = {
|
||||
|
@ -1,6 +1,32 @@
|
||||
|
||||
local S = farming.intllib
|
||||
|
||||
-- wild cotton as a source of cotton seed and a chance of cotton itself
|
||||
minetest.register_node("farming:cotton_wild", {
|
||||
description = S("Wild Cotton"),
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
tiles = {"farming_cotton_wild.png"},
|
||||
inventory_image = "farming_cotton_wild.png",
|
||||
wield_image = "farming_cotton_wild.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, attached_node = 1, flammable = 4},
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"farming:cotton"}, rarity = 2},
|
||||
{items = {"farming:seed_cotton"}, rarity = 1}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-6 / 16, -8 / 16, -6 / 16, 6 / 16, 5 / 16, 6 / 16}
|
||||
}
|
||||
})
|
||||
|
||||
-- cotton seeds
|
||||
minetest.register_node("farming:seed_cotton", {
|
||||
description = S("Cotton Seed"),
|
||||
@ -16,21 +42,21 @@ minetest.register_node("farming:seed_cotton", {
|
||||
selection_box = farming.select,
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:cotton_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- cotton / string
|
||||
|
||||
-- cotton
|
||||
minetest.register_craftitem("farming:cotton", {
|
||||
description = S("Cotton"),
|
||||
inventory_image = "farming_cotton.png",
|
||||
groups = {flammable = 4},
|
||||
groups = {flammable = 4}
|
||||
})
|
||||
|
||||
-- string
|
||||
minetest.register_craftitem("farming:string", {
|
||||
description = S("String"),
|
||||
inventory_image = "farming_string.png",
|
||||
groups = {flammable = 2},
|
||||
groups = {flammable = 2}
|
||||
})
|
||||
|
||||
-- cotton to wool
|
||||
@ -38,7 +64,7 @@ minetest.register_craft({
|
||||
output = "wool:white",
|
||||
recipe = {
|
||||
{"farming:cotton", "farming:cotton"},
|
||||
{"farming:cotton", "farming:cotton"},
|
||||
{"farming:cotton", "farming:cotton"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -47,7 +73,7 @@ minetest.register_craft({
|
||||
output = "farming:string 2",
|
||||
recipe = {
|
||||
{"farming:cotton"},
|
||||
{"farming:cotton"},
|
||||
{"farming:cotton"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -55,17 +81,17 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:string",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:cotton",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
||||
-- cotton definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cotton_1.png"},
|
||||
paramtype = "light",
|
||||
@ -82,65 +108,65 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:cotton_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:cotton_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_cotton_2.png"}
|
||||
minetest.register_node("farming:cotton_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_cotton_2.png"}
|
||||
minetest.register_node("farming:cotton_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_cotton_3.png"}
|
||||
minetest.register_node("farming:cotton_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_cotton_3.png"}
|
||||
minetest.register_node("farming:cotton_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_cotton_4.png"}
|
||||
minetest.register_node("farming:cotton_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_cotton_4.png"}
|
||||
minetest.register_node("farming:cotton_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_cotton_5.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_cotton_5.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:seed_cotton"}, rarity = 1},
|
||||
{items = {"farming:seed_cotton"}, rarity = 1}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:cotton_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:cotton_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_cotton_6.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_cotton_6.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:cotton"}, rarity = 1},
|
||||
{items = {"farming:cotton"}, rarity = 2},
|
||||
{items = {"farming:cotton"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:cotton_6", table.copy(crop_def))
|
||||
minetest.register_node("farming:cotton_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_cotton_7.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_cotton_7.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:cotton"}, rarity = 1},
|
||||
{items = {"farming:cotton"}, rarity = 2},
|
||||
{items = {"farming:seed_cotton"}, rarity = 1},
|
||||
{items = {"farming:seed_cotton"}, rarity = 2},
|
||||
{items = {"farming:seed_cotton"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:cotton_7", table.copy(crop_def))
|
||||
minetest.register_node("farming:cotton_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_cotton_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_cotton_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:cotton"}, rarity = 1},
|
||||
{items = {"farming:cotton"}, rarity = 2},
|
||||
{items = {"farming:cotton"}, rarity = 3},
|
||||
{items = {"farming:seed_cotton"}, rarity = 1},
|
||||
{items = {"farming:seed_cotton"}, rarity = 2},
|
||||
{items = {"farming:seed_cotton"}, rarity = 3},
|
||||
{items = {"farming:seed_cotton"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:cotton_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:cotton_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:cotton"] = {
|
||||
@ -151,7 +177,7 @@ farming.registered_plants["farming:cotton"] = {
|
||||
steps = 8
|
||||
}
|
||||
|
||||
--[[ Cotton (example, is already registered in cotton.lua)
|
||||
--[[ Cotton using api
|
||||
farming.register_plant("farming:cotton", {
|
||||
description = "Cotton seed",
|
||||
inventory_image = "farming_cotton_seed.png",
|
||||
|
@ -14,11 +14,11 @@ minetest.register_craftitem("farming:cucumber", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:cucumber_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(4),
|
||||
on_use = minetest.item_eat(4)
|
||||
})
|
||||
|
||||
-- cucumber definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cucumber_1.png"},
|
||||
paramtype = "light",
|
||||
@ -34,26 +34,26 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:cucumber_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:cucumber_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_cucumber_2.png"}
|
||||
minetest.register_node("farming:cucumber_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_cucumber_2.png"}
|
||||
minetest.register_node("farming:cucumber_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_cucumber_3.png"}
|
||||
minetest.register_node("farming:cucumber_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_cucumber_3.png"}
|
||||
minetest.register_node("farming:cucumber_3", table.copy(def))
|
||||
|
||||
-- stage 4 (final)
|
||||
crop_def.tiles = {"farming_cucumber_4.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_cucumber_4.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:cucumber 2"}, rarity = 1},
|
||||
{items = {"farming:cucumber 2"}, rarity = 2},
|
||||
{items = {"farming:cucumber 2"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:cucumber_4", table.copy(crop_def))
|
||||
minetest.register_node("farming:cucumber_4", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:cucumber"] = {
|
||||
|
@ -14,7 +14,7 @@ minetest.register_craftitem("farming:garlic_clove", {
|
||||
groups = {seed = 2, food_garlic_clove = 1, flammable = 3},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:garlic_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- garlic bulb
|
||||
@ -22,13 +22,13 @@ minetest.register_craftitem("farming:garlic", {
|
||||
description = S("Garlic"),
|
||||
inventory_image = "crops_garlic.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food_garlic = 1, flammable = 3},
|
||||
groups = {food_garlic = 1, flammable = 3}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:garlic_clove 8",
|
||||
recipe = { "farming:garlic" }
|
||||
recipe = {"farming:garlic"}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -58,8 +58,8 @@ minetest.register_node("farming:garlic_braid", {
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.13, -0.45, 0.5, 0.13, 0.45, 0.24},
|
||||
},
|
||||
{-0.13, -0.45, 0.5, 0.13, 0.45, 0.24}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@ -75,11 +75,11 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:garlic 9",
|
||||
recipe = { "farming:garlic_braid" }
|
||||
recipe = {"farming:garlic_braid"}
|
||||
})
|
||||
|
||||
-- crop definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"crops_garlic_plant_1.png"},
|
||||
paramtype = "light",
|
||||
@ -99,33 +99,31 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:garlic_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:garlic_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"crops_garlic_plant_2.png"}
|
||||
minetest.register_node("farming:garlic_2", table.copy(crop_def))
|
||||
def.tiles = {"crops_garlic_plant_2.png"}
|
||||
minetest.register_node("farming:garlic_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"crops_garlic_plant_3.png"}
|
||||
minetest.register_node("farming:garlic_3", table.copy(crop_def))
|
||||
def.tiles = {"crops_garlic_plant_3.png"}
|
||||
minetest.register_node("farming:garlic_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"crops_garlic_plant_4.png"}
|
||||
minetest.register_node("farming:garlic_4", table.copy(crop_def))
|
||||
def.tiles = {"crops_garlic_plant_4.png"}
|
||||
minetest.register_node("farming:garlic_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"crops_garlic_plant_5.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
max_items = 5, items = {
|
||||
{items = {"farming:garlic"}, rarity = 1},
|
||||
{items = {"farming:garlic"}, rarity = 1},
|
||||
{items = {"farming:garlic"}, rarity = 1},
|
||||
def.tiles = {"crops_garlic_plant_5.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:garlic 3"}, rarity = 1},
|
||||
{items = {"farming:garlic"}, rarity = 2},
|
||||
{items = {"farming:garlic"}, rarity = 5},
|
||||
{items = {"farming:garlic"}, rarity = 5}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:garlic_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:garlic_5", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:garlic"] = {
|
||||
|
@ -8,7 +8,6 @@ local function place_grapes(itemstack, placer, pointed_thing, plantname)
|
||||
|
||||
-- check if pointing at a node
|
||||
if not pt or pt.type ~= "node" then
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
@ -69,17 +68,16 @@ minetest.register_craftitem("farming:grapes", {
|
||||
inventory_image = "farming_grapes.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {seed = 2, food_grapes = 1, flammable = 3},
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return place_grapes(itemstack, placer, pointed_thing, "farming:grapes_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- grapes can be used for violet dye
|
||||
minetest.register_craft({
|
||||
output = "dye:violet",
|
||||
recipe = {
|
||||
{"farming:grapes"},
|
||||
{"farming:grapes"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -89,7 +87,7 @@ minetest.register_node("farming:trellis", {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_trellis.png"},
|
||||
inventory_image = "farming_trellis.png",
|
||||
visual_scale = 1.9, -- 1.45,
|
||||
visual_scale = 1.9,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
@ -159,21 +157,21 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:trellis",
|
||||
burntime = 15,
|
||||
burntime = 15
|
||||
})
|
||||
|
||||
-- grapes definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_grapes_1.png"},
|
||||
visual_scale = 1.9, -- 1.45,
|
||||
visual_scale = 1.9,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
@ -192,44 +190,44 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:grapes_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:grapes_1", table.copy(def))
|
||||
|
||||
-- stage2
|
||||
crop_def.tiles = {"farming_grapes_2.png"}
|
||||
minetest.register_node("farming:grapes_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_grapes_2.png"}
|
||||
minetest.register_node("farming:grapes_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_grapes_3.png"}
|
||||
minetest.register_node("farming:grapes_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_grapes_3.png"}
|
||||
minetest.register_node("farming:grapes_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_grapes_4.png"}
|
||||
minetest.register_node("farming:grapes_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_grapes_4.png"}
|
||||
minetest.register_node("farming:grapes_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_grapes_5.png"}
|
||||
minetest.register_node("farming:grapes_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_grapes_5.png"}
|
||||
minetest.register_node("farming:grapes_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_grapes_6.png"}
|
||||
minetest.register_node("farming:grapes_6", table.copy(crop_def))
|
||||
def.tiles = {"farming_grapes_6.png"}
|
||||
minetest.register_node("farming:grapes_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_grapes_7.png"}
|
||||
minetest.register_node("farming:grapes_7", table.copy(crop_def))
|
||||
def.tiles = {"farming_grapes_7.png"}
|
||||
minetest.register_node("farming:grapes_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_grapes_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_grapes_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:trellis"}, rarity = 1},
|
||||
{items = {"farming:grapes 3"}, rarity = 1},
|
||||
{items = {"farming:grapes 1"}, rarity = 2},
|
||||
{items = {"farming:grapes 1"}, rarity = 3},
|
||||
{items = {"farming:grapes 1"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:grapes_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:grapes_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:grapes"] = {
|
||||
@ -253,13 +251,13 @@ minetest.register_node("farming:grapebush", {
|
||||
items = {
|
||||
{items = {"farming:grapes 1"}, rarity = 1},
|
||||
{items = {"farming:grapes 1"}, rarity = 2},
|
||||
{items = {"farming:grapes 1"}, rarity = 3},
|
||||
{items = {"farming:grapes 1"}, rarity = 3}
|
||||
}
|
||||
},
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
not_in_creative_inventory=1
|
||||
not_in_creative_inventory = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
@ -16,13 +16,13 @@ minetest.register_node("farming:seed_hemp", {
|
||||
selection_box = farming.select,
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:hemp_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- harvested hemp
|
||||
minetest.register_craftitem("farming:hemp_leaf", {
|
||||
description = S("Hemp Leaf"),
|
||||
inventory_image = "farming_hemp_leaf.png",
|
||||
inventory_image = "farming_hemp_leaf.png"
|
||||
})
|
||||
|
||||
-- hemp oil
|
||||
@ -40,7 +40,7 @@ minetest.register_node("farming:hemp_oil", {
|
||||
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},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
@ -71,7 +71,7 @@ minetest.register_craft({
|
||||
-- hemp fibre
|
||||
minetest.register_craftitem("farming:hemp_fibre", {
|
||||
description = S("Hemp Fibre"),
|
||||
inventory_image = "farming_hemp_fibre.png",
|
||||
inventory_image = "farming_hemp_fibre.png"
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
@ -108,7 +108,7 @@ minetest.register_craft( {
|
||||
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"},
|
||||
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"},
|
||||
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"}
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
-- check and register stairs
|
||||
@ -134,19 +134,19 @@ end
|
||||
|
||||
-- paper
|
||||
minetest.register_craft( {
|
||||
output = "default:paper",
|
||||
output = "default:paper 3",
|
||||
recipe = {
|
||||
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"},
|
||||
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"}
|
||||
}
|
||||
})
|
||||
|
||||
-- string
|
||||
minetest.register_craft( {
|
||||
output = "farming:cotton",
|
||||
output = "farming:cotton 3",
|
||||
recipe = {
|
||||
{"farming:hemp_fibre"},
|
||||
{"farming:hemp_fibre"},
|
||||
{"farming:hemp_fibre"},
|
||||
{"farming:hemp_fibre"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -165,8 +165,8 @@ minetest.register_node("farming:hemp_rope", {
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
||||
},
|
||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}
|
||||
}
|
||||
})
|
||||
|
||||
-- string
|
||||
@ -175,12 +175,12 @@ minetest.register_craft( {
|
||||
recipe = {
|
||||
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"},
|
||||
{"farming:cotton", "farming:cotton", "farming:cotton"},
|
||||
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"},
|
||||
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"}
|
||||
}
|
||||
})
|
||||
|
||||
-- hemp definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_hemp_1.png"},
|
||||
paramtype = "light",
|
||||
@ -197,58 +197,58 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:hemp_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:hemp_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_hemp_2.png"}
|
||||
minetest.register_node("farming:hemp_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_hemp_2.png"}
|
||||
minetest.register_node("farming:hemp_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_hemp_3.png"}
|
||||
minetest.register_node("farming:hemp_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_hemp_3.png"}
|
||||
minetest.register_node("farming:hemp_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_hemp_4.png"}
|
||||
minetest.register_node("farming:hemp_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_hemp_4.png"}
|
||||
minetest.register_node("farming:hemp_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_hemp_5.png"}
|
||||
minetest.register_node("farming:hemp_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_hemp_5.png"}
|
||||
minetest.register_node("farming:hemp_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_hemp_6.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_hemp_6.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:hemp_leaf"}, rarity = 2},
|
||||
{items = {"farming:seed_hemp"}, rarity = 1},
|
||||
{items = {"farming:seed_hemp"}, rarity = 1}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:hemp_6", table.copy(crop_def))
|
||||
minetest.register_node("farming:hemp_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_hemp_7.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_hemp_7.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:hemp_leaf"}, rarity = 1},
|
||||
{items = {"farming:hemp_leaf"}, rarity = 3},
|
||||
{items = {"farming:seed_hemp"}, rarity = 1},
|
||||
{items = {"farming:seed_hemp"}, rarity = 3},
|
||||
{items = {"farming:seed_hemp"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:hemp_7", table.copy(crop_def))
|
||||
minetest.register_node("farming:hemp_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_hemp_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_hemp_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:hemp_leaf 2"}, rarity = 1},
|
||||
{items = {"farming:hemp_leaf"}, rarity = 2},
|
||||
{items = {"farming:seed_hemp"}, rarity = 1},
|
||||
{items = {"farming:seed_hemp"}, rarity = 2},
|
||||
{items = {"farming:seed_hemp"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:hemp_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:hemp_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:hemp"] = {
|
||||
|
@ -9,14 +9,14 @@ minetest.register_craftitem("farming:melon_slice", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:melon_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(2),
|
||||
on_use = minetest.item_eat(2)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:melon_8",
|
||||
recipe = {
|
||||
{"farming:melon_slice", "farming:melon_slice"},
|
||||
{"farming:melon_slice", "farming:melon_slice"},
|
||||
{"farming:melon_slice", "farming:melon_slice"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -24,11 +24,11 @@ minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:melon_slice 4",
|
||||
recipe = {"farming:melon_8", "farming:cutting_board"},
|
||||
replacements = {{"farming:cutting_board", "farming:cutting_board"}},
|
||||
replacements = {{"farming:cutting_board", "farming:cutting_board"}}
|
||||
})
|
||||
|
||||
-- melon definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_melon_1.png"},
|
||||
paramtype = "light",
|
||||
@ -45,45 +45,44 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:melon_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:melon_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_melon_2.png"}
|
||||
minetest.register_node("farming:melon_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_melon_2.png"}
|
||||
minetest.register_node("farming:melon_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_melon_3.png"}
|
||||
minetest.register_node("farming:melon_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_melon_3.png"}
|
||||
minetest.register_node("farming:melon_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_melon_4.png"}
|
||||
minetest.register_node("farming:melon_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_melon_4.png"}
|
||||
minetest.register_node("farming:melon_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_melon_5.png"}
|
||||
minetest.register_node("farming:melon_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_melon_5.png"}
|
||||
minetest.register_node("farming:melon_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_melon_6.png"}
|
||||
minetest.register_node("farming:melon_6", table.copy(crop_def))
|
||||
def.tiles = {"farming_melon_6.png"}
|
||||
minetest.register_node("farming:melon_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_melon_7.png"}
|
||||
minetest.register_node("farming:melon_7", table.copy(crop_def))
|
||||
def.tiles = {"farming_melon_7.png"}
|
||||
minetest.register_node("farming:melon_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.drawtype = "nodebox"
|
||||
crop_def.description = S("Melon")
|
||||
crop_def.tiles = {"farming_melon_top.png", "farming_melon_top.png", "farming_melon_side.png"}
|
||||
crop_def.selection_box = {-.5, -.5, -.5, .5, .5, .5}
|
||||
crop_def.walkable = true
|
||||
crop_def.groups = {
|
||||
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 = {
|
||||
food_melon = 1, snappy = 2, oddly_breakable_by_hand = 1,
|
||||
flammable = 2, plant = 1
|
||||
}
|
||||
--crop_def.drop = "farming:melon_slice 9"
|
||||
crop_def.drop = "farming:melon_8"
|
||||
minetest.register_node("farming:melon_8", table.copy(crop_def))
|
||||
def.drop = "farming:melon_8"
|
||||
minetest.register_node("farming:melon_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:melon"] = {
|
||||
|
@ -16,7 +16,7 @@ minetest.register_craftitem("farming:seed_mint", {
|
||||
minetest.register_craftitem("farming:mint_leaf", {
|
||||
description = S("Mint Leaf"),
|
||||
inventory_image = "farming_mint_leaf.png",
|
||||
groups = {food_mint = 1, flammable = 4},
|
||||
groups = {food_mint = 1, flammable = 4}
|
||||
})
|
||||
|
||||
-- mint tea
|
||||
@ -24,7 +24,7 @@ minetest.register_craftitem("farming:mint_tea", {
|
||||
description = S("Mint Tea"),
|
||||
inventory_image = "farming_mint_tea.png",
|
||||
on_use = minetest.item_eat(2, "vessels:drinking_glass"),
|
||||
groups = {flammable = 4},
|
||||
groups = {flammable = 4}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -37,12 +37,12 @@ minetest.register_craft({
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"},
|
||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
||||
},
|
||||
{"bucket:bucket_water", "bucket:bucket_empty"}
|
||||
}
|
||||
})
|
||||
|
||||
-- mint definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_mint_1.png"},
|
||||
paramtype = "light",
|
||||
@ -58,20 +58,20 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:mint_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:mint_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_mint_2.png"}
|
||||
minetest.register_node("farming:mint_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_mint_2.png"}
|
||||
minetest.register_node("farming:mint_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_mint_3.png"}
|
||||
minetest.register_node("farming:mint_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_mint_3.png"}
|
||||
minetest.register_node("farming:mint_3", table.copy(def))
|
||||
|
||||
-- stage 4 (final)
|
||||
crop_def.tiles = {"farming_mint_4.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_mint_4.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:mint_leaf 2"}, rarity = 1},
|
||||
{items = {"farming:mint_leaf 2"}, rarity = 2},
|
||||
@ -79,7 +79,7 @@ crop_def.drop = {
|
||||
{items = {"farming:seed_mint 2"}, rarity = 2},
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:mint_4", table.copy(crop_def))
|
||||
minetest.register_node("farming:mint_4", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:mint"] = {
|
||||
|
@ -15,7 +15,7 @@ minetest.register_craftitem("farming:onion", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:onion_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
-- onion soup
|
||||
@ -23,7 +23,7 @@ minetest.register_craftitem("farming:onion_soup", {
|
||||
description = S("Onion Soup"),
|
||||
inventory_image = "farming_onion_soup.png",
|
||||
groups = {flammable = 2},
|
||||
on_use = minetest.item_eat(6, "farming:bowl"),
|
||||
on_use = minetest.item_eat(6, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -38,7 +38,7 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
-- crop definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"crops_onion_plant_1.png"},
|
||||
paramtype = "light",
|
||||
@ -58,24 +58,24 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:onion_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:onion_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"crops_onion_plant_2.png"}
|
||||
minetest.register_node("farming:onion_2", table.copy(crop_def))
|
||||
def.tiles = {"crops_onion_plant_2.png"}
|
||||
minetest.register_node("farming:onion_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"crops_onion_plant_3.png"}
|
||||
minetest.register_node("farming:onion_3", table.copy(crop_def))
|
||||
def.tiles = {"crops_onion_plant_3.png"}
|
||||
minetest.register_node("farming:onion_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"crops_onion_plant_4.png"}
|
||||
minetest.register_node("farming:onion_4", table.copy(crop_def))
|
||||
def.tiles = {"crops_onion_plant_4.png"}
|
||||
minetest.register_node("farming:onion_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"crops_onion_plant_5.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"crops_onion_plant_5.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
max_items = 5, items = {
|
||||
{items = {"farming:onion"}, rarity = 1},
|
||||
{items = {"farming:onion"}, rarity = 1},
|
||||
@ -84,7 +84,7 @@ crop_def.drop = {
|
||||
{items = {"farming:onion"}, rarity = 5},
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:onion_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:onion_5", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:onion"] = {
|
||||
|
@ -31,7 +31,7 @@ minetest.register_craftitem("farming:pea_soup", {
|
||||
description = S("Pea Soup"),
|
||||
inventory_image = "farming_pea_soup.png",
|
||||
groups = {flammable = 2},
|
||||
on_use = minetest.item_eat(4, "farming:bowl"),
|
||||
on_use = minetest.item_eat(4, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -40,7 +40,7 @@ minetest.register_craft({
|
||||
recipe = {"group:food_peas", "group:food_peas", "group:food_bowl"}
|
||||
})
|
||||
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_pea_1.png"},
|
||||
paramtype = "light",
|
||||
@ -60,32 +60,32 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:pea_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:pea_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_pea_2.png"}
|
||||
minetest.register_node("farming:pea_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_pea_2.png"}
|
||||
minetest.register_node("farming:pea_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_pea_3.png"}
|
||||
minetest.register_node("farming:pea_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_pea_3.png"}
|
||||
minetest.register_node("farming:pea_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_pea_4.png"}
|
||||
minetest.register_node("farming:pea_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_pea_4.png"}
|
||||
minetest.register_node("farming:pea_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_pea_5.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_pea_5.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
max_items = 5, items = {
|
||||
{items = {"farming:pea_pod"}, rarity = 1},
|
||||
{items = {"farming:pea_pod"}, rarity = 2},
|
||||
{items = {"farming:pea_pod"}, rarity = 3},
|
||||
{items = {"farming:pea_pod"}, rarity = 5},
|
||||
{items = {"farming:pea_pod"}, rarity = 5}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:pea_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:pea_5", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:pea_pod"] = {
|
||||
|
@ -14,7 +14,7 @@ minetest.register_craftitem("farming:peppercorn", {
|
||||
groups = {seed = 1, food_peppercorn = 1, flammable = 3},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:pepper_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- green pepper
|
||||
@ -22,7 +22,7 @@ minetest.register_craftitem("farming:pepper", {
|
||||
description = S("Pepper"),
|
||||
inventory_image = "crops_pepper.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {food_pepper = 1, flammable = 3},
|
||||
groups = {food_pepper = 1, flammable = 3}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -48,18 +48,18 @@ minetest.register_node("farming:pepper_ground", {
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "farming:pepper_ground",
|
||||
type = "shapeless",
|
||||
recipe = {"group:food_peppercorn", "vessels:glass_bottle", "farming:mortar_pestle"},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
-- crop definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"crops_pepper_plant_1.png"},
|
||||
paramtype = "light",
|
||||
@ -79,31 +79,31 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:pepper_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:pepper_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"crops_pepper_plant_2.png"}
|
||||
minetest.register_node("farming:pepper_2", table.copy(crop_def))
|
||||
def.tiles = {"crops_pepper_plant_2.png"}
|
||||
minetest.register_node("farming:pepper_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"crops_pepper_plant_3.png"}
|
||||
minetest.register_node("farming:pepper_3", table.copy(crop_def))
|
||||
def.tiles = {"crops_pepper_plant_3.png"}
|
||||
minetest.register_node("farming:pepper_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"crops_pepper_plant_4.png"}
|
||||
minetest.register_node("farming:pepper_4", table.copy(crop_def))
|
||||
def.tiles = {"crops_pepper_plant_4.png"}
|
||||
minetest.register_node("farming:pepper_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"crops_pepper_plant_5.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
max_items = 2, items = {
|
||||
def.tiles = {"crops_pepper_plant_5.png"}
|
||||
def.groups.growing = 0
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:pepper 2"}, rarity = 1},
|
||||
{items = {"farming:pepper"}, rarity = 2},
|
||||
{items = {"farming:pepper"}, rarity = 3},
|
||||
{items = {"farming:pepper"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:pepper_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:pepper_5", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:pepper"] = {
|
||||
|
@ -8,7 +8,7 @@ minetest.register_craftitem("farming:pineapple_top", {
|
||||
groups = {seed = 2, flammable = 2},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:pineapple_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- pineapple
|
||||
@ -25,7 +25,7 @@ minetest.register_node("farming:pineapple", {
|
||||
type = "fixed",
|
||||
fixed = {-0.27, -0.37, -0.27, 0.27, 0.44, 0.27}
|
||||
},
|
||||
groups = {food_pineapple = 1, fleshy = 3, dig_immediate = 3, flammable = 2},
|
||||
groups = {food_pineapple = 1, fleshy = 3, dig_immediate = 3, flammable = 2}
|
||||
})
|
||||
|
||||
-- pineapple
|
||||
@ -33,7 +33,7 @@ minetest.register_craftitem("farming:pineapple_ring", {
|
||||
description = S("Pineapple Ring"),
|
||||
inventory_image = "farming_pineapple_ring.png",
|
||||
groups = {food_pineapple_ring = 1, flammable = 2},
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
@ -48,18 +48,19 @@ minetest.register_craftitem("farming:pineapple_juice", {
|
||||
description = S("Pineapple Juice"),
|
||||
inventory_image = "farming_pineapple_juice.png",
|
||||
on_use = minetest.item_eat(4, "vessels:drinking_glass"),
|
||||
groups = {vessel = 1},
|
||||
groups = {vessel = 1, drink = 1}
|
||||
})
|
||||
|
||||
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"},
|
||||
recipe = {
|
||||
"vessels:drinking_glass", "group:food_pineapple_ring",
|
||||
"group:food_pineapple_ring", "group:food_pineapple_ring",
|
||||
"farming:juicer"},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"},
|
||||
},
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -70,12 +71,12 @@ minetest.register_craft({
|
||||
"group:food_pineapple", "farming:juicer"
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"},
|
||||
},
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
}
|
||||
})
|
||||
|
||||
-- crop definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.5,
|
||||
tiles = {"farming_pineapple_1.png"},
|
||||
@ -93,42 +94,42 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:pineapple_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:pineapple_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_pineapple_2.png"}
|
||||
minetest.register_node("farming:pineapple_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_pineapple_2.png"}
|
||||
minetest.register_node("farming:pineapple_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_pineapple_3.png"}
|
||||
minetest.register_node("farming:pineapple_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_pineapple_3.png"}
|
||||
minetest.register_node("farming:pineapple_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_pineapple_4.png"}
|
||||
minetest.register_node("farming:pineapple_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_pineapple_4.png"}
|
||||
minetest.register_node("farming:pineapple_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_pineapple_5.png"}
|
||||
minetest.register_node("farming:pineapple_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_pineapple_5.png"}
|
||||
minetest.register_node("farming:pineapple_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_pineapple_6.png"}
|
||||
minetest.register_node("farming:pineapple_6", table.copy(crop_def))
|
||||
def.tiles = {"farming_pineapple_6.png"}
|
||||
minetest.register_node("farming:pineapple_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_pineapple_7.png"}
|
||||
minetest.register_node("farming:pineapple_7", table.copy(crop_def))
|
||||
def.tiles = {"farming_pineapple_7.png"}
|
||||
minetest.register_node("farming:pineapple_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_pineapple_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_pineapple_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:pineapple"}, rarity = 1},
|
||||
{items = {"farming:pineapple"}, rarity = 15},
|
||||
{items = {"farming:pineapple"}, rarity = 10}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:pineapple_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:pineapple_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:pineapple"] = {
|
||||
|
@ -14,23 +14,23 @@ minetest.register_craftitem("farming:potato", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:potato_1")
|
||||
end,
|
||||
-- on_use = minetest.item_eat(1),
|
||||
-- 1 in 3 chance of being poisoned
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if user then
|
||||
if math.random(1, 3) == 1 then
|
||||
if math.random(3) == 1 then
|
||||
return minetest.do_item_eat(-1, nil, itemstack, user, pointed_thing)
|
||||
else
|
||||
return minetest.do_item_eat(1, nil, itemstack, user, pointed_thing)
|
||||
end
|
||||
end
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- baked potato
|
||||
minetest.register_craftitem("farming:baked_potato", {
|
||||
description = S("Baked Potato"),
|
||||
inventory_image = "farming_baked_potato.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -44,7 +44,7 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:potato_salad", {
|
||||
description = S("Cucumber and Potato Salad"),
|
||||
inventory_image = "farming_potato_salad.png",
|
||||
on_use = minetest.item_eat(10, "farming:bowl"),
|
||||
on_use = minetest.item_eat(10, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -52,12 +52,12 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"group:food_cucumber"},
|
||||
{"farming:baked_potato"},
|
||||
{"group:food_bowl"},
|
||||
{"group:food_bowl"}
|
||||
}
|
||||
})
|
||||
|
||||
-- potato definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_potato_1.png"},
|
||||
paramtype = "light",
|
||||
@ -75,32 +75,32 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:potato_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:potato_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_potato_2.png"}
|
||||
minetest.register_node("farming:potato_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_potato_2.png"}
|
||||
minetest.register_node("farming:potato_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_potato_3.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_potato_3.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:potato"}, rarity = 1},
|
||||
{items = {"farming:potato"}, rarity = 3},
|
||||
{items = {"farming:potato"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:potato_3", table.copy(crop_def))
|
||||
minetest.register_node("farming:potato_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_potato_4.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_potato_4.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:potato 2"}, rarity = 1},
|
||||
{items = {"farming:potato 3"}, rarity = 2},
|
||||
{items = {"farming:potato 3"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:potato_4", table.copy(crop_def))
|
||||
minetest.register_node("farming:potato_4", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:potato"] = {
|
||||
|
@ -13,14 +13,14 @@ minetest.register_craftitem("farming:pumpkin_slice", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:pumpkin_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(2),
|
||||
on_use = minetest.item_eat(2)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pumpkin",
|
||||
recipe = {
|
||||
{"farming:pumpkin_slice", "farming:pumpkin_slice"},
|
||||
{"farming:pumpkin_slice", "farming:pumpkin_slice"},
|
||||
{"farming:pumpkin_slice", "farming:pumpkin_slice"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -28,19 +28,16 @@ minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:pumpkin_slice 4",
|
||||
recipe = {"farming:pumpkin", "farming:cutting_board"},
|
||||
replacements = {{"farming:cutting_board", "farming:cutting_board"}},
|
||||
replacements = {{"farming:cutting_board", "farming:cutting_board"}}
|
||||
})
|
||||
|
||||
-- jack 'o lantern
|
||||
minetest.register_node("farming:jackolantern", {
|
||||
description = S("Jack 'O Lantern (punch to turn on and off)"),
|
||||
tiles = {
|
||||
"farming_pumpkin_top.png",
|
||||
"farming_pumpkin_top.png",
|
||||
"farming_pumpkin_side.png",
|
||||
"farming_pumpkin_side.png",
|
||||
"farming_pumpkin_side.png",
|
||||
"farming_pumpkin_face_off.png"
|
||||
"farming_pumpkin_top.png", "farming_pumpkin_top.png",
|
||||
"farming_pumpkin_side.png", "farming_pumpkin_side.png",
|
||||
"farming_pumpkin_side.png", "farming_pumpkin_face_off.png"
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy = 1, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
@ -50,17 +47,14 @@ minetest.register_node("farming:jackolantern", {
|
||||
if minetest.is_protected(pos, name) then return end
|
||||
node.name = "farming:jackolantern_on"
|
||||
minetest.swap_node(pos, node)
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("farming:jackolantern_on", {
|
||||
tiles = {
|
||||
"farming_pumpkin_top.png",
|
||||
"farming_pumpkin_top.png",
|
||||
"farming_pumpkin_side.png",
|
||||
"farming_pumpkin_side.png",
|
||||
"farming_pumpkin_side.png",
|
||||
"farming_pumpkin_face_on.png"
|
||||
"farming_pumpkin_top.png", "farming_pumpkin_top.png",
|
||||
"farming_pumpkin_side.png", "farming_pumpkin_side.png",
|
||||
"farming_pumpkin_side.png", "farming_pumpkin_face_on.png"
|
||||
},
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
paramtype2 = "facedir",
|
||||
@ -75,14 +69,14 @@ minetest.register_node("farming:jackolantern_on", {
|
||||
if minetest.is_protected(pos, name) then return end
|
||||
node.name = "farming:jackolantern"
|
||||
minetest.swap_node(pos, node)
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:jackolantern",
|
||||
recipe = {
|
||||
{"default:torch"},
|
||||
{"group:food_pumpkin"},
|
||||
{"group:food_pumpkin"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -99,17 +93,17 @@ minetest.register_node("farming:scarecrow_bottom", {
|
||||
fixed = {
|
||||
{-1/16, -8/16, -1/16, 1/16, 8/16, 1/16},
|
||||
{-12/16, 4/16, -1/16, 12/16, 2/16, 1/16},
|
||||
},
|
||||
}
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2},
|
||||
groups = {snappy = 3, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:scarecrow_bottom",
|
||||
recipe = {
|
||||
{"", "group:stick", "",},
|
||||
{"group:stick", "group:stick", "group:stick",},
|
||||
{"", "group:stick", "",}
|
||||
{"", "group:stick", ""},
|
||||
{"group:stick", "group:stick", "group:stick"},
|
||||
{"", "group:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
@ -118,12 +112,12 @@ minetest.register_craftitem("farming:pumpkin_bread", {
|
||||
description = S("Pumpkin Bread"),
|
||||
inventory_image = "farming_pumpkin_bread.png",
|
||||
on_use = minetest.item_eat(8),
|
||||
groups = {food_bread = 1, flammable = 2},
|
||||
groups = {food_bread = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:pumpkin_dough", {
|
||||
description = S("Pumpkin Dough"),
|
||||
inventory_image = "farming_pumpkin_dough.png",
|
||||
inventory_image = "farming_pumpkin_dough.png"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -140,7 +134,7 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
-- pumpkin definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_pumpkin_1.png"},
|
||||
paramtype = "light",
|
||||
@ -158,44 +152,33 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:pumpkin_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:pumpkin_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_pumpkin_2.png"}
|
||||
minetest.register_node("farming:pumpkin_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_pumpkin_2.png"}
|
||||
minetest.register_node("farming:pumpkin_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_pumpkin_3.png"}
|
||||
minetest.register_node("farming:pumpkin_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_pumpkin_3.png"}
|
||||
minetest.register_node("farming:pumpkin_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_pumpkin_4.png"}
|
||||
minetest.register_node("farming:pumpkin_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_pumpkin_4.png"}
|
||||
minetest.register_node("farming:pumpkin_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_pumpkin_5.png"}
|
||||
minetest.register_node("farming:pumpkin_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_pumpkin_5.png"}
|
||||
minetest.register_node("farming:pumpkin_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_pumpkin_6.png"}
|
||||
minetest.register_node("farming:pumpkin_6", table.copy(crop_def))
|
||||
def.tiles = {"farming_pumpkin_6.png"}
|
||||
minetest.register_node("farming:pumpkin_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_pumpkin_7.png"}
|
||||
minetest.register_node("farming:pumpkin_7", table.copy(crop_def))
|
||||
def.tiles = {"farming_pumpkin_7.png"}
|
||||
minetest.register_node("farming:pumpkin_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
--[[
|
||||
crop_def.tiles = {"farming_pumpkin_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
items = {
|
||||
{items = {"farming:pumpkin_slice 9"}, rarity = 1},
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:pumpkin_8", table.copy(crop_def))
|
||||
]]
|
||||
|
||||
minetest.register_node("farming:pumpkin_8", {
|
||||
description = S("Pumpkin"),
|
||||
tiles = {
|
||||
@ -208,7 +191,7 @@ 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()
|
||||
})
|
||||
|
||||
minetest.register_alias("farming:pumpkin", "farming:pumpkin_8")
|
||||
|
@ -10,7 +10,7 @@ minetest.register_craftitem("farming:raspberries", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:raspberry_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
-- raspberry smoothie
|
||||
@ -18,7 +18,7 @@ minetest.register_craftitem("farming:smoothie_raspberry", {
|
||||
description = S("Raspberry Smoothie"),
|
||||
inventory_image = "farming_raspberry_smoothie.png",
|
||||
on_use = minetest.item_eat(2, "vessels:drinking_glass"),
|
||||
groups = {vessel = 1},
|
||||
groups = {vessel = 1, drink = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -26,12 +26,12 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"default:snow"},
|
||||
{"group:food_raspberries"},
|
||||
{"vessels:drinking_glass"},
|
||||
{"vessels:drinking_glass"}
|
||||
}
|
||||
})
|
||||
|
||||
-- raspberries definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_raspberry_1.png"},
|
||||
paramtype = "light",
|
||||
@ -48,27 +48,27 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:raspberry_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:raspberry_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_raspberry_2.png"}
|
||||
minetest.register_node("farming:raspberry_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_raspberry_2.png"}
|
||||
minetest.register_node("farming:raspberry_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_raspberry_3.png"}
|
||||
minetest.register_node("farming:raspberry_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_raspberry_3.png"}
|
||||
minetest.register_node("farming:raspberry_3", table.copy(def))
|
||||
|
||||
-- stage 4 (final)
|
||||
crop_def.tiles = {"farming_raspberry_4.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_raspberry_4.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:raspberries 2"}, rarity = 1},
|
||||
{items = {"farming:raspberries"}, rarity = 2},
|
||||
{items = {"farming:raspberries"}, rarity = 3},
|
||||
{items = {"farming:raspberries"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:raspberry_4", table.copy(crop_def))
|
||||
minetest.register_node("farming:raspberry_4", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:raspberries"] = {
|
||||
|
@ -9,14 +9,14 @@ minetest.register_craftitem("farming:rhubarb", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:rhubarb_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
-- rhubarb pie
|
||||
minetest.register_craftitem("farming:rhubarb_pie", {
|
||||
description = S("Rhubarb Pie"),
|
||||
inventory_image = "farming_rhubarb_pie.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -24,13 +24,13 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"farming:baking_tray", "group:food_sugar", ""},
|
||||
{"group:food_rhubarb", "group:food_rhubarb", "group:food_rhubarb"},
|
||||
{"group:food_wheat", "group:food_wheat", "group:food_wheat"},
|
||||
{"group:food_wheat", "group:food_wheat", "group:food_wheat"}
|
||||
},
|
||||
replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
|
||||
})
|
||||
|
||||
-- rhubarb definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_rhubarb_1.png"},
|
||||
paramtype = "light",
|
||||
@ -43,27 +43,29 @@ local crop_def = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
not_in_creative_inventory = 1, growing = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
minlight = 10,
|
||||
maxlight = 12,
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:rhubarb_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:rhubarb_1", table.copy(def))
|
||||
|
||||
-- stage2
|
||||
crop_def.tiles = {"farming_rhubarb_2.png"}
|
||||
minetest.register_node("farming:rhubarb_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_rhubarb_2.png"}
|
||||
minetest.register_node("farming:rhubarb_2", table.copy(def))
|
||||
|
||||
-- stage 3 (final)
|
||||
crop_def.tiles = {"farming_rhubarb_3.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_rhubarb_3.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:rhubarb 2"}, rarity = 1},
|
||||
{items = {"farming:rhubarb"}, rarity = 2},
|
||||
{items = {"farming:rhubarb"}, rarity = 3},
|
||||
{items = {"farming:rhubarb"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:rhubarb_3", table.copy(crop_def))
|
||||
minetest.register_node("farming:rhubarb_3", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:rhubarb"] = {
|
||||
|
@ -10,7 +10,7 @@ farming.register_plant("farming:rye", {
|
||||
paramtype2 = "meshoptions",
|
||||
inventory_image = "farming_rye_seed.png",
|
||||
steps = 8,
|
||||
place_param2 = 3,
|
||||
place_param2 = 3
|
||||
})
|
||||
|
||||
minetest.override_item("farming:rye", {
|
||||
@ -25,7 +25,7 @@ minetest.register_craft({
|
||||
"farming:rye", "farming:rye", "farming:rye", "farming:rye",
|
||||
"farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
-- Oats
|
||||
@ -35,7 +35,7 @@ farming.register_plant("farming:oat", {
|
||||
paramtype2 = "meshoptions",
|
||||
inventory_image = "farming_oat_seed.png",
|
||||
steps = 8,
|
||||
place_param2 = 3,
|
||||
place_param2 = 3
|
||||
})
|
||||
|
||||
minetest.override_item("farming:oat", {
|
||||
@ -50,7 +50,7 @@ minetest.register_craft({
|
||||
"farming:oat", "farming:oat", "farming:oat", "farming:oat",
|
||||
"farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
-- Rice
|
||||
@ -60,7 +60,7 @@ farming.register_plant("farming:rice", {
|
||||
paramtype2 = "meshoptions",
|
||||
inventory_image = "farming_rice_seed.png",
|
||||
steps = 8,
|
||||
place_param2 = 3,
|
||||
place_param2 = 3
|
||||
})
|
||||
|
||||
minetest.override_item("farming:rice", {
|
||||
@ -72,13 +72,13 @@ minetest.register_craftitem("farming:rice_bread", {
|
||||
description = S("Rice Bread"),
|
||||
inventory_image = "farming_rice_bread.png",
|
||||
on_use = minetest.item_eat(5),
|
||||
groups = {food_rice_bread = 1, flammable = 2},
|
||||
groups = {food_rice_bread = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:rice_flour", {
|
||||
description = S("Rice Flour"),
|
||||
inventory_image = "farming_rice_flour.png",
|
||||
groups = {food_rice_flour = 1, flammable = 1},
|
||||
groups = {food_rice_flour = 1, flammable = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -88,7 +88,7 @@ minetest.register_craft({
|
||||
"farming:rice", "farming:rice", "farming:rice", "farming:rice",
|
||||
"farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -113,7 +113,7 @@ minetest.register_craft({
|
||||
"farming:wheat", "farming:barley", "farming:oat",
|
||||
"farming:rye", "farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
-- Multigrain bread
|
||||
@ -122,7 +122,7 @@ minetest.register_craftitem("farming:bread_multigrain", {
|
||||
description = S("Multigrain Bread"),
|
||||
inventory_image = "farming_bread_multigrain.png",
|
||||
on_use = minetest.item_eat(7),
|
||||
groups = {food_bread = 1, flammable = 2},
|
||||
groups = {food_bread = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -137,29 +137,29 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:rice_bread",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:bread_multigrain",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:rye",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:oat",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:rice",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
@ -14,11 +14,11 @@ minetest.register_craftitem("farming:tomato", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:tomato_1")
|
||||
end,
|
||||
on_use = minetest.item_eat(4),
|
||||
on_use = minetest.item_eat(4)
|
||||
})
|
||||
|
||||
-- tomato definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_tomato_1.png"},
|
||||
paramtype = "light",
|
||||
@ -35,48 +35,49 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:tomato_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:tomato_1", table.copy(def))
|
||||
|
||||
-- stage2
|
||||
crop_def.tiles = {"farming_tomato_2.png"}
|
||||
minetest.register_node("farming:tomato_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_tomato_2.png"}
|
||||
minetest.register_node("farming:tomato_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_tomato_3.png"}
|
||||
minetest.register_node("farming:tomato_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_tomato_3.png"}
|
||||
minetest.register_node("farming:tomato_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_tomato_4.png"}
|
||||
minetest.register_node("farming:tomato_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_tomato_4.png"}
|
||||
minetest.register_node("farming:tomato_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_tomato_5.png"}
|
||||
minetest.register_node("farming:tomato_5", table.copy(crop_def))
|
||||
def.tiles = {"farming_tomato_5.png"}
|
||||
minetest.register_node("farming:tomato_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_tomato_6.png"}
|
||||
minetest.register_node("farming:tomato_6", table.copy(crop_def))
|
||||
def.tiles = {"farming_tomato_6.png"}
|
||||
minetest.register_node("farming:tomato_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_tomato_7.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_tomato_7.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:tomato"}, rarity = 1},
|
||||
{items = {"farming:tomato"}, rarity = 3},
|
||||
{items = {"farming:tomato"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:tomato_7", table.copy(crop_def))
|
||||
minetest.register_node("farming:tomato_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_tomato_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_tomato_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:tomato 3"}, rarity = 1},
|
||||
{items = {"farming:tomato 3"}, rarity = 2},
|
||||
{items = {"farming:tomato 2"}, rarity = 2},
|
||||
{items = {"farming:tomato 1"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:tomato_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:tomato_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:tomato"] = {
|
||||
|
@ -16,14 +16,14 @@ minetest.register_node("farming:seed_wheat", {
|
||||
selection_box = farming.select,
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:wheat_1")
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
-- harvested wheat
|
||||
minetest.register_craftitem("farming:wheat", {
|
||||
description = S("Wheat"),
|
||||
inventory_image = "farming_wheat.png",
|
||||
groups = {food_wheat = 1, flammable = 4},
|
||||
groups = {food_wheat = 1, flammable = 4}
|
||||
})
|
||||
|
||||
-- straw
|
||||
@ -32,7 +32,7 @@ minetest.register_node("farming:straw", {
|
||||
tiles = {"farming_straw.png"},
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, flammable = 4, fall_damage_add_percent = -30},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -40,14 +40,14 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
||||
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
||||
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
||||
{"farming:wheat", "farming:wheat", "farming:wheat"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:wheat 3",
|
||||
recipe = {
|
||||
{"farming:straw"},
|
||||
{"farming:straw"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -76,7 +76,7 @@ end
|
||||
minetest.register_craftitem("farming:flour", {
|
||||
description = S("Flour"),
|
||||
inventory_image = "farming_flour.png",
|
||||
groups = {food_flour = 1, flammable = 1},
|
||||
groups = {food_flour = 1, flammable = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -86,7 +86,7 @@ minetest.register_craft({
|
||||
"farming:wheat", "farming:wheat", "farming:wheat",
|
||||
"farming:wheat", "farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
-- bread
|
||||
@ -94,7 +94,7 @@ minetest.register_craftitem("farming:bread", {
|
||||
description = S("Bread"),
|
||||
inventory_image = "farming_bread.png",
|
||||
on_use = minetest.item_eat(5),
|
||||
groups = {food_bread = 1, flammable = 2},
|
||||
groups = {food_bread = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -109,14 +109,14 @@ minetest.register_craftitem("farming:bread_slice", {
|
||||
description = S("Sliced Bread"),
|
||||
inventory_image = "farming_bread_slice.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food_bread_slice = 1, flammable = 2},
|
||||
groups = {food_bread_slice = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:bread_slice 5",
|
||||
recipe = {"farming:bread", "group:food_cutting_board"},
|
||||
replacements = {{"group:food_cutting_board", "farming:cutting_board"}},
|
||||
replacements = {{"group:food_cutting_board", "farming:cutting_board"}}
|
||||
})
|
||||
|
||||
-- toast
|
||||
@ -124,7 +124,7 @@ minetest.register_craftitem("farming:toast", {
|
||||
description = S("Toast"),
|
||||
inventory_image = "farming_toast.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food_toast = 1, flammable = 2},
|
||||
groups = {food_toast = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -139,7 +139,7 @@ minetest.register_craftitem("farming:toast_sandwich", {
|
||||
description = S("Toast Sandwich"),
|
||||
inventory_image = "farming_toast_sandwich.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
groups = {flammable = 2},
|
||||
groups = {flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -147,12 +147,12 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"farming:bread_slice"},
|
||||
{"farming:toast"},
|
||||
{"farming:bread_slice"},
|
||||
{"farming:bread_slice"}
|
||||
}
|
||||
})
|
||||
|
||||
-- wheat definition
|
||||
local crop_def = {
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_wheat_1.png"},
|
||||
paramtype = "light",
|
||||
@ -171,64 +171,64 @@ local crop_def = {
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
minetest.register_node("farming:wheat_1", table.copy(crop_def))
|
||||
minetest.register_node("farming:wheat_1", table.copy(def))
|
||||
|
||||
-- stage 2
|
||||
crop_def.tiles = {"farming_wheat_2.png"}
|
||||
minetest.register_node("farming:wheat_2", table.copy(crop_def))
|
||||
def.tiles = {"farming_wheat_2.png"}
|
||||
minetest.register_node("farming:wheat_2", table.copy(def))
|
||||
|
||||
-- stage 3
|
||||
crop_def.tiles = {"farming_wheat_3.png"}
|
||||
minetest.register_node("farming:wheat_3", table.copy(crop_def))
|
||||
def.tiles = {"farming_wheat_3.png"}
|
||||
minetest.register_node("farming:wheat_3", table.copy(def))
|
||||
|
||||
-- stage 4
|
||||
crop_def.tiles = {"farming_wheat_4.png"}
|
||||
minetest.register_node("farming:wheat_4", table.copy(crop_def))
|
||||
def.tiles = {"farming_wheat_4.png"}
|
||||
minetest.register_node("farming:wheat_4", table.copy(def))
|
||||
|
||||
-- stage 5
|
||||
crop_def.tiles = {"farming_wheat_5.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_wheat_5.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:wheat"}, rarity = 2},
|
||||
{items = {"farming:seed_wheat"}, rarity = 2},
|
||||
{items = {"farming:seed_wheat"}, rarity = 2}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:wheat_5", table.copy(crop_def))
|
||||
minetest.register_node("farming:wheat_5", table.copy(def))
|
||||
|
||||
-- stage 6
|
||||
crop_def.tiles = {"farming_wheat_6.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_wheat_6.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:wheat"}, rarity = 2},
|
||||
{items = {"farming:seed_wheat"}, rarity = 1},
|
||||
{items = {"farming:seed_wheat"}, rarity = 1}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:wheat_6", table.copy(crop_def))
|
||||
minetest.register_node("farming:wheat_6", table.copy(def))
|
||||
|
||||
-- stage 7
|
||||
crop_def.tiles = {"farming_wheat_7.png"}
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_wheat_7.png"}
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:wheat"}, rarity = 1},
|
||||
{items = {"farming:wheat"}, rarity = 3},
|
||||
{items = {"farming:seed_wheat"}, rarity = 1},
|
||||
{items = {"farming:seed_wheat"}, rarity = 3},
|
||||
{items = {"farming:seed_wheat"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:wheat_7", table.copy(crop_def))
|
||||
minetest.register_node("farming:wheat_7", table.copy(def))
|
||||
|
||||
-- stage 8 (final)
|
||||
crop_def.tiles = {"farming_wheat_8.png"}
|
||||
crop_def.groups.growing = 0
|
||||
crop_def.drop = {
|
||||
def.tiles = {"farming_wheat_8.png"}
|
||||
def.groups.growing = nil
|
||||
def.drop = {
|
||||
items = {
|
||||
{items = {"farming:wheat"}, rarity = 1},
|
||||
{items = {"farming:wheat"}, rarity = 3},
|
||||
{items = {"farming:seed_wheat"}, rarity = 1},
|
||||
{items = {"farming:seed_wheat"}, rarity = 3},
|
||||
{items = {"farming:seed_wheat"}, rarity = 3}
|
||||
}
|
||||
}
|
||||
minetest.register_node("farming:wheat_8", table.copy(crop_def))
|
||||
minetest.register_node("farming:wheat_8", table.copy(def))
|
||||
|
||||
-- add to registered_plants
|
||||
farming.registered_plants["farming:wheat"] = {
|
||||
@ -243,11 +243,11 @@ farming.registered_plants["farming:wheat"] = {
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:straw",
|
||||
burntime = 3,
|
||||
burntime = 3
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:wheat",
|
||||
burntime = 1,
|
||||
burntime = 1
|
||||
})
|
||||
|
@ -30,6 +30,7 @@ farming.pineapple = 0.001
|
||||
farming.peas = 0.001
|
||||
farming.beetroot = 0.001
|
||||
farming.mint = 0.005
|
||||
farming.cabbage = 0.001
|
||||
farming.grains = true -- true or false only
|
||||
|
||||
-- default rarety of crops on map (higher number = more crops)
|
||||
|
172
farming/food.lua
@ -6,14 +6,14 @@ local S = farming.intllib
|
||||
minetest.register_craftitem("farming:sugar", {
|
||||
description = S("Sugar"),
|
||||
inventory_image = "farming_sugar.png",
|
||||
groups = {food_sugar = 1, flammable = 3},
|
||||
groups = {food_sugar = 1, flammable = 3}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 3,
|
||||
output = "farming:sugar 2",
|
||||
recipe = "default:papyrus",
|
||||
recipe = "default:papyrus"
|
||||
})
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ minetest.register_node("farming:salt", {
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -60,7 +60,7 @@ minetest.register_node("farming:rose_water", {
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -68,11 +68,11 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"flowers:rose", "flowers:rose", "flowers:rose"},
|
||||
{"flowers:rose", "flowers:rose", "flowers:rose"},
|
||||
{"bucket:bucket_water", "group:food_pot", "vessels:glass_bottle"},
|
||||
{"bucket:bucket_water", "group:food_pot", "vessels:glass_bottle"}
|
||||
},
|
||||
replacements = {
|
||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
||||
{"group:food_pot", "farming:pot"},
|
||||
{"group:food_pot", "farming:pot"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -82,7 +82,7 @@ minetest.register_craftitem("farming:turkish_delight", {
|
||||
description = S("Turkish Delight"),
|
||||
inventory_image = "farming_turkish_delight.png",
|
||||
groups = {flammable = 3},
|
||||
on_use = minetest.item_eat(2),
|
||||
on_use = minetest.item_eat(2)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -90,12 +90,12 @@ 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_cornstarch", "group:food_sugar", "dye:pink"}
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_cornstarch", "farming:bowl"},
|
||||
{"group:food_rose_water", "vessels:glass_bottle"},
|
||||
},
|
||||
{"group:food_rose_water", "vessels:glass_bottle"}
|
||||
}
|
||||
})
|
||||
|
||||
--= Garlic Bread
|
||||
@ -104,13 +104,13 @@ minetest.register_craftitem("farming:garlic_bread", {
|
||||
description = S("Garlic Bread"),
|
||||
inventory_image = "farming_garlic_bread.png",
|
||||
groups = {flammable = 3},
|
||||
on_use = minetest.item_eat(2),
|
||||
on_use = minetest.item_eat(2)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
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)
|
||||
@ -118,7 +118,7 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:donut", {
|
||||
description = S("Donut"),
|
||||
inventory_image = "farming_donut.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
on_use = minetest.item_eat(4)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -126,35 +126,35 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"", "group:food_wheat", ""},
|
||||
{"group:food_wheat", "group:food_sugar", "group:food_wheat"},
|
||||
{"", "group:food_wheat", ""},
|
||||
{"", "group:food_wheat", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:donut_chocolate", {
|
||||
description = S("Chocolate Donut"),
|
||||
inventory_image = "farming_donut_chocolate.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:donut_chocolate",
|
||||
recipe = {
|
||||
{"group:food_cocoa"},
|
||||
{"farming:donut"},
|
||||
{"farming:donut"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:donut_apple", {
|
||||
description = S("Apple Donut"),
|
||||
inventory_image = "farming_donut_apple.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:donut_apple",
|
||||
recipe = {
|
||||
{"default:apple"},
|
||||
{"farming:donut"},
|
||||
{"farming:donut"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -163,7 +163,7 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:porridge", {
|
||||
description = S("Porridge"),
|
||||
inventory_image = "farming_porridge.png",
|
||||
on_use = minetest.item_eat(6, "farming:bowl"),
|
||||
on_use = minetest.item_eat(6, "farming:bowl")
|
||||
})
|
||||
|
||||
minetest.after(0, function()
|
||||
@ -202,7 +202,7 @@ end)
|
||||
minetest.register_craftitem("farming:jaffa_cake", {
|
||||
description = S("Jaffa Cake"),
|
||||
inventory_image = "farming_jaffa_cake.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -218,3 +218,135 @@ minetest.register_craft({
|
||||
{"mobs:bucket_milk", "bucket:bucket_empty"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Apple Pie
|
||||
|
||||
minetest.register_craftitem("farming:apple_pie", {
|
||||
description = S("Apple Pie"),
|
||||
inventory_image = "farming_apple_pie.png",
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:apple_pie",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_flour", "group:food_sugar",
|
||||
"group:food_apple", "group:food_baking_tray"
|
||||
},
|
||||
replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
|
||||
})
|
||||
|
||||
-- Cactus Juice
|
||||
|
||||
minetest.register_craftitem("farming:cactus_juice", {
|
||||
description = S("Cactus Juice"),
|
||||
inventory_image = "farming_cactus_juice.png",
|
||||
groups = {vessel = 1, drink = 1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if user then
|
||||
if math.random(5) == 1 then
|
||||
return minetest.do_item_eat(-1, "vessels:drinking_glass",
|
||||
itemstack, user, pointed_thing)
|
||||
else
|
||||
return minetest.do_item_eat(2, "vessels:drinking_glass",
|
||||
itemstack, user, pointed_thing)
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:cactus_juice 2",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"vessels:drinking_glass", "vessels:drinking_glass",
|
||||
"default:cactus", "farming:juicer"
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Pasta
|
||||
|
||||
minetest.register_craftitem("farming:pasta", {
|
||||
description = S("Pasta"),
|
||||
inventory_image = "farming_pasta.png",
|
||||
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"
|
||||
},
|
||||
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"
|
||||
},
|
||||
replacements = {
|
||||
{"group:food_mixing_bowl", "farming:mixing_bowl"},
|
||||
{"group:food_oil", "vessels:glass_bottle"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Spaghetti
|
||||
|
||||
minetest.register_craftitem("farming:spaghetti", {
|
||||
description = S("Spaghetti"),
|
||||
inventory_image = "farming_spaghetti.png",
|
||||
on_use = minetest.item_eat(8)
|
||||
})
|
||||
|
||||
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"
|
||||
},
|
||||
replacements = {{"group:food_saucepan", "farming:saucepan"}}
|
||||
})
|
||||
|
||||
-- Korean Bibimbap
|
||||
|
||||
minetest.register_craftitem("farming:bibimbap", {
|
||||
description = S("Bibimbap"),
|
||||
inventory_image = "farming_bibimbap.png",
|
||||
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"
|
||||
},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "farming:bibimbap",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_skillet", "group:food_bowl", "group:food_mushroom",
|
||||
"group:food_rice", "group:food_cabbage", "group:food_carrot",
|
||||
"group:food_mushroom", "group:food_chili_pepper"
|
||||
},
|
||||
replacements = {{"group:food_skillet", "farming:skillet"}}
|
||||
})
|
||||
end
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
for i = 4, 5 do
|
||||
|
||||
-- Override default grass and have it drop Wheat Seeds
|
||||
-- Override default grass and have it drop Wheat and Oat Seeds
|
||||
|
||||
minetest.override_item("default:grass_" .. i, {
|
||||
drop = {
|
||||
@ -9,12 +9,12 @@ for i = 4, 5 do
|
||||
items = {
|
||||
{items = {"farming:seed_wheat"}, rarity = 5},
|
||||
{items = {"farming:seed_oat"},rarity = 5},
|
||||
{items = {"default:grass_1"}},
|
||||
{items = {"default:grass_1"}}
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
-- Override default dry grass and have it drop Barley Seeds
|
||||
-- Override default dry grass and have it drop Barley and Rye Seeds
|
||||
|
||||
if minetest.registered_nodes["default:dry_grass_1"] then
|
||||
|
||||
@ -24,15 +24,15 @@ for i = 4, 5 do
|
||||
items = {
|
||||
{items = {"farming:seed_barley"}, rarity = 5},
|
||||
{items = {"farming:seed_rye"},rarity = 5},
|
||||
{items = {"default:dry_grass_1"}},
|
||||
{items = {"default:dry_grass_1"}}
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- Override default Jungle Grass and have it drop Cotton Seeds
|
||||
-- Override default Jungle Grass and have it drop Cotton and Rice Seeds
|
||||
|
||||
minetest.override_item("default:junglegrass", {
|
||||
drop = {
|
||||
@ -40,7 +40,7 @@ minetest.override_item("default:junglegrass", {
|
||||
items = {
|
||||
{items = {"farming:seed_cotton"}, rarity = 8},
|
||||
{items = {"farming:seed_rice"},rarity = 8},
|
||||
{items = {"default:junglegrass"}},
|
||||
{items = {"default:junglegrass"}}
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
|
@ -36,7 +36,7 @@ farming.register_hoe = function(name, def)
|
||||
return farming.hoe_on_use(itemstack, user, pointed_thing, def.max_uses)
|
||||
end,
|
||||
groups = def.groups,
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
sound = {breaks = "default_tool_breaks"}
|
||||
})
|
||||
|
||||
-- Register its recipe
|
||||
@ -149,7 +149,7 @@ farming.register_hoe(":farming:hoe_wood", {
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:hoe_wood",
|
||||
burntime = 5,
|
||||
burntime = 5
|
||||
})
|
||||
|
||||
farming.register_hoe(":farming:hoe_stone", {
|
||||
@ -170,7 +170,7 @@ farming.register_hoe(":farming:hoe_bronze", {
|
||||
description = S("Bronze Hoe"),
|
||||
inventory_image = "farming_tool_bronzehoe.png",
|
||||
max_uses = 500,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
groups = {not_in_creative_inventory = 1}
|
||||
})
|
||||
|
||||
farming.register_hoe(":farming:hoe_mese", {
|
||||
@ -184,7 +184,7 @@ farming.register_hoe(":farming:hoe_diamond", {
|
||||
description = S("Diamond Hoe"),
|
||||
inventory_image = "farming_tool_diamondhoe.png",
|
||||
max_uses = 500,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
groups = {not_in_creative_inventory = 1}
|
||||
})
|
||||
|
||||
-- Toolranks support
|
||||
@ -256,7 +256,7 @@ minetest.register_entity("farming:hoebomb_entity", {
|
||||
visual = "sprite",
|
||||
visual_size = {x = 1.0, y = 1.0},
|
||||
textures = {"farming_hoe_bomb.png"},
|
||||
collisionbox = {0,0,0,0,0,0},
|
||||
collisionbox = {-0.1,-0.1,-0.1,0.1,0.1,0.1},
|
||||
lastpos = {},
|
||||
player = "",
|
||||
|
||||
@ -437,7 +437,7 @@ minetest.register_tool("farming:scythe_mithril", {
|
||||
obj:set_velocity({
|
||||
x = math.random(-10, 10) / 9,
|
||||
y = 3,
|
||||
z = math.random(-10, 10) / 9,
|
||||
z = math.random(-10, 10) / 9
|
||||
})
|
||||
end
|
||||
end
|
||||
@ -486,25 +486,29 @@ if minetest.get_modpath("moreores") then
|
||||
description = S("%s Hoe"):format(S("Silver")),
|
||||
inventory_image = "moreores_tool_silverhoe.png",
|
||||
max_uses = 300,
|
||||
material = "moreores:silver_ingot",
|
||||
material = "moreores:silver_ingot"
|
||||
})
|
||||
|
||||
farming.register_hoe(":moreores:hoe_mithril", {
|
||||
description = S("%s Hoe"):format(S("Mithril")),
|
||||
inventory_image = "moreores_tool_mithrilhoe.png",
|
||||
max_uses = 1000,
|
||||
material = "moreores:mithril_ingot",
|
||||
material = "moreores:mithril_ingot"
|
||||
})
|
||||
|
||||
-- Toolranks support
|
||||
if tr then
|
||||
|
||||
local desc = S("%s Hoe"):format(S("Silver"))
|
||||
|
||||
minetest.override_item("moreores:hoe_silver", {
|
||||
original_description = S("%s Hoe"):format(S("Silver")),
|
||||
description = toolranks.create_description("Silver Hoe")})
|
||||
original_description = desc,
|
||||
description = toolranks.create_description(desc)})
|
||||
|
||||
desc = S("%s Hoe"):format(S("Mithril"))
|
||||
|
||||
minetest.override_item("moreores:hoe_mithril", {
|
||||
original_description = S("%s Hoe"):format(S("Mithril")),
|
||||
description = toolranks.create_description("Mithril Hoe")})
|
||||
original_description = desc,
|
||||
description = toolranks.create_description(desc)})
|
||||
end
|
||||
end
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20200527",
|
||||
version = "20200702",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {
|
||||
type = "fixed",
|
||||
@ -80,7 +80,7 @@ end
|
||||
|
||||
-- Growth Logic
|
||||
local STAGE_LENGTH_AVG = tonumber(
|
||||
minetest.settings:get("farming_stage_length")) or 160
|
||||
minetest.settings:get("farming_stage_length")) or 200 -- 160
|
||||
local STAGE_LENGTH_DEV = STAGE_LENGTH_AVG / 6
|
||||
|
||||
|
||||
@ -315,7 +315,7 @@ function farming.plant_growth_timer(pos, elapsed, node_name)
|
||||
|
||||
-- otherwise check for wet soil beneath crop
|
||||
else
|
||||
local under = minetest.get_node({ x = pos.x, y = pos.y - 1, z = pos.z })
|
||||
local under = minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z})
|
||||
|
||||
if minetest.get_item_group(under.name, "soil") < 3 then
|
||||
return true
|
||||
@ -582,7 +582,7 @@ farming.register_plant = function(name, def)
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
minlight = def.minlight,
|
||||
maxlight = def.maxlight,
|
||||
next_plant = next_plant,
|
||||
next_plant = next_plant
|
||||
})
|
||||
end
|
||||
|
||||
@ -625,6 +625,7 @@ farming.pineapple = 0.001
|
||||
farming.peas = 0.001
|
||||
farming.beetroot = 0.001
|
||||
farming.mint = 0.005
|
||||
farming.cabbage = 0.001
|
||||
farming.grains = true
|
||||
farming.rarety = 0.002
|
||||
|
||||
@ -690,8 +691,9 @@ ddoo("beetroot.lua", farming.beetroot)
|
||||
ddoo("chili.lua", farming.chili)
|
||||
ddoo("ryeoatrice.lua", farming.grains)
|
||||
ddoo("mint.lua", farming.mint)
|
||||
ddoo("cabbage.lua", farming.cabbage)
|
||||
|
||||
dofile(farming.path.."/food.lua")
|
||||
dofile(farming.path.."/mapgen.lua")
|
||||
dofile(farming.path.."/compatibility.lua") -- Farming Plus compatibility
|
||||
dofile(farming.path.."/lucky_block.lua")
|
||||
dofile(farming.path .. "/food.lua")
|
||||
dofile(farming.path .. "/mapgen.lua")
|
||||
dofile(farming.path .. "/compatibility.lua") -- Farming Plus compatibility
|
||||
dofile(farming.path .. "/lucky_block.lua")
|
||||
|
194
farming/locale/it.txt
Normal file
@ -0,0 +1,194 @@
|
||||
# Translation of the farming mod by TenPlus1
|
||||
# textdomain: farming
|
||||
# author: (Hamlet)
|
||||
# last update: 2020/Jun/02
|
||||
|
||||
###### folder . ######
|
||||
|
||||
### init.lua ###
|
||||
Seed=Seme
|
||||
|
||||
### compatibility.lua ###
|
||||
Banana=Banana
|
||||
Banana Leaves=Foglie di banano
|
||||
Orange=Arancia
|
||||
Strawberry=Fragola
|
||||
|
||||
### food.lua ###
|
||||
Sugar=Zucchero
|
||||
Salt=Sale
|
||||
Rose Water=Acqua di rose
|
||||
Turkish Delight=Lokum
|
||||
Garlic Bread=Pane all'aglio
|
||||
Donut=Ciambella
|
||||
Chocolate Donut=Ciambella al cioccolato
|
||||
Apple Donut=Ciambella alla mela
|
||||
Porridge=Porridge
|
||||
Jaffa Cake=Torta di jaffa
|
||||
|
||||
### hoes.lua ###
|
||||
Hoe=Zappa
|
||||
Wooden Hoe=Zappa di legno
|
||||
Stone Hoe=Zappa di pietra
|
||||
Steel Hoe=Zappa d'acciaio
|
||||
Bronze Hoe=Zappa di bronzo
|
||||
Mese Hoe=Zappa di mese
|
||||
Diamond Hoe=Zappa di diamante
|
||||
# Surcharge du mod [Toolranks] à faire #
|
||||
Hoe Bomb (use or throw on grassy areas to hoe land)=Bomba zappa (usala o lanciala sulle aree erbose per zappare il terreno)
|
||||
Mithril Scythe (Right-click to harvest and replant crops)=Falce di mithril (clicca col destro per raccogliere e ripiantare le prose)
|
||||
# Surcharge du mod [Toolranks] à faire #
|
||||
|
||||
### soil.lua ###
|
||||
Soil=Terreno coltivabile
|
||||
Wet Soil=Terreno coltivabile bagnato
|
||||
|
||||
### utensils.lua ###
|
||||
Wooden Bowl=Ciotola di legno
|
||||
Saucepan=Casseruola
|
||||
Cooking Pot=Pentola da cottura
|
||||
Baking Tray=Teglia da forno
|
||||
Skillet=Padella
|
||||
Mortar and Pestle=Mortaio e pestello
|
||||
Cutting Board=Tagliere
|
||||
Juicer=Spremiagrumi
|
||||
Glass Mixing Bowl=Terrina di vetro
|
||||
|
||||
|
||||
###### folder ./crops ######
|
||||
|
||||
### barley.lua ###
|
||||
Barley Seed=Seme d'orzo
|
||||
Barley=Orzo
|
||||
|
||||
### beans.lua ###
|
||||
Green Beans=Fagiolini
|
||||
Bean Pole (place on soil before planting beans)=Palina per fagiolini (mettila sul terreno coltivabile prima di piantare i fagiolini)
|
||||
|
||||
### beetroot.lua ###
|
||||
Beetroot=Barbabietola
|
||||
Beetroot Soup=Zuppa di barbabietola
|
||||
|
||||
### blueberry.lua ###
|
||||
Blueberries=Mirtilli
|
||||
Blueberry Muffin=Focaccina di mirtilli
|
||||
Blueberry Pie=Tortino di mirtilli
|
||||
|
||||
### carrot.lua ##
|
||||
Carrot=Carota
|
||||
Carrot Juice=Succo di carota
|
||||
Golden Carrot=Carota d'oro
|
||||
|
||||
### chili.lua ###
|
||||
Chili Pepper=Peperoncino
|
||||
Bowl of Chili=Ciotola di peperoncino
|
||||
|
||||
### cocoa.lua ###
|
||||
Cocoa Beans=Chicchi di cacao
|
||||
Cookie=Biscotto
|
||||
Bar of Dark Chocolate=Barra di cioccolato fondente
|
||||
Chocolate Block=Blocco di cioccolato
|
||||
|
||||
### coffee.lua ###
|
||||
Coffee Beans=Chicchi di caffè
|
||||
Cup of Coffee=Tazza di caffè
|
||||
|
||||
### corn.lua ###
|
||||
Corn=Mais
|
||||
Corn on the Cob=Pannocchia arrostita
|
||||
Cornstarch=Amido di mais
|
||||
Bottle of Ethanol=Bottiglia di alcol etilico
|
||||
|
||||
### cotton.lua ###
|
||||
Cotton Seed=Seme di cotone
|
||||
Cotton=Cotone
|
||||
String=Filo
|
||||
|
||||
### cucumber.lua ###
|
||||
Cucumber=Cetriolo
|
||||
|
||||
### garlic.lua ###
|
||||
Garlic clove=Spicchio d'aglio
|
||||
Garlic=Aglio
|
||||
Garlic Braid=Treccia d'aglio
|
||||
|
||||
### grapes.lua ###
|
||||
Grapes=Chicchi d'uva
|
||||
Trellis (place on soil before planting grapes)=Graticcio (mettilo sul terreno coltivabile prima di piantare i chicchi d'uva)
|
||||
|
||||
### hemp.lua ###
|
||||
Hemp Seed=Seme di canapa
|
||||
Hemp Leaf=Foglia di canapa
|
||||
Bottle of Hemp Oil=Bottiglia d'olio di canapa
|
||||
Hemp Fibre=Fibra di canapa
|
||||
Hemp Block=Blocco di canapa
|
||||
Hemp Rope=Corda di canapa
|
||||
|
||||
### melon.lua ###
|
||||
Melon Slice=Fetta d'anguria
|
||||
Melon=Anguria
|
||||
|
||||
### onion.lua ###
|
||||
Onion=Cipolla
|
||||
|
||||
### peas.lua ###
|
||||
Pea Pod=Baccello di piselli
|
||||
Peas=Piselli
|
||||
Pea Soup=Zuppa di piselli
|
||||
|
||||
### pepper.lua ###
|
||||
Peppercorn=Grano di pepe
|
||||
Pepper=Pepe
|
||||
Ground Pepper=Pepe macinato
|
||||
|
||||
### pinapple.lua ###
|
||||
Pineapple Top=Cima d'ananas
|
||||
Pineapple=Ananas
|
||||
Pineapple Ring=Anello d'ananas
|
||||
Pineapple Juice=Succo d'ananas
|
||||
|
||||
### potato.lua ###
|
||||
Potato=Patata
|
||||
Baked Potato=Patata arrostita
|
||||
Cucumber and Potato Salad=Insalata di patate e cetrioli
|
||||
|
||||
### pumpkin.lua ###
|
||||
Pumpkin Slice=Fetta di zucca
|
||||
Jack 'O Lantern (punch to turn on and off)=Jack Lanterna (colpirlo per accenderlo e spegnerlo)
|
||||
Scarecrow Bottom=Fondo dello spaventapasseri
|
||||
Pumpkin Bread=Pane alla zucca
|
||||
Pumpkin Dough=Pasta di zucca
|
||||
Pumpkin=Zucca
|
||||
|
||||
### raspberry.lua ###
|
||||
Raspberries=Lamponi
|
||||
Raspberry Smoothie=Purea di lamponi
|
||||
|
||||
### rhubarb.lua ###
|
||||
Rhubarb=Rabarbaro
|
||||
Rhubarb Pie=Tortino al rabarbaro
|
||||
|
||||
### ryeoatrice.lua ###
|
||||
Rye=Segale
|
||||
Rye seed=Seme di segale
|
||||
Oat=Avena
|
||||
Oat seed=Seme d'avena
|
||||
Rice=Riso
|
||||
Rice grains=Chicchi di riso
|
||||
Rice Bread=Pane di riso
|
||||
Rice Flour=Farina di riso
|
||||
Multigrain Flour=Farina multicereale
|
||||
Multigrain Bread=Pane multicereale
|
||||
|
||||
### tomato.lua ###
|
||||
Tomato=Pomodoro
|
||||
|
||||
### wheat.lua ###
|
||||
Wheat Seed=Seme di grano
|
||||
Wheat=Grano
|
||||
Straw=Paglia
|
||||
Flour=Farina
|
||||
Bread=Pane
|
||||
Sliced Bread=Pane a fette
|
||||
Toast=Pane tostato
|
||||
Toast Sandwich=Panino di pane tostato
|
@ -2,194 +2,211 @@
|
||||
# textdomain: farming
|
||||
# author: codexp <codexp@gmx.net>
|
||||
# author: TheDarkTiger
|
||||
# last update: 2020/Apr/26
|
||||
# author: YELLOW <pikayellow35@gmail.com>
|
||||
# last update: 2020/Jun/20
|
||||
|
||||
###### folder . ######
|
||||
|
||||
### init.lua ###
|
||||
Seed=семена
|
||||
Seed=Семена
|
||||
|
||||
### compatibility.lua ###
|
||||
Banana=
|
||||
Banana Leaves=
|
||||
Orange=
|
||||
Strawberry=
|
||||
Banana=Банан
|
||||
Banana Leaves=Листья банана
|
||||
Orange=Апельсин
|
||||
Strawberry=Земляника
|
||||
|
||||
### food.lua ###
|
||||
Sugar=сахар
|
||||
Salt=
|
||||
Rose Water=
|
||||
Turkish Delight=
|
||||
Garlic Bread=
|
||||
Donut=пончик
|
||||
Chocolate Donut=шоколадный пончик
|
||||
Apple Donut=яблочный пончик
|
||||
Porridge=
|
||||
Jaffa Cake=
|
||||
Sugar=Сахар
|
||||
Salt=Соль
|
||||
Rose Water=Розовая вода
|
||||
Turkish Delight=Рахат-лукум
|
||||
Garlic Bread=Чесночный хлеб
|
||||
Donut=Пончик
|
||||
Chocolate Donut=Шоколадный пончик
|
||||
Apple Donut=Яблочный пончик
|
||||
Porridge=Каша
|
||||
Jaffa Cake=Яффский пирог
|
||||
Apple Pie=Яблочный пирог
|
||||
Cactus Juice=Кактусовый сок
|
||||
|
||||
### hoes.lua ###
|
||||
Hoe=мотыга
|
||||
Wooden Hoe=деревянная мотыга
|
||||
Stone Hoe=каменная мотыга
|
||||
Steel Hoe=стальная мотыга
|
||||
Bronze Hoe=бронзовая мотыга
|
||||
Mese Hoe=магическая мотыга
|
||||
Diamond Hoe=алмазная мотыга
|
||||
Hoe=Мотыга
|
||||
Wooden Hoe=Деревянная мотыга
|
||||
Stone Hoe=Каменная мотыга
|
||||
Steel Hoe=Стальная мотыга
|
||||
Bronze Hoe=Бронзовая мотыга
|
||||
Mese Hoe=Магическая мотыга
|
||||
Diamond Hoe=Алмазная мотыга
|
||||
# Surcharge du mod [Toolranks] à faire #
|
||||
Hoe Bomb (use or throw on grassy areas to hoe land)=
|
||||
Mithril Scythe (Right-click to harvest and replant crops)=
|
||||
Hoe Bomb (use or throw on grassy areas to hoe land)=Мотыгобомба (используйте или бросьте на траву для ее обработки)
|
||||
Mithril Scythe (Right-click to harvest and replant crops)=Мифриловая коса (Щелкните правой кнопкой мыши для сбора и пересадки растений)
|
||||
# Surcharge du mod [Toolranks] à faire #
|
||||
%s Hoe=%s мотыга
|
||||
Silver=Серебряная
|
||||
Mithril=Мифриловая
|
||||
Silver Hoe=Серебряная
|
||||
Mithril Hoe=Мифриловая
|
||||
|
||||
### soil.lua ###
|
||||
Soil=земля
|
||||
Wet Soil=мокрая земля
|
||||
Soil=Земля
|
||||
Wet Soil=Увлажненная земля
|
||||
Savanna Soil=Земля саванны
|
||||
Wet Savanna Soil=Увлажненная земля саванны
|
||||
|
||||
### utensils.lua ###
|
||||
Wooden Bowl=
|
||||
Saucepan=
|
||||
Cooking Pot=
|
||||
Baking Tray=
|
||||
Skillet=
|
||||
Mortar and Pestle=
|
||||
Cutting Board=
|
||||
Juicer=
|
||||
Glass Mixing Bowl=
|
||||
Wooden Bowl=Деревянная миска
|
||||
Saucepan=Кастрюля
|
||||
Cooking Pot=Котел
|
||||
Baking Tray=Противень
|
||||
Skillet=Сковорода
|
||||
Mortar and Pestle=Ступка и пестик
|
||||
Cutting Board=Разделочная доска
|
||||
Juicer=Соковыжималка
|
||||
Glass Mixing Bowl=Стеклянная чаша
|
||||
|
||||
|
||||
###### folder ./crops ######
|
||||
|
||||
### barley.lua ###
|
||||
Barley Seed=семена ячменя
|
||||
Barley=ячмень
|
||||
Barley Seed=Семена ячменя
|
||||
Barley=Ячмень
|
||||
|
||||
### beans.lua ###
|
||||
Green Beans=зеленая фасоль
|
||||
Bean Pole (place on soil before planting beans)=жердь для бобовых (установите на почву перед посадкой бобовых)
|
||||
Green Beans=Зеленая фасоль
|
||||
Bean Pole (place on soil before planting beans)=Жердь для бобовых (установите на почву перед посадкой бобовых)
|
||||
|
||||
### beetroot.lua ###
|
||||
Beetroot=
|
||||
Beetroot Soup=
|
||||
Beetroot=Свекла
|
||||
Beetroot Soup=Борщ
|
||||
|
||||
### blueberry.lua ###
|
||||
Blueberries=голубика
|
||||
Blueberry Muffin=кекс из голубики
|
||||
Blueberry Pie=
|
||||
Blueberries=Голубика
|
||||
Blueberry Muffin=Кекс с голубикой
|
||||
Blueberry Pie=Пирог с голубикой
|
||||
|
||||
### carrot.lua ##
|
||||
Carrot=морковь
|
||||
Carrot Juice=
|
||||
Golden Carrot=золотая морковь
|
||||
Carrot=Морковь
|
||||
Carrot Juice=Морковный сок
|
||||
Golden Carrot=Золотая морковь
|
||||
|
||||
### chili.lua ###
|
||||
Chili Pepper=
|
||||
Bowl of Chili=
|
||||
Chili Pepper=Перец чили
|
||||
Bowl of Chili=Миска чили
|
||||
|
||||
### cocoa.lua ###
|
||||
Cocoa Beans=бобы какао
|
||||
Cookie=печенье
|
||||
Bar of Dark Chocolate=плитка темного шоколада
|
||||
Chocolate Block=
|
||||
Cocoa Beans=Какао-бобы
|
||||
Cookie=Печенье
|
||||
Bar of Dark Chocolate=Плитка темного шоколада
|
||||
Chocolate Block=Шоколадный блок
|
||||
|
||||
### coffee.lua ###
|
||||
Coffee Beans=кофе в зернах
|
||||
Cup of Coffee=чашка кофе
|
||||
Coffee Beans=Кофейные зерна
|
||||
Cup of Coffee=Чашка кофе
|
||||
|
||||
### corn.lua ###
|
||||
Corn=кукуруза
|
||||
Corn on the Cob=початок кукурузы
|
||||
Cornstarch=
|
||||
Bottle of Ethanol=бутылка этилового спирта
|
||||
Corn=Кукуруза
|
||||
Corn on the Cob=Початок кукурузы
|
||||
Cornstarch=Кукурузный крахмал
|
||||
Bottle of Ethanol=Бутылка спирта
|
||||
|
||||
### cotton.lua ###
|
||||
Cotton Seed=семена хлопка
|
||||
Cotton=хлопок
|
||||
String=
|
||||
Wild Cotton=Дикорастущий хлопок
|
||||
Cotton Seed=Семена хлопка
|
||||
Cotton=Хлопок
|
||||
String=Нить
|
||||
|
||||
### cucumber.lua ###
|
||||
Cucumber=огурец
|
||||
Cucumber=Огурец
|
||||
|
||||
### garlic.lua ###
|
||||
Garlic clove=
|
||||
Garlic=
|
||||
Garlic Braid=
|
||||
Garlic clove=Зубчик чеснока
|
||||
Garlic=Чеснок
|
||||
Garlic Braid=Связка чеснока
|
||||
|
||||
### grapes.lua ###
|
||||
Grapes=виноград
|
||||
Trellis (place on soil before planting grapes)=решетка (поставьте на почву для посадки винограда)
|
||||
Grapes=Виноград
|
||||
Trellis (place on soil before planting grapes)=Решетка (поставьте на почву перед посадкой винограда)
|
||||
|
||||
### hemp.lua ###
|
||||
Hemp Seed=семена конопли
|
||||
Hemp Leaf=листья конопли
|
||||
Bottle of Hemp Oil=бутылка конопляного масла
|
||||
Hemp Fibre=
|
||||
Hemp Block=
|
||||
Hemp Rope=Пенька
|
||||
Hemp Seed=Семена конопли
|
||||
Hemp Leaf=Лист конопли
|
||||
Bottle of Hemp Oil=Бутылка конопляного масла
|
||||
Hemp Fibre=Конопляное волокно
|
||||
Hemp Block=Блок конопли
|
||||
Hemp Rope=Пеньковая веревка
|
||||
|
||||
### melon.lua ###
|
||||
Melon Slice=ломтик арбуза
|
||||
Melon=арбуз
|
||||
Melon Slice=Долька арбуза
|
||||
Melon=Арбуз
|
||||
|
||||
### mint.lua ###
|
||||
Mint Seeds=Семена мяты
|
||||
Mint Leaf=Лист мяты
|
||||
Mint Tea=Чай с мятой
|
||||
|
||||
### onion.lua ###
|
||||
Onion=
|
||||
Onion=Лук
|
||||
Onion Soup=Луковый суп
|
||||
|
||||
### peas.lua ###
|
||||
Pea Pod=
|
||||
Peas=
|
||||
Pea Soup=
|
||||
Pea Pod=Стручок гороха
|
||||
Peas=Горох
|
||||
Pea Soup=Гороховый суп
|
||||
|
||||
### pepper.lua ###
|
||||
Peppercorn=
|
||||
Pepper=
|
||||
Ground Pepper=
|
||||
Peppercorn=Перчинка
|
||||
Pepper=Перец
|
||||
Ground Pepper=Молотый перец
|
||||
|
||||
### pinapple.lua ###
|
||||
Pineapple Top=
|
||||
Pineapple=
|
||||
Pineapple Ring=
|
||||
Pineapple Juice=
|
||||
Pineapple Top=Верхушка ананаса
|
||||
Pineapple=Ананас
|
||||
Pineapple Ring=Кольцо ананаса
|
||||
Pineapple Juice=Ананасовый сок
|
||||
|
||||
### potato.lua ###
|
||||
Potato=картофель
|
||||
Baked Potato=запеченный картофель
|
||||
Cucumber and Potato Salad=
|
||||
Potato=Картофель
|
||||
Baked Potato=Печеный картофель
|
||||
Cucumber and Potato Salad=Салат из огурцов и картофеля
|
||||
|
||||
### pumpkin.lua ###
|
||||
Pumpkin Slice=ломтик тыквы
|
||||
Jack 'O Lantern (punch to turn on and off)=светильник джека (удар для включения и отключения)
|
||||
Scarecrow Bottom=
|
||||
Pumpkin Bread=тыквенный хлеб
|
||||
Pumpkin Dough=тыквенное тесто
|
||||
Pumpkin=тыква
|
||||
Pumpkin Slice=Ломтик тыквы
|
||||
Jack 'O Lantern (punch to turn on and off)=Светильник джека (удар для включения и выключения)
|
||||
Scarecrow Bottom=Основание пугала
|
||||
Pumpkin Bread=Тыквенный хлеб
|
||||
Pumpkin Dough=Тыквенное тесто
|
||||
Pumpkin=Тыква
|
||||
|
||||
### raspberry.lua ###
|
||||
Raspberries=малина
|
||||
Raspberry Smoothie=малиновый коктейль
|
||||
Raspberries=Малина
|
||||
Raspberry Smoothie=Малиновый смузи
|
||||
|
||||
### rhubarb.lua ###
|
||||
Rhubarb=ревень
|
||||
Rhubarb Pie=пирог из ревеня
|
||||
Rhubarb=Ревень
|
||||
Rhubarb Pie=Пирог с ревенем
|
||||
|
||||
### ryeoatrice.lua ###
|
||||
Rye=
|
||||
Rye seed=
|
||||
Oat=
|
||||
Oat seed=
|
||||
Rice=
|
||||
Rice grains=
|
||||
Rice Bread=
|
||||
Rice Flour=
|
||||
Multigrain Flour=
|
||||
Multigrain Bread=
|
||||
Rye=Рожь
|
||||
Rye seed=Зёрна ржи
|
||||
Oat=Овес
|
||||
Oat seed=Семена овса
|
||||
Rice grains=Зёрна риса
|
||||
Rice=Рис
|
||||
Rice Bread=Рисовый хлеб
|
||||
Rice Flour=Рисовая мука
|
||||
Multigrain Flour=Мультизерновая мука
|
||||
Multigrain Bread=Мультизерновой хлеб
|
||||
|
||||
### tomato.lua ###
|
||||
Tomato=помидор
|
||||
Tomato=Помидор
|
||||
|
||||
### wheat.lua ###
|
||||
Wheat Seed=
|
||||
Wheat=семена пшеницы
|
||||
Straw=солома
|
||||
Flour=мука
|
||||
Bread=хлеб
|
||||
Sliced Bread=
|
||||
Toast=
|
||||
Toast Sandwich=
|
||||
Wheat Seed=Зёрна пшеницы
|
||||
Wheat=Пшеница
|
||||
Straw=Солома
|
||||
Flour=Мука
|
||||
Bread=Хлеб
|
||||
Sliced Bread=Нарезанный хлеб
|
||||
Toast=Тост
|
||||
Toast Sandwich=Сэндвич
|
||||
|
@ -26,7 +26,7 @@ local function register_plant(name, min, max, spawnon, spawnby, num, rarety)
|
||||
y_max = max,
|
||||
decoration = "farming:" .. name,
|
||||
spawn_by = spawnby,
|
||||
num_spawn_by = num,
|
||||
num_spawn_by = num
|
||||
})
|
||||
end
|
||||
|
||||
@ -47,8 +47,9 @@ 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",
|
||||
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)
|
||||
|
||||
|
||||
if minetest.get_mapgen_setting("mg_name") == "v6" then
|
||||
@ -83,7 +84,7 @@ minetest.register_decoration({
|
||||
y_max = 45,
|
||||
decoration = "farming:hemp_7",
|
||||
spawn_by = "group:tree",
|
||||
num_spawn_by = 1,
|
||||
num_spawn_by = 1
|
||||
})
|
||||
end
|
||||
|
||||
@ -104,7 +105,7 @@ minetest.register_decoration({
|
||||
y_max = 35,
|
||||
decoration = {"farming:chili_8"},
|
||||
spawn_by = "group:tree",
|
||||
num_spawn_by = 1,
|
||||
num_spawn_by = 1
|
||||
})
|
||||
end
|
||||
|
||||
@ -125,7 +126,7 @@ minetest.register_decoration({
|
||||
y_max = 35,
|
||||
decoration = {"farming:pepper_5"},
|
||||
spawn_by = "group:tree",
|
||||
num_spawn_by = 1,
|
||||
num_spawn_by = 1
|
||||
})
|
||||
end
|
||||
|
||||
@ -144,6 +145,25 @@ minetest.register_decoration({
|
||||
},
|
||||
y_min = 18,
|
||||
y_max = 30,
|
||||
decoration = {"farming:pineapple_8"},
|
||||
decoration = {"farming:pineapple_8"}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "farming:cotton_wild",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dry_dirt_with_dry_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"savanna"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "farming:cotton_wild"
|
||||
})
|
||||
|
@ -172,5 +172,5 @@ minetest.register_abm({
|
||||
and minetest.get_item_group(nn, "plant") == 0 then
|
||||
minetest.set_node(pos, {name = ndef.soil.base})
|
||||
end
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
@ -12,6 +12,7 @@ local B = 4.0 / math.pi
|
||||
local C = 2.0/(math.pi * A)
|
||||
local D = 1.0 / A
|
||||
|
||||
|
||||
erf = function(x)
|
||||
|
||||
if x == 0 then return 0; end
|
||||
@ -23,6 +24,7 @@ erf = function(x)
|
||||
return (x > 0 and v) or -v
|
||||
end
|
||||
|
||||
|
||||
erf_inv = function(x)
|
||||
|
||||
if x == 0 then return 0; end
|
||||
@ -36,13 +38,16 @@ erf_inv = function(x)
|
||||
return (x > 0 and v) or -v
|
||||
end
|
||||
|
||||
|
||||
local function std_normal(u)
|
||||
return ROOT_2 * erf_inv(2.0 * u - 1.0)
|
||||
end
|
||||
|
||||
|
||||
local poisson
|
||||
local cdf_table = {}
|
||||
|
||||
|
||||
local function generate_cdf(lambda_index, lambda)
|
||||
|
||||
local max = math.ceil(4 * lambda)
|
||||
@ -59,10 +64,12 @@ local function generate_cdf(lambda_index, lambda)
|
||||
return t
|
||||
end
|
||||
|
||||
|
||||
for li = 1, 100 do
|
||||
cdf_table[li] = generate_cdf(li, 0.25 * li)
|
||||
end
|
||||
|
||||
|
||||
poisson = function(lambda, max)
|
||||
|
||||
if max < 2 then
|
||||
@ -107,6 +114,7 @@ poisson = function(lambda, max)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- Error function.
|
||||
statistics.erf = erf
|
||||
|
||||
@ -131,6 +139,7 @@ statistics.std_normal = function()
|
||||
return std_normal(u)
|
||||
end
|
||||
|
||||
|
||||
--- Standard normal distribution function (mean 0, standard deviation 1).
|
||||
--
|
||||
-- @param mu
|
||||
@ -153,6 +162,7 @@ statistics.normal = function(mu, sigma)
|
||||
return mu + sigma * std_normal(u)
|
||||
end
|
||||
|
||||
|
||||
--- Poisson distribution function.
|
||||
--
|
||||
-- @param lambda
|
||||
@ -171,4 +181,5 @@ statistics.poisson = function(lambda, max)
|
||||
return poisson(lambda, max)
|
||||
end
|
||||
|
||||
|
||||
return statistics
|
||||
|
BIN
farming/textures/farming_apple_pie.png
Normal file
After Width: | Height: | Size: 200 B |
BIN
farming/textures/farming_bibimbap.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
farming/textures/farming_cabbage.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
farming/textures/farming_cabbage_1.png
Normal file
After Width: | Height: | Size: 103 B |
BIN
farming/textures/farming_cabbage_2.png
Normal file
After Width: | Height: | Size: 221 B |
BIN
farming/textures/farming_cabbage_3.png
Normal file
After Width: | Height: | Size: 238 B |
BIN
farming/textures/farming_cabbage_4.png
Normal file
After Width: | Height: | Size: 270 B |
BIN
farming/textures/farming_cabbage_5.png
Normal file
After Width: | Height: | Size: 257 B |
BIN
farming/textures/farming_cabbage_6.png
Normal file
After Width: | Height: | Size: 283 B |
BIN
farming/textures/farming_cactus_juice.png
Normal file
After Width: | Height: | Size: 167 B |
BIN
farming/textures/farming_cotton_wild.png
Normal file
After Width: | Height: | Size: 228 B |
BIN
farming/textures/farming_pasta.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
farming/textures/farming_spaghetti.png
Normal file
After Width: | Height: | Size: 242 B |
@ -6,14 +6,14 @@ local S = farming.intllib
|
||||
minetest.register_craftitem("farming:bowl", {
|
||||
description = S("Wooden Bowl"),
|
||||
inventory_image = "farming_bowl.png",
|
||||
groups = {food_bowl = 1, flammable = 2},
|
||||
groups = {food_bowl = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:bowl 4",
|
||||
recipe = {
|
||||
{"group:wood", "", "group:wood"},
|
||||
{"", "group:wood", ""},
|
||||
{"", "group:wood", ""}
|
||||
}
|
||||
})
|
||||
|
||||
@ -28,14 +28,14 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:saucepan", {
|
||||
description = S("Saucepan"),
|
||||
inventory_image = "farming_saucepan.png",
|
||||
groups = {food_saucepan = 1, flammable = 2},
|
||||
groups = {food_saucepan = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:saucepan",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "", ""},
|
||||
{"", "group:stick", ""},
|
||||
{"", "group:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
@ -44,14 +44,14 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:pot", {
|
||||
description = S("Cooking Pot"),
|
||||
inventory_image = "farming_pot.png",
|
||||
groups = {food_pot = 1, flammable = 2},
|
||||
groups = {food_pot = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pot",
|
||||
recipe = {
|
||||
{"group:stick", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"", "default:steel_ingot", "default:steel_ingot"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -60,7 +60,7 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:baking_tray", {
|
||||
description = S("Baking Tray"),
|
||||
inventory_image = "farming_baking_tray.png",
|
||||
groups = {food_baking_tray = 1, flammable = 2},
|
||||
groups = {food_baking_tray = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -68,7 +68,7 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"default:clay_brick", "default:clay_brick", "default:clay_brick"},
|
||||
{"default:clay_brick", "", "default:clay_brick"},
|
||||
{"default:clay_brick", "default:clay_brick", "default:clay_brick"},
|
||||
{"default:clay_brick", "default:clay_brick", "default:clay_brick"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -77,7 +77,7 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:skillet", {
|
||||
description = S("Skillet"),
|
||||
inventory_image = "farming_skillet.png",
|
||||
groups = {food_skillet = 1, flammable = 2},
|
||||
groups = {food_skillet = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -85,7 +85,7 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"default:steel_ingot", "", ""},
|
||||
{"", "default:steel_ingot", ""},
|
||||
{"", "", "group:stick"},
|
||||
{"", "", "group:stick"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -94,14 +94,14 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:mortar_pestle", {
|
||||
description = S("Mortar and Pestle"),
|
||||
inventory_image = "farming_mortar_pestle.png",
|
||||
groups = {food_mortar_pestle = 1, flammable = 2},
|
||||
groups = {food_mortar_pestle = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:mortar_pestle",
|
||||
recipe = {
|
||||
{"default:stone", "group:stick", "default:stone"},
|
||||
{"", "default:stone", ""},
|
||||
{"", "default:stone", ""}
|
||||
}
|
||||
})
|
||||
|
||||
@ -110,7 +110,7 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:cutting_board", {
|
||||
description = S("Cutting Board"),
|
||||
inventory_image = "farming_cutting_board.png",
|
||||
groups = {food_cutting_board = 1, flammable = 2},
|
||||
groups = {food_cutting_board = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -118,7 +118,7 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"default:steel_ingot", "", ""},
|
||||
{"", "group:stick", ""},
|
||||
{"", "", "group:wood"},
|
||||
{"", "", "group:wood"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -127,14 +127,14 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:juicer", {
|
||||
description = S("Juicer"),
|
||||
inventory_image = "farming_juicer.png",
|
||||
groups = {food_juicer = 1, flammable = 2},
|
||||
groups = {food_juicer = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:juicer",
|
||||
recipe = {
|
||||
{"", "default:stone", ""},
|
||||
{"default:stone", "", "default:stone"},
|
||||
{"default:stone", "", "default:stone"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -143,14 +143,14 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:mixing_bowl", {
|
||||
description = S("Glass Mixing Bowl"),
|
||||
inventory_image = "farming_mixing_bowl.png",
|
||||
groups = {food_mixing_bowl = 1, flammable = 2},
|
||||
groups = {food_mixing_bowl = 1, flammable = 2}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:mixing_bowl",
|
||||
recipe = {
|
||||
{"default:glass", "group:stick", "default:glass"},
|
||||
{"", "default:glass", ""},
|
||||
{"", "default:glass", ""}
|
||||
}
|
||||
})
|
||||
|
||||
@ -158,6 +158,6 @@ minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "vessels:glass_fragments",
|
||||
recipe = {
|
||||
"farming:mixing_bowl",
|
||||
},
|
||||
"farming:mixing_bowl"
|
||||
}
|
||||
})
|
||||
|
@ -3,6 +3,10 @@ unused_args = false
|
||||
allow_defined_top = true
|
||||
max_line_length = 90
|
||||
|
||||
globals = {
|
||||
"maptools"
|
||||
}
|
||||
|
||||
stds.minetest = {
|
||||
read_globals = {
|
||||
"DIR_DELIM",
|
||||
@ -23,7 +27,3 @@ stds.minetest = {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
"intllib",
|
||||
}
|
||||
|
@ -7,12 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.1.0] - 2020-06-08
|
||||
|
||||
### Changed
|
||||
|
||||
- 10 coins of each type can now be crafted using 2 ingots (bronze, silver or gold).
|
||||
- Silver coins require [More Ores](https://github.com/minetest-mods/moreores)
|
||||
to be crafted, since minetest_game doesn't have silver ingots.
|
||||
- Coins are now displayed in the creative inventory.
|
||||
- Moved translations from intllib to Minetest's built-in localization system.
|
||||
- This allows translations to show up independently of the server's language.
|
||||
|
||||
## [2.0.0] - 2019-11-25
|
||||
|
||||
@ -39,6 +43,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
- Initial versioned release.
|
||||
|
||||
[Unreleased]: https://github.com/minetest-mods/maptools/compare/v2.0.0...HEAD
|
||||
[Unreleased]: https://github.com/minetest-mods/maptools/compare/v2.1.0...HEAD
|
||||
[2.1.0]: https://github.com/minetest-mods/maptools/compare/v2.0.0...v2.1.0
|
||||
[2.0.0]: https://github.com/minetest-mods/maptools/compare/v1.1.0...v2.0.0
|
||||
[1.1.0]: https://github.com/minetest-mods/maptools/compare/v1.0.0...v1.1.0
|
||||
|
@ -23,6 +23,7 @@ as they cannot be removed by hand (they can only be removed with
|
||||
| `maptools:no_interact` | Prevents interacting through the block (opening chests, furnaces, attacking entities, …), but can still be walked through. |
|
||||
| `maptools:damage_{1…5}` | :warning: Damaging blocks which damage players by 1 to 5 HP per second. |
|
||||
| `maptools:kill` | :warning: Instant kill blocks (damages players by 20 HP per second). |
|
||||
| `maptools:drowning` | :warning: Simulates drowning in water. |
|
||||
| `maptools:light_block` | :warning: Invisible non-solid block, prevents light from passing through. |
|
||||
| `maptools:light_bulb` | :warning: Invisible non-solid block, emitting the maximum amount of light. |
|
||||
|
||||
|
@ -12,9 +12,8 @@ maptools = {}
|
||||
|
||||
local modpath = minetest.get_modpath("maptools")
|
||||
|
||||
local S, NS = dofile(modpath .. "/intllib.lua")
|
||||
local S = minetest.get_translator("maptools")
|
||||
maptools.S = S
|
||||
maptools.NS = NS
|
||||
|
||||
maptools.drop_msg = function(itemstack, player)
|
||||
local name = player:get_player_name()
|
||||
|
@ -1,44 +0,0 @@
|
||||
-- Fallback functions for when `intllib` is not installed.
|
||||
-- Code released under Unlicense <http://unlicense.org>.
|
||||
|
||||
-- Get the latest version of this file at:
|
||||
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
|
||||
|
||||
local function format(str, ...)
|
||||
local args = { ... }
|
||||
local function repl(escape, open, num, close)
|
||||
if escape == "" then
|
||||
local replacement = tostring(args[tonumber(num)])
|
||||
if open == "" then
|
||||
replacement = replacement..close
|
||||
end
|
||||
return replacement
|
||||
else
|
||||
return "@"..open..num..close
|
||||
end
|
||||
end
|
||||
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
|
||||
end
|
||||
|
||||
local gettext, ngettext
|
||||
if minetest.get_modpath("intllib") then
|
||||
if intllib.make_gettext_pair then
|
||||
-- New method using gettext.
|
||||
gettext, ngettext = intllib.make_gettext_pair()
|
||||
else
|
||||
-- Old method using text files.
|
||||
gettext = intllib.Getter()
|
||||
end
|
||||
end
|
||||
|
||||
-- Fill in missing functions.
|
||||
|
||||
gettext = gettext or function(msgid, ...)
|
||||
return format(msgid, ...)
|
||||
end
|
||||
|
||||
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
|
||||
return format(n==1 and msgid or msgid_plural, ...)
|
||||
end
|
||||
|
||||
return gettext, ngettext
|
@ -1,39 +0,0 @@
|
||||
# Translation by kaeza
|
||||
|
||||
[maptools] loaded. = [maptools] cargado.
|
||||
|
||||
Cloud = Nube
|
||||
Infinite Fuel = Combustible Infinito
|
||||
Admin Pickaxe = Pico de Administrador
|
||||
Copper Coin = Moneda de Cobre
|
||||
Silver Coin = Moneda de Plata
|
||||
Gold Coin = Moneda de Oro
|
||||
Super Apple = Super Manzana
|
||||
Fake Ladder = Escalera Falsa
|
||||
Smoke Block = Bloque de Humo
|
||||
Damaging Block: %s = Bloque Dañino: %s
|
||||
Kill Block = Bloque Mortal
|
||||
Build Prevention = Bloqueador de Construcción
|
||||
Interact Prevention = Bloqueador de Interacción
|
||||
Climb Block = Bloque Escalable
|
||||
Light Block = Bloqueador de Luz
|
||||
Light Bulb = Lamparilla
|
||||
Player Clip = Bloqueo de Jugador
|
||||
Full Clip = Bloqueo Total
|
||||
|
||||
Unbreakable Stone = Piedra Irrompible
|
||||
Unbreakable Sand = Arena Irrompible
|
||||
Unbreakable Desert Stone = Piedra Desértica Irrompible
|
||||
Unbreakable Desert Sand = Arena Desértica Irrompible
|
||||
Unbreakable Gravel = Gravilla Irrompible
|
||||
Unbreakable Dirt = Tierra Irrompible
|
||||
Unbreakable Dirt with Grass = Hierba Irrompible
|
||||
Unbreakable Full Grass= Bloque de Hierba Irrompible
|
||||
Unbreakable Brick = Ladrillos Irrompibles
|
||||
Unbreakable Wooden Planks = Planchas de Madera Irrompibles
|
||||
Unbreakable Tree = Tronco de Árbol Irrompible
|
||||
Unbreakable Glass = Cristal Irrompible
|
||||
Unbreakable Sandstone = Arenisca Irrompible
|
||||
Unbreakable Leaves = Foliaje Irrompible
|
||||
Unbreakable Cobblestone = Guijarros Irrompibles
|
||||
Unbreakable Mossy Cobblestone = Guijarros Enmohecidos Irrompibles
|
@ -1,47 +0,0 @@
|
||||
# Translation by Calinou
|
||||
|
||||
[maptools] loaded. = [maptools] a été chargé.
|
||||
|
||||
Cloud = Nuage
|
||||
Infinite Fuel = Carburant infini
|
||||
Admin Pickaxe = Pioche d'administrateur
|
||||
Admin Pickaxe With Drops = Pioche d'administrateur qui donne des objets
|
||||
Copper Coin = Pièce de cuivre
|
||||
Silver Coin = Pièce d'argent
|
||||
Gold Coin = Pièce d'or
|
||||
Super Apple = Super pomme
|
||||
Fake Ladder = Fausse échelle
|
||||
Smoke Block = Bloc de fumée
|
||||
Damaging Block: %s = Bloc de dégâts : %s
|
||||
Kill Block = Bloc qui tue
|
||||
Build Prevention = Prévention de construction
|
||||
Interact Prevention = Prévention d'interaction
|
||||
Climb Block = Bloc à grimper
|
||||
Light Block = Bloqueur de lumière
|
||||
Light Bulb = Bloc lumineux
|
||||
Player Clip = Bloque-joueurs
|
||||
Player Clip Bottom Face = Face inférieure de bloque-joueurs
|
||||
Player Clip Top Face = Face supérieure de bloque-joueurs
|
||||
Full Clip = Bloque-tout
|
||||
Full Clip Face = Face de bloque-tout
|
||||
Permanent Fire = Feu permanent
|
||||
Fake Fire = Faux feu
|
||||
Igniter = Incendieur
|
||||
Pusher: %s = Pousseur : %s
|
||||
|
||||
Unbreakable Stone = Pierre incassable
|
||||
Unbreakable Sand = Sable incassable
|
||||
Unbreakable Desert Stone = Pierre de désert incassable
|
||||
Unbreakable Desert Sand = Sable de désert incassable
|
||||
Unbreakable Gravel = Gravier incassable
|
||||
Unbreakable Dirt = Terre incassable
|
||||
Unbreakable Dirt with Grass = Herbe incassable
|
||||
Unbreakable Full Grass= Bloc d'herbe incassable
|
||||
Unbreakable Brick = Briques incassables
|
||||
Unbreakable Wooden Planks = Planches de bois incassables
|
||||
Unbreakable Tree = Tronc d'arbre incassable
|
||||
Unbreakable Glass = Verre incassable
|
||||
Unbreakable Sandstone = Grès incassable
|
||||
Unbreakable Leaves = Feuillage incassable
|
||||
Unbreakable Cobblestone = Pierre taillée incassable
|
||||
Unbreakable Mossy Cobblestone = Pierre taillée mousseusse incassable
|
@ -1,47 +0,0 @@
|
||||
# Translation by Emon
|
||||
|
||||
[maptools] loaded. = [maptools] caricato.
|
||||
|
||||
Cloud = Nuvola
|
||||
Infinite Fuel = Combustibile infinito
|
||||
Admin Pickaxe = Piccone della amministrazione
|
||||
Admin Pickaxe With Drops = Piccone della amministrazione che lascia cadere a terra
|
||||
Copper Coin = Moneta di rame
|
||||
Silver Coin = Moneta di argento
|
||||
Gold Coin = Moneta di oro
|
||||
Super Apple = Super mela
|
||||
Fake Ladder = Finta scala a pioli
|
||||
Smoke Block = Blocco di fumo
|
||||
Damaging Block: %s = Blocco che danneggia : %s
|
||||
Kill Block = Blocco che uccide
|
||||
Build Prevention = Impedimento alla costruzione
|
||||
Interact Prevention = Impedimento alla interazione
|
||||
Climb Block = Blocco su cui ci si può arrampicare
|
||||
Light Block = Blocco di luce
|
||||
Light Bulb = Lampadina
|
||||
Player Clip = Blocca giocatori
|
||||
Player Clip Bottom Face = Blocca giocatori - faccia inferiore
|
||||
Player Clip Top Face = Glocca giocatori - faccia superiore
|
||||
Full Clip = Blocca tutti
|
||||
Full Clip Face = Faccia del blocca tutti
|
||||
Permanent Fire = Fuoco eterno
|
||||
Fake Fire = Fuoco finto
|
||||
Igniter = Accendino
|
||||
Pusher: %s = Che ha spinto : %s
|
||||
|
||||
Unbreakable Stone = Pietra infrangibile
|
||||
Unbreakable Sand = Sabbia infrangibile
|
||||
Unbreakable Desert Stone = Pietra del deserto infrangibile
|
||||
Unbreakable Desert Sand = Sabbia del deserto infrangibile
|
||||
Unbreakable Gravel = Ghiaia infrangibile
|
||||
Unbreakable Dirt = Terra infrangibile
|
||||
Unbreakable Dirt with Grass = Erba infrangibile
|
||||
Unbreakable Full Grass= Blocco d'erba infrangibile
|
||||
Unbreakable Brick = Mattoni infrangibile
|
||||
Unbreakable Wooden Planks = Assi in legno infrangibili
|
||||
Unbreakable Tree = Albero infrangibile
|
||||
Unbreakable Glass = Vetro infrangibile
|
||||
Unbreakable Sandstone = Arenaria infrangibile
|
||||
Unbreakable Leaves = Foglie infrangibili
|
||||
Unbreakable Cobblestone = Ciottolo infrangibile
|
||||
Unbreakable Mossy Cobblestone = Ciottolo muschioso infrangibile
|
38
maptools/locale/maptools.es.tr
Normal file
@ -0,0 +1,38 @@
|
||||
# textdomain: maptools
|
||||
[maptools] loaded.=[maptools] cargado.
|
||||
|
||||
Cloud=Nube
|
||||
Infinite Fuel=Combustible Infinito
|
||||
Admin Pickaxe=Pico de Administrador
|
||||
Copper Coin=Moneda de Cobre
|
||||
Silver Coin=Moneda de Plata
|
||||
Gold Coin=Moneda de Oro
|
||||
Super Apple=Super Manzana
|
||||
Fake Ladder=Escalera Falsa
|
||||
Smoke Block=Bloque de Humo
|
||||
Damaging Block: %s=Bloque Dañino: %s
|
||||
Kill Block=Bloque Mortal
|
||||
Build Prevention=Bloqueador de Construcción
|
||||
Interact Prevention=Bloqueador de Interacción
|
||||
Climb Block=Bloque Escalable
|
||||
Light Block=Bloqueador de Luz
|
||||
Light Bulb=Lamparilla
|
||||
Player Clip=Bloqueo de Jugador
|
||||
Full Clip=Bloqueo Total
|
||||
|
||||
Unbreakable Stone=Piedra Irrompible
|
||||
Unbreakable Sand=Arena Irrompible
|
||||
Unbreakable Desert Stone=Piedra Desértica Irrompible
|
||||
Unbreakable Desert Sand=Arena Desértica Irrompible
|
||||
Unbreakable Gravel=Gravilla Irrompible
|
||||
Unbreakable Dirt=Tierra Irrompible
|
||||
Unbreakable Dirt with Grass=Hierba Irrompible
|
||||
Unbreakable Full Grass=Bloque de Hierba Irrompible
|
||||
Unbreakable Brick=Ladrillos Irrompibles
|
||||
Unbreakable Wooden Planks=Planchas de Madera Irrompibles
|
||||
Unbreakable Tree=Tronco de Árbol Irrompible
|
||||
Unbreakable Glass=Cristal Irrompible
|
||||
Unbreakable Sandstone=Arenisca Irrompible
|
||||
Unbreakable Leaves=Foliaje Irrompible
|
||||
Unbreakable Cobblestone=Guijarros Irrompibles
|
||||
Unbreakable Mossy Cobblestone=Guijarros Enmohecidos Irrompibles
|
46
maptools/locale/maptools.fr.tr
Normal file
@ -0,0 +1,46 @@
|
||||
# textdomain: maptools
|
||||
[maptools] loaded.=[maptools] a été chargé.
|
||||
|
||||
Cloud=Nuage
|
||||
Infinite Fuel=Carburant infini
|
||||
Admin Pickaxe=Pioche d'administrateur
|
||||
Admin Pickaxe With Drops=Pioche d'administrateur qui donne des objets
|
||||
Copper Coin=Pièce de cuivre
|
||||
Silver Coin=Pièce d'argent
|
||||
Gold Coin=Pièce d'or
|
||||
Super Apple=Super pomme
|
||||
Fake Ladder=Fausse échelle
|
||||
Smoke Block=Bloc de fumée
|
||||
Damaging Block: %s=Bloc de dégâts : %s
|
||||
Kill Block=Bloc qui tue
|
||||
Build Prevention=Prévention de construction
|
||||
Interact Prevention=Prévention d'interaction
|
||||
Climb Block=Bloc à grimper
|
||||
Light Block=Bloqueur de lumière
|
||||
Light Bulb=Bloc lumineux
|
||||
Player Clip=Bloque-joueurs
|
||||
Player Clip Bottom Face=Face inférieure de bloque-joueurs
|
||||
Player Clip Top Face=Face supérieure de bloque-joueurs
|
||||
Full Clip=Bloque-tout
|
||||
Full Clip Face=Face de bloque-tout
|
||||
Permanent Fire=Feu permanent
|
||||
Fake Fire=Faux feu
|
||||
Igniter=Incendieur
|
||||
Pusher: %s=Pousseur : %s
|
||||
|
||||
Unbreakable Stone=Pierre incassable
|
||||
Unbreakable Sand=Sable incassable
|
||||
Unbreakable Desert Stone=Pierre de désert incassable
|
||||
Unbreakable Desert Sand=Sable de désert incassable
|
||||
Unbreakable Gravel=Gravier incassable
|
||||
Unbreakable Dirt=Terre incassable
|
||||
Unbreakable Dirt with Grass=Herbe incassable
|
||||
Unbreakable Full Grass=Bloc d'herbe incassable
|
||||
Unbreakable Brick=Briques incassables
|
||||
Unbreakable Wooden Planks=Planches de bois incassables
|
||||
Unbreakable Tree=Tronc d'arbre incassable
|
||||
Unbreakable Glass=Verre incassable
|
||||
Unbreakable Sandstone=Grès incassable
|
||||
Unbreakable Leaves=Feuillage incassable
|
||||
Unbreakable Cobblestone=Pierre taillée incassable
|
||||
Unbreakable Mossy Cobblestone=Pierre taillée mousseusse incassable
|
46
maptools/locale/maptools.it.tr
Normal file
@ -0,0 +1,46 @@
|
||||
# textdomain: maptools
|
||||
[maptools] loaded.=[maptools] caricato.
|
||||
|
||||
Cloud=Nuvola
|
||||
Infinite Fuel=Combustibile infinito
|
||||
Admin Pickaxe=Piccone della amministrazione
|
||||
Admin Pickaxe With Drops=Piccone della amministrazione che lascia cadere a terra
|
||||
Copper Coin=Moneta di rame
|
||||
Silver Coin=Moneta di argento
|
||||
Gold Coin=Moneta di oro
|
||||
Super Apple=Super mela
|
||||
Fake Ladder=Finta scala a pioli
|
||||
Smoke Block=Blocco di fumo
|
||||
Damaging Block: %s=Blocco che danneggia : %s
|
||||
Kill Block=Blocco che uccide
|
||||
Build Prevention=Impedimento alla costruzione
|
||||
Interact Prevention=Impedimento alla interazione
|
||||
Climb Block=Blocco su cui ci si può arrampicare
|
||||
Light Block=Blocco di luce
|
||||
Light Bulb=Lampadina
|
||||
Player Clip=Blocca giocatori
|
||||
Player Clip Bottom Face=Blocca giocatori - faccia inferiore
|
||||
Player Clip Top Face=Glocca giocatori - faccia superiore
|
||||
Full Clip=Blocca tutti
|
||||
Full Clip Face=Faccia del blocca tutti
|
||||
Permanent Fire=Fuoco eterno
|
||||
Fake Fire=Fuoco finto
|
||||
Igniter=Accendino
|
||||
Pusher: %s=Che ha spinto : %s
|
||||
|
||||
Unbreakable Stone=Pietra infrangibile
|
||||
Unbreakable Sand=Sabbia infrangibile
|
||||
Unbreakable Desert Stone=Pietra del deserto infrangibile
|
||||
Unbreakable Desert Sand=Sabbia del deserto infrangibile
|
||||
Unbreakable Gravel=Ghiaia infrangibile
|
||||
Unbreakable Dirt=Terra infrangibile
|
||||
Unbreakable Dirt with Grass=Erba infrangibile
|
||||
Unbreakable Full Grass=Blocco d'erba infrangibile
|
||||
Unbreakable Brick=Mattoni infrangibile
|
||||
Unbreakable Wooden Planks=Assi in legno infrangibili
|
||||
Unbreakable Tree=Albero infrangibile
|
||||
Unbreakable Glass=Vetro infrangibile
|
||||
Unbreakable Sandstone=Arenaria infrangibile
|
||||
Unbreakable Leaves=Foglie infrangibili
|
||||
Unbreakable Cobblestone=Ciottolo infrangibile
|
||||
Unbreakable Mossy Cobblestone=Ciottolo muschioso infrangibile
|
46
maptools/locale/maptools.template.tr
Normal file
@ -0,0 +1,46 @@
|
||||
# textdomain: maptools
|
||||
[maptools] loaded.=
|
||||
|
||||
Cloud=Nuage
|
||||
Infinite Fuel=
|
||||
Admin Pickaxe=
|
||||
Admin Pickaxe With Drops=
|
||||
Copper Coin=
|
||||
Silver Coin=
|
||||
Gold Coin=
|
||||
Super Apple=
|
||||
Fake Ladder=
|
||||
Smoke Block=
|
||||
Damaging Block: %s=
|
||||
Kill Block=
|
||||
Build Prevention=
|
||||
Interact Prevention=
|
||||
Climb Block=
|
||||
Light Block=
|
||||
Light Bulb=
|
||||
Player Clip=
|
||||
Player Clip Bottom Face=
|
||||
Player Clip Top Face=
|
||||
Full Clip=
|
||||
Full Clip Face=
|
||||
Permanent Fire=
|
||||
Fake Fire=
|
||||
Igniter=
|
||||
Pusher: %s=
|
||||
|
||||
Unbreakable Stone=
|
||||
Unbreakable Sand=
|
||||
Unbreakable Desert Stone=
|
||||
Unbreakable Desert Sand=
|
||||
Unbreakable Gravel=
|
||||
Unbreakable Dirt=
|
||||
Unbreakable Dirt with Grass=
|
||||
Unbreakable Full Grass=
|
||||
Unbreakable Brick=
|
||||
Unbreakable Wooden Planks=
|
||||
Unbreakable Tree=
|
||||
Unbreakable Glass=
|
||||
Unbreakable Sandstone=
|
||||
Unbreakable Leaves=
|
||||
Unbreakable Cobblestone=
|
||||
Unbreakable Mossy Cobblestone=
|
@ -1,4 +1,5 @@
|
||||
name = maptools
|
||||
description = Adds various special versions of normal blocks, tools, and other map maintainer tools.
|
||||
depends = default
|
||||
optional_depends = intllib, moreores
|
||||
optional_depends = moreores
|
||||
min_minetest_version = 5.0.0
|
||||
|
@ -467,3 +467,19 @@ minetest.register_node("maptools:superapple", {
|
||||
sounds = default.node_sound_defaults(),
|
||||
on_drop = maptools.drop_msg
|
||||
})
|
||||
|
||||
minetest.register_node("maptools:drowning", {
|
||||
description = S("Drownable Air"),
|
||||
range = 12,
|
||||
stack_max = 10000,
|
||||
inventory_image = "default_steel_block.png^dye_black.png",
|
||||
drawtype = "airlike",
|
||||
paramtype = "light",
|
||||
pointable = false,
|
||||
walkable = false,
|
||||
drowning = 1,
|
||||
sunlight_propagates = true,
|
||||
drop = "",
|
||||
groups = {unbreakable = 1, not_in_creative_inventory = maptools.creative},
|
||||
on_drop = maptools.drop_msg
|
||||
})
|
||||
|
@ -1 +0,0 @@
|
||||
default
|
2
mesecons/mod.conf
Normal file
@ -0,0 +1,2 @@
|
||||
name = mesecons
|
||||
depends = default
|
@ -1 +0,0 @@
|
||||
mesecons
|
2
mesecons_alias/mod.conf
Normal file
@ -0,0 +1,2 @@
|
||||
name = mesecons_alias
|
||||
depends = mesecons
|
@ -1 +0,0 @@
|
||||
mesecons
|
2
mesecons_blinkyplant/mod.conf
Normal file
@ -0,0 +1,2 @@
|
||||
name = mesecons_blinkyplant
|
||||
depends = mesecons
|
@ -1,2 +0,0 @@
|
||||
mesecons
|
||||
mesecons_receiver
|
2
mesecons_button/mod.conf
Normal file
@ -0,0 +1,2 @@
|
||||
name = mesecons_button
|
||||
depends = mesecons, mesecons_receiver
|
@ -1 +0,0 @@
|
||||
mesecons
|
2
mesecons_commandblock/mod.conf
Normal file
@ -0,0 +1,2 @@
|
||||
name = mesecons_commandblock
|
||||
depends = mesecons
|
@ -1 +0,0 @@
|
||||
mesecons
|
2
mesecons_delayer/mod.conf
Normal file
@ -0,0 +1,2 @@
|
||||
name = mesecons_delayer
|
||||
depends = mesecons
|
@ -1,2 +0,0 @@
|
||||
mesecons
|
||||
mesecons_materials
|