New translation system, part 7: Items, part 3
This commit is contained in:
parent
e4fbbeddb2
commit
a29626881f
20 changed files with 253 additions and 220 deletions
|
@ -1,7 +1,9 @@
|
|||
local S = minetest.get_translator("mcl_farming")
|
||||
|
||||
minetest.register_craftitem("mcl_farming:beetroot_seeds", {
|
||||
description = "Beetroot Seeds",
|
||||
_doc_items_longdesc = "Grows into a beetroot plant. Chickens like beetroot seeds.",
|
||||
_doc_items_usagehelp = "Place the beetroot seeds on farmland (which can be created with a hoe) to plant a beetroot plant. They grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it beetroot seeds.",
|
||||
description = S("Beetroot Seeds"),
|
||||
_doc_items_longdesc = S("Grows into a beetroot plant. Chickens like beetroot seeds."),
|
||||
_doc_items_usagehelp = S("Place the beetroot seeds on farmland (which can be created with a hoe) to plant a beetroot plant. They grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it beetroot seeds."),
|
||||
groups = { craftitem=1 },
|
||||
inventory_image = "mcl_farming_beetroot_seeds.png",
|
||||
wield_image = "mcl_farming_beetroot_seeds.png",
|
||||
|
@ -11,9 +13,9 @@ minetest.register_craftitem("mcl_farming:beetroot_seeds", {
|
|||
})
|
||||
|
||||
minetest.register_node("mcl_farming:beetroot_0", {
|
||||
description = "Premature Beetroot Plant (Stage 1)",
|
||||
_doc_items_longdesc = "Beetroot plants are plants which grow on farmland under sunlight in 4 stages. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature.",
|
||||
_doc_items_entry_name = "Premature Beetroot Plant",
|
||||
description = S("Premature Beetroot Plant (Stage 1)"),
|
||||
_doc_items_longdesc = S("Beetroot plants are plants which grow on farmland under sunlight in 4 stages. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature."),
|
||||
_doc_items_entry_name = S("Premature Beetroot Plant"),
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
sunlight_propagates = true,
|
||||
|
@ -36,7 +38,7 @@ minetest.register_node("mcl_farming:beetroot_0", {
|
|||
})
|
||||
|
||||
minetest.register_node("mcl_farming:beetroot_1", {
|
||||
description = "Premature Beetroot Plant (Stage 2)",
|
||||
description = S("Premature Beetroot Plant (Stage 2)"),
|
||||
_doc_items_create_entry = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
|
@ -60,7 +62,7 @@ minetest.register_node("mcl_farming:beetroot_1", {
|
|||
})
|
||||
|
||||
minetest.register_node("mcl_farming:beetroot_2", {
|
||||
description = "Premature Beetroot Plant (Stage 3)",
|
||||
description = S("Premature Beetroot Plant (Stage 3)"),
|
||||
_doc_items_create_entry = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
|
@ -84,8 +86,8 @@ minetest.register_node("mcl_farming:beetroot_2", {
|
|||
})
|
||||
|
||||
minetest.register_node("mcl_farming:beetroot", {
|
||||
description = "Mature Beetroot Plant",
|
||||
_doc_items_longdesc = "A mature beetroot plant is a farming plant which is ready to be harvested for a beetroot and some beetroot seeds. It won't grow any further.",
|
||||
description = S("Mature Beetroot Plant"),
|
||||
_doc_items_longdesc = S("A mature beetroot plant is a farming plant which is ready to be harvested for a beetroot and some beetroot seeds. It won't grow any further."),
|
||||
_doc_items_create_entry = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
|
@ -123,9 +125,9 @@ minetest.register_node("mcl_farming:beetroot", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:beetroot_item", {
|
||||
description = "Beetroot",
|
||||
_doc_items_longdesc = "Beetroots are both used as food item and a dye ingredient. Pigs like beetroots, too.",
|
||||
_doc_items_usagehelp = "Hold it in your hand and right-click to eat it. Rightclick an animal to feed it.",
|
||||
description = S("Beetroot"),
|
||||
_doc_items_longdesc = S("Beetroots are both used as food item and a dye ingredient. Pigs like beetroots, too."),
|
||||
_doc_items_usagehelp = S("Hold it in your hand and right-click to eat it. Rightclick an animal to feed it."),
|
||||
inventory_image = "mcl_farming_beetroot.png",
|
||||
wield_image = "mcl_farming_beetroot.png",
|
||||
on_place = minetest.item_eat(1),
|
||||
|
@ -135,8 +137,8 @@ minetest.register_craftitem("mcl_farming:beetroot_item", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:beetroot_soup", {
|
||||
description = "Beetroot Soup",
|
||||
_doc_items_longdesc = "Beetroot soup is a food item.",
|
||||
description = S("Beetroot Soup"),
|
||||
_doc_items_longdesc = S("Beetroot soup is a food item."),
|
||||
stack_max = 1,
|
||||
inventory_image = "mcl_farming_beetroot_soup.png",
|
||||
wield_image = "mcl_farming_beetroot_soup.png",
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_farming")
|
||||
|
||||
for i=1, 7 do
|
||||
local texture, sel_height
|
||||
if i < 3 then
|
||||
|
@ -14,13 +16,13 @@ for i=1, 7 do
|
|||
local create, name, longdesc
|
||||
if i == 1 then
|
||||
create = true
|
||||
name = "Premature Carrot Plant"
|
||||
longdesc = "Carrot plants are plants which grow on farmland under sunlight in 8 stages, of which only 4 are actually visible. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature."
|
||||
name = S("Premature Carrot Plant")
|
||||
longdesc = S("Carrot plants are plants which grow on farmland under sunlight in 8 stages, of which only 4 are actually visible. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature.")
|
||||
else
|
||||
create = false
|
||||
end
|
||||
minetest.register_node("mcl_farming:carrot_"..i, {
|
||||
description = string.format("Premature Carrot Plant (Stage %d)", i),
|
||||
description = S("Premature Carrot Plant (Stage @1)", i),
|
||||
_doc_items_create_entry = create,
|
||||
_doc_items_entry_name = name,
|
||||
_doc_items_longdesc = longdesc,
|
||||
|
@ -47,8 +49,8 @@ for i=1, 7 do
|
|||
end
|
||||
|
||||
minetest.register_node("mcl_farming:carrot", {
|
||||
description = "Mature Carrot Plant",
|
||||
_doc_items_longdesc = "Mature carrot plants are ready to be harvested for carrots. They won't grow any further.",
|
||||
description = S("Mature Carrot Plant"),
|
||||
_doc_items_longdesc = S("Mature carrot plants are ready to be harvested for carrots. They won't grow any further."),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "meshoptions",
|
||||
|
@ -79,9 +81,9 @@ minetest.register_node("mcl_farming:carrot", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:carrot_item", {
|
||||
description = "Carrot",
|
||||
_doc_items_longdesc = "Carrots can be eaten and planted. Pigs and rabbits like carrots.",
|
||||
_doc_items_usagehelp = "Hold it in your hand and rightclick to eat it. Place it on top of farmland to plant the carrot. It grows in sunlight and grows faster on hydrated farmland. Rightclick an animal to feed it.",
|
||||
description = S("Carrot"),
|
||||
_doc_items_longdesc = S("Carrots can be eaten and planted. Pigs and rabbits like carrots."),
|
||||
_doc_items_usagehelp = S("Hold it in your hand and rightclick to eat it. Place it on top of farmland to plant the carrot. It grows in sunlight and grows faster on hydrated farmland. Rightclick an animal to feed it."),
|
||||
inventory_image = "farming_carrot.png",
|
||||
groups = { food = 2, eatable = 3 },
|
||||
_mcl_saturation = 3.6,
|
||||
|
@ -97,8 +99,8 @@ minetest.register_craftitem("mcl_farming:carrot_item", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:carrot_item_gold", {
|
||||
description = "Golden Carrot",
|
||||
_doc_items_longdesc = "A golden carrot is a precious food item which can be eaten. It is really, really filling!",
|
||||
description = S("Golden Carrot"),
|
||||
_doc_items_longdesc = S("A golden carrot is a precious food item which can be eaten. It is really, really filling!"),
|
||||
inventory_image = "farming_carrot_gold.png",
|
||||
on_place = minetest.item_eat(6),
|
||||
on_secondary_use = minetest.item_eat(6),
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_farming")
|
||||
|
||||
local function create_soil(pos, inv)
|
||||
if pos == nil then
|
||||
return false
|
||||
|
@ -23,11 +25,11 @@ local function create_soil(pos, inv)
|
|||
return false
|
||||
end
|
||||
|
||||
local hoe_longdesc = "Hoes are essential tools for growing crops. They are used to create farmland in order to plant seeds on it. Hoes can also be used as very weak weapons in a pinch."
|
||||
local hoe_usagehelp = "Use the hoe on a cultivatable block (by rightclicking it) to turn it into farmland. Dirt, grass blocks and grass paths are cultivatable blocks. Using a hoe on coarse dirt turns it into dirt."
|
||||
local hoe_longdesc = S("Hoes are essential tools for growing crops. They are used to create farmland in order to plant seeds on it. Hoes can also be used as very weak weapons in a pinch.")
|
||||
local hoe_usagehelp = S("Use the hoe on a cultivatable block (by rightclicking it) to turn it into farmland. Dirt, grass blocks and grass paths are cultivatable blocks. Using a hoe on coarse dirt turns it into dirt.")
|
||||
|
||||
minetest.register_tool("mcl_farming:hoe_wood", {
|
||||
description = "Wood Hoe",
|
||||
description = S("Wood Hoe"),
|
||||
_doc_items_longdesc = hoe_longdesc,
|
||||
_doc_items_usagehelp = hoe_usagehelp,
|
||||
_doc_items_hidden = false,
|
||||
|
@ -79,7 +81,7 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
minetest.register_tool("mcl_farming:hoe_stone", {
|
||||
description = "Stone Hoe",
|
||||
description = S("Stone Hoe"),
|
||||
_doc_items_longdesc = hoe_longdesc,
|
||||
_doc_items_usagehelp = hoe_usagehelp,
|
||||
inventory_image = "farming_tool_stonehoe.png",
|
||||
|
@ -125,7 +127,7 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
minetest.register_tool("mcl_farming:hoe_iron", {
|
||||
description = "Iron Hoe",
|
||||
description = S("Iron Hoe"),
|
||||
_doc_items_longdesc = hoe_longdesc,
|
||||
_doc_items_usagehelp = hoe_usagehelp,
|
||||
inventory_image = "farming_tool_steelhoe.png",
|
||||
|
@ -179,7 +181,7 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
minetest.register_tool("mcl_farming:hoe_gold", {
|
||||
description = "Golden Hoe",
|
||||
description = S("Golden Hoe"),
|
||||
_doc_items_longdesc = hoe_longdesc,
|
||||
_doc_items_usagehelp = hoe_usagehelp,
|
||||
inventory_image = "farming_tool_goldhoe.png",
|
||||
|
@ -234,7 +236,7 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
minetest.register_tool("mcl_farming:hoe_diamond", {
|
||||
description = "Diamond Hoe",
|
||||
description = S("Diamond Hoe"),
|
||||
_doc_items_longdesc = hoe_longdesc,
|
||||
_doc_items_usagehelp = hoe_usagehelp,
|
||||
inventory_image = "farming_tool_diamondhoe.png",
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
local S = minetest.get_translator("mcl_farming")
|
||||
|
||||
-- Seeds
|
||||
minetest.register_craftitem("mcl_farming:melon_seeds", {
|
||||
description = "Melon Seeds",
|
||||
_doc_items_longdesc = "Grows into a melon. Chickens like melon seeds.",
|
||||
_doc_items_usagehelp = "Place the melon seeds on farmland (which can be created with a hoe) to plant a melon stem. Melons grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it melon seeds.",
|
||||
description = S("Melon Seeds"),
|
||||
_doc_items_longdesc = S("Grows into a melon. Chickens like melon seeds."),
|
||||
_doc_items_usagehelp = S("Place the melon seeds on farmland (which can be created with a hoe) to plant a melon stem. Melons grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it melon seeds."),
|
||||
stack_max = 64,
|
||||
groups = { craftitem=1 },
|
||||
inventory_image = "mcl_farming_melon_seeds.png",
|
||||
|
@ -14,8 +16,8 @@ minetest.register_craftitem("mcl_farming:melon_seeds", {
|
|||
-- Melon template (will be fed into mcl_farming.register_gourd
|
||||
|
||||
local melon_base_def = {
|
||||
description = "Melon",
|
||||
_doc_items_longdesc = "A melon is a block which can be grown from melon stems, which in turn are grown from melon seeds. It can be harvested for melon slices.",
|
||||
description = S("Melon"),
|
||||
_doc_items_longdesc = S("A melon is a block which can be grown from melon stems, which in turn are grown from melon seeds. It can be harvested for melon slices."),
|
||||
stack_max = 64,
|
||||
tiles = {"farming_melon_top.png", "farming_melon_top.png", "farming_melon_side.png", "farming_melon_side.png", "farming_melon_side.png", "farming_melon_side.png"},
|
||||
groups = {handy=1,axey=1, plant=1,building_block=1,enderman_takable=1,dig_by_piston=1},
|
||||
|
@ -68,13 +70,13 @@ for s=1,7 do
|
|||
local doc = s == 1
|
||||
local longdesc, entry_name
|
||||
if doc then
|
||||
entry_name = "Premature Melon Stem"
|
||||
longdesc = "Melon stems grow on farmland in 8 stages. On hydrated farmland, the growth is a bit quicker. Mature melon stems are able to grow melons."
|
||||
entry_name = S("Premature Melon Stem")
|
||||
longdesc = S("Melon stems grow on farmland in 8 stages. On hydrated farmland, the growth is a bit quicker. Mature melon stems are able to grow melons.")
|
||||
end
|
||||
local colorstring = mcl_farming:stem_color(startcolor, endcolor, s, 8)
|
||||
local texture = "([combine:16x16:0,"..((8-s)*2).."=mcl_farming_melon_stem_disconnected.png)^[colorize:"..colorstring..":127"
|
||||
minetest.register_node("mcl_farming:melontige_"..s, {
|
||||
description = string.format("Premature Melon Stem (Stage %d)", s),
|
||||
description = S("Premature Melon Stem (Stage @1)", s),
|
||||
_doc_items_create_entry = doc,
|
||||
_doc_items_entry_name = entry_name,
|
||||
_doc_items_longdesc = longdesc,
|
||||
|
@ -100,9 +102,9 @@ end
|
|||
|
||||
-- Full melon stem, able to spawn melons
|
||||
local stem_def = {
|
||||
description = "Mature Melon Stem",
|
||||
description = S("Mature Melon Stem"),
|
||||
_doc_items_create_entry = true,
|
||||
_doc_items_longdesc = "A mature melon stem attempts to grow a melon at one of its four adjacent blocks. A melon can only grow on top of farmland, dirt, or a grass block. When a melon is next to a melon stem, the melon stem immediately bends and connects to the melon. While connected, a melon stem can't grow another melon. As soon all melons around the stem have been removed, it loses the connection and is ready to grow another melon.",
|
||||
_doc_items_longdesc = S("A mature melon stem attempts to grow a melon at one of its four adjacent blocks. A melon can only grow on top of farmland, dirt, or a grass block. When a melon is next to a melon stem, the melon stem immediately bends and connects to the melon. While connected, a melon stem can't grow another melon. As soon all melons around the stem have been removed, it loses the connection and is ready to grow another melon."),
|
||||
tiles = {"mcl_farming_melon_stem_disconnected.png^[colorize:#FFA800:127"},
|
||||
wield_image = "mcl_farming_melon_stem_disconnected.png^[colorize:#FFA800:127",
|
||||
inventory_image = "mcl_farming_melon_stem_disconnected.png^[colorize:#FFA800:127",
|
||||
|
@ -117,8 +119,8 @@ mcl_farming:add_gourd("mcl_farming:melontige_unconnect", "mcl_farming:melontige_
|
|||
-- Items and crafting
|
||||
minetest.register_craftitem("mcl_farming:melon_item", {
|
||||
-- Original name: “Melon”
|
||||
description = "Melon Slice",
|
||||
_doc_items_longdesc = "This is a food item which can be eaten.",
|
||||
description = S("Melon Slice"),
|
||||
_doc_items_longdesc = S("This is a food item which can be eaten."),
|
||||
stack_max = 64,
|
||||
inventory_image = "farming_melon.png",
|
||||
on_place = minetest.item_eat(2),
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_farming")
|
||||
|
||||
-- Premature potato plants
|
||||
|
||||
for i=1, 7 do
|
||||
|
@ -16,8 +18,8 @@ for i=1, 7 do
|
|||
local create, name, longdesc
|
||||
if i==1 then
|
||||
create = true
|
||||
name = "Premature Potato Plant"
|
||||
longdesc = "Potato plants are plants which grow on farmland under sunlight in 8 stages, of which only 4 are actually visible. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature."
|
||||
name = S("Premature Potato Plant")
|
||||
longdesc = S("Potato plants are plants which grow on farmland under sunlight in 8 stages, of which only 4 are actually visible. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature.")
|
||||
else
|
||||
create = false
|
||||
if minetest.get_modpath("doc") then
|
||||
|
@ -26,7 +28,7 @@ for i=1, 7 do
|
|||
end
|
||||
|
||||
minetest.register_node("mcl_farming:potato_"..i, {
|
||||
description = string.format("Premature Potato Plant (Stage %d)", i),
|
||||
description = S("Premature Potato Plant (Stage @1)", i),
|
||||
_doc_items_create_entry = create,
|
||||
_doc_items_entry_name = name,
|
||||
_doc_items_longdesc = longdesc,
|
||||
|
@ -52,8 +54,8 @@ end
|
|||
|
||||
-- Mature plant
|
||||
minetest.register_node("mcl_farming:potato", {
|
||||
description = "Mature Potato Plant",
|
||||
_doc_items_longdesc = "Mature potato plants are ready to be harvested for potatoes. They won't grow any further.",
|
||||
description = S("Mature Potato Plant"),
|
||||
_doc_items_longdesc = S("Mature potato plants are ready to be harvested for potatoes. They won't grow any further."),
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
sunlight_propagates = true,
|
||||
|
@ -84,9 +86,9 @@ minetest.register_node("mcl_farming:potato", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:potato_item", {
|
||||
description = "Potato",
|
||||
_doc_items_longdesc = "Potatoes are food items which can be eaten, cooked in the furnace and planted. Pigs like potatoes.",
|
||||
_doc_items_usagehelp = "Hold it in your hand and rightclick to eat it. Place it on top of farmland to plant it. It grows in sunlight and grows faster on hydrated farmland. Rightclick an animal to feed it.",
|
||||
description = S("Potato"),
|
||||
_doc_items_longdesc = S("Potatoes are food items which can be eaten, cooked in the furnace and planted. Pigs like potatoes."),
|
||||
_doc_items_usagehelp = S("Hold it in your hand and rightclick to eat it. Place it on top of farmland to plant it. It grows in sunlight and grows faster on hydrated farmland. Rightclick an animal to feed it."),
|
||||
inventory_image = "farming_potato.png",
|
||||
groups = { food = 2, eatable = 1 },
|
||||
_mcl_saturation = 0.6,
|
||||
|
@ -103,8 +105,8 @@ minetest.register_craftitem("mcl_farming:potato_item", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:potato_item_baked", {
|
||||
description = "Baked Potato",
|
||||
_doc_items_longdesc = "Baked potatoes are food items which are more filling than the unbaked ones.",
|
||||
description = S("Baked Potato"),
|
||||
_doc_items_longdesc = S("Baked potatoes are food items which are more filling than the unbaked ones."),
|
||||
stack_max = 64,
|
||||
inventory_image = "farming_potato_baked.png",
|
||||
on_place = minetest.item_eat(5),
|
||||
|
@ -114,8 +116,8 @@ minetest.register_craftitem("mcl_farming:potato_item_baked", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:potato_item_poison", {
|
||||
description = "Poisonous Potato",
|
||||
_doc_items_longdesc = "This potato doesn't look too healthy. You can eat it to restore hunger points, but there's a 60% chance it will poison you briefly.",
|
||||
description = S("Poisonous Potato"),
|
||||
_doc_items_longdesc = S("This potato doesn't look too healthy. You can eat it to restore hunger points, but there's a 60% chance it will poison you briefly."),
|
||||
stack_max = 64,
|
||||
inventory_image = "farming_potato_poison.png",
|
||||
-- TODO: Cause status effects
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
local S = minetest.get_translator("mcl_farming")
|
||||
|
||||
-- Seeds
|
||||
minetest.register_craftitem("mcl_farming:pumpkin_seeds", {
|
||||
description = "Pumpkin Seeds",
|
||||
_doc_items_longdesc = "Grows into a pumpkin. Chickens like pumpkin seeds.",
|
||||
_doc_items_usagehelp = "Place the pumpkin seeds on farmland (which can be created with a hoe) to plant a pumpkin stem. Pumpkins grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it pumpkin seeds.",
|
||||
description = S("Pumpkin Seeds"),
|
||||
_doc_items_longdesc = S("Grows into a pumpkin. Chickens like pumpkin seeds."),
|
||||
_doc_items_usagehelp = S("Place the pumpkin seeds on farmland (which can be created with a hoe) to plant a pumpkin stem. Pumpkins grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it pumpkin seeds."),
|
||||
stack_max = 64,
|
||||
inventory_image = "mcl_farming_pumpkin_seeds.png",
|
||||
groups = { craftitem=1 },
|
||||
|
@ -42,13 +44,13 @@ for s=1,7 do
|
|||
local doc = s == 1
|
||||
local longdesc, entry_name
|
||||
if doc then
|
||||
entry_name = "Premature Pumpkin Stem"
|
||||
longdesc = "Pumpkin stems grow on farmland in 8 stages. On hydrated farmland, the growth is a bit quicker. Mature pumpkin stems are able to grow pumpkins."
|
||||
entry_name = S("Premature Pumpkin Stem")
|
||||
longdesc = S("Pumpkin stems grow on farmland in 8 stages. On hydrated farmland, the growth is a bit quicker. Mature pumpkin stems are able to grow pumpkins.")
|
||||
end
|
||||
local colorstring = mcl_farming:stem_color(startcolor, endcolor, s, 8)
|
||||
local texture = "([combine:16x16:0,"..((8-s)*2).."=mcl_farming_pumpkin_stem_disconnected.png)^[colorize:"..colorstring..":127"
|
||||
minetest.register_node("mcl_farming:pumpkin_"..s, {
|
||||
description = string.format("Premature Pumpkin Stem (Stage %d)", s),
|
||||
description = S("Premature Pumpkin Stem (Stage @1)", s),
|
||||
_doc_items_entry_name = entry_name,
|
||||
_doc_items_create_entry = doc,
|
||||
_doc_items_longdesc = longdesc,
|
||||
|
@ -74,8 +76,8 @@ end
|
|||
|
||||
-- Full stem (not connected)
|
||||
local stem_def = {
|
||||
description = "Mature Pumpkin Stem",
|
||||
_doc_items_longdesc = "A mature pumpkin stem attempts to grow a pumpkin at one of its four adjacent blocks. A pumpkin can only grow on top of farmland, dirt or a grass block. When a pumpkin is next to a pumpkin stem, the pumpkin stem immediately bends and connects to the pumpkin. A connected pumpkin stem can't grow another pumpkin. As soon all pumpkins around the stem have been removed, it loses the connection and is ready to grow another pumpkin.",
|
||||
description = S("Mature Pumpkin Stem"),
|
||||
_doc_items_longdesc = S("A mature pumpkin stem attempts to grow a pumpkin at one of its four adjacent blocks. A pumpkin can only grow on top of farmland, dirt or a grass block. When a pumpkin is next to a pumpkin stem, the pumpkin stem immediately bends and connects to the pumpkin. A connected pumpkin stem can't grow another pumpkin. As soon all pumpkins around the stem have been removed, it loses the connection and is ready to grow another pumpkin."),
|
||||
tiles = {"mcl_farming_pumpkin_stem_disconnected.png^[colorize:#FFA800:127"},
|
||||
wield_image = "mcl_farming_pumpkin_stem_disconnected.png^[colorize:#FFA800:127",
|
||||
inventory_image = "mcl_farming_pumpkin_stem_disconnected.png^[colorize:#FFA800:127",
|
||||
|
@ -83,8 +85,8 @@ local stem_def = {
|
|||
|
||||
-- Template for pumpkin
|
||||
local pumpkin_base_def = {
|
||||
description = "Faceless Pumpkin",
|
||||
_doc_items_longdesc = "A faceless pumpkin is a decorative block. It can be carved with shears to obtain pumpkin seeds.",
|
||||
description = S("Faceless Pumpkin"),
|
||||
_doc_items_longdesc = S("A faceless pumpkin is a decorative block. It can be carved with shears to obtain pumpkin seeds."),
|
||||
_doc_items_usagehelp = "To carve a face into the pumpkin, use the shears on the side you want to carve.",
|
||||
stack_max = 64,
|
||||
paramtype2 = "facedir",
|
||||
|
@ -97,8 +99,8 @@ local pumpkin_base_def = {
|
|||
minetest.register_node("mcl_farming:pumpkin", pumpkin_base_def)
|
||||
|
||||
local pumpkin_face_base_def = table.copy(pumpkin_base_def)
|
||||
pumpkin_face_base_def.description = "Pumpkin"
|
||||
pumpkin_face_base_def._doc_items_longdesc = "A pumpkin can be worn as a helmet for fun, but it doesn't offer any protection. Pumpkins grow from pumpkin stems, which in turn grow from pumpkin seeds."
|
||||
pumpkin_face_base_def.description = S("Pumpkin")
|
||||
pumpkin_face_base_def._doc_items_longdesc = S("A pumpkin can be worn as a helmet for fun, but it doesn't offer any protection. Pumpkins grow from pumpkin stems, which in turn grow from pumpkin seeds.")
|
||||
pumpkin_face_base_def.tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face.png"}
|
||||
pumpkin_face_base_def.groups.armor_head=1
|
||||
pumpkin_face_base_def.groups.non_combat_armor=1
|
||||
|
@ -116,8 +118,8 @@ end)
|
|||
|
||||
-- Jack o'Lantern
|
||||
minetest.register_node("mcl_farming:pumpkin_face_light", {
|
||||
description = "Jack o'Lantern",
|
||||
_doc_items_longdesc = "A jack o'lantern is a traditional Halloween decoration made from a pumpkin. It glows brightly.",
|
||||
description = S("Jack o'Lantern"),
|
||||
_doc_items_longdesc = S("A jack o'lantern is a traditional Halloween decoration made from a pumpkin. It glows brightly."),
|
||||
is_ground_content = false,
|
||||
stack_max = 64,
|
||||
paramtype = "light",
|
||||
|
@ -155,8 +157,8 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:pumpkin_pie", {
|
||||
description = "Pumpkin Pie",
|
||||
_doc_items_longdesc = "A pumpkin pie is a tasty food item which can be eaten.",
|
||||
description = S("Pumpkin Pie"),
|
||||
_doc_items_longdesc = S("A pumpkin pie is a tasty food item which can be eaten."),
|
||||
stack_max = 64,
|
||||
inventory_image = "mcl_farming_pumpkin_pie.png",
|
||||
wield_image = "mcl_farming_pumpkin_pie.png",
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
local S = minetest.get_translator("mcl_farming")
|
||||
|
||||
minetest.register_node("mcl_farming:soil", {
|
||||
tiles = {"mcl_farming_farmland_dry.png", "default_dirt.png"},
|
||||
description = "Farmland",
|
||||
_doc_items_longdesc = "Farmland is used for farming, a necessary surface to plant crops. It is created when a hoe is used on dirt or a similar block. Plants are able to grow on farmland, but slowly. Farmland will become hydrated farmland (on which plants grow faster) when it rains or a water source is nearby. This block will turn back to dirt when a solid block appears above it or a piston arm extends above it.",
|
||||
description = S("Farmland"),
|
||||
_doc_items_longdesc = S("Farmland is used for farming, a necessary surface to plant crops. It is created when a hoe is used on dirt or a similar block. Plants are able to grow on farmland, but slowly. Farmland will become hydrated farmland (on which plants grow faster) when it rains or a water source is nearby. This block will turn back to dirt when a solid block appears above it or a piston arm extends above it."),
|
||||
drop = "mcl_core:dirt",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
|
@ -24,8 +26,8 @@ minetest.register_node("mcl_farming:soil", {
|
|||
|
||||
minetest.register_node("mcl_farming:soil_wet", {
|
||||
tiles = {"mcl_farming_farmland_wet.png", "default_dirt.png"},
|
||||
description = "Hydrated Farmland",
|
||||
_doc_items_longdesc = "Hydrated farmland is used in farming, this is where you can plant and grow some plants. It is created when farmlands is under rain or near water. Without water, this block will dry out eventually. This block will turn back to dirt when a solid block appears above it or a piston arm extends above it.",
|
||||
description = S("Hydrated Farmland"),
|
||||
_doc_items_longdesc = S("Hydrated farmland is used in farming, this is where you can plant and grow some plants. It is created when farmlands is under rain or near water. Without water, this block will dry out eventually. This block will turn back to dirt when a solid block appears above it or a piston arm extends above it."),
|
||||
drop = "mcl_core:dirt",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
local S = minetest.get_translator("mcl_farming")
|
||||
|
||||
minetest.register_craftitem("mcl_farming:wheat_seeds", {
|
||||
-- Original Minecraft name: “Seeds”
|
||||
description = "Wheat Seeds",
|
||||
_doc_items_longdesc = "Grows into a wheat plant. Chickens like wheat seeds.",
|
||||
_doc_items_usagehelp = "Place the wheat seeds on farmland (which can be created with a hoe) to plant a wheat plant. They grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it wheat seeds.",
|
||||
description = S("Wheat Seeds"),
|
||||
_doc_items_longdesc = S("Grows into a wheat plant. Chickens like wheat seeds."),
|
||||
_doc_items_usagehelp = S("Place the wheat seeds on farmland (which can be created with a hoe) to plant a wheat plant. They grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it wheat seeds."),
|
||||
groups = { craftitem=1 },
|
||||
inventory_image = "mcl_farming_wheat_seeds.png",
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
@ -24,14 +26,14 @@ for i=1,7 do
|
|||
local create, name, longdesc
|
||||
if i == 1 then
|
||||
create = true
|
||||
name = "Premature Wheat Plant"
|
||||
longdesc = "Premature wheat plants grow on farmland under sunlight in 8 stages. On hydrated farmland, they grow faster. They can be harvested at any time but will only yield a profit when mature."
|
||||
name = S("Premature Wheat Plant")
|
||||
longdesc = S("Premature wheat plants grow on farmland under sunlight in 8 stages. On hydrated farmland, they grow faster. They can be harvested at any time but will only yield a profit when mature.")
|
||||
else
|
||||
create = false
|
||||
end
|
||||
|
||||
minetest.register_node("mcl_farming:wheat_"..i, {
|
||||
description = string.format("Premature Wheat Plant (Stage %d)", i),
|
||||
description = S("Premature Wheat Plant (Stage @1)", i),
|
||||
_doc_items_create_entry = create,
|
||||
_doc_items_entry_name = name,
|
||||
_doc_items_longdesc = longdesc,
|
||||
|
@ -58,8 +60,8 @@ for i=1,7 do
|
|||
end
|
||||
|
||||
minetest.register_node("mcl_farming:wheat", {
|
||||
description = "Mature Wheat Plant",
|
||||
_doc_items_longdesc = "Mature wheat plants are ready to be harvested for wheat and wheat seeds. They won't grow any further.",
|
||||
description = S("Mature Wheat Plant"),
|
||||
_doc_items_longdesc = S("Mature wheat plants are ready to be harvested for wheat and wheat seeds. They won't grow any further."),
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
|
@ -86,8 +88,8 @@ minetest.register_node("mcl_farming:wheat", {
|
|||
mcl_farming:add_plant("plant_wheat", "mcl_farming:wheat", {"mcl_farming:wheat_1", "mcl_farming:wheat_2", "mcl_farming:wheat_3", "mcl_farming:wheat_4", "mcl_farming:wheat_5", "mcl_farming:wheat_6", "mcl_farming:wheat_7"}, 25, 20)
|
||||
|
||||
minetest.register_craftitem("mcl_farming:wheat_item", {
|
||||
description = "Wheat",
|
||||
_doc_items_longdesc = "Wheat is used in crafting. Some animals like wheat.",
|
||||
description = S("Wheat"),
|
||||
_doc_items_longdesc = S("Wheat is used in crafting. Some animals like wheat."),
|
||||
_doc_items_usagehelp = "Rightclick an animal to try to feed it wheat.",
|
||||
inventory_image = "farming_wheat_harvested.png",
|
||||
groups = { craftitem = 1 },
|
||||
|
@ -108,8 +110,8 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:cookie", {
|
||||
description = "Cookie",
|
||||
_doc_items_longdesc = "This is a food item which can be eaten.",
|
||||
description = S("Cookie"),
|
||||
_doc_items_longdesc = S("This is a food item which can be eaten."),
|
||||
inventory_image = "farming_cookie.png",
|
||||
groups = {food=2, eatable=2},
|
||||
_mcl_saturation = 0.4,
|
||||
|
@ -119,8 +121,8 @@ minetest.register_craftitem("mcl_farming:cookie", {
|
|||
|
||||
|
||||
minetest.register_craftitem("mcl_farming:bread", {
|
||||
description = "Bread",
|
||||
_doc_items_longdesc = "This is a food item which can be eaten.",
|
||||
description = S("Bread"),
|
||||
_doc_items_longdesc = S("This is a food item which can be eaten."),
|
||||
inventory_image = "farming_bread.png",
|
||||
groups = {food=2, eatable=5},
|
||||
_mcl_saturation = 6.0,
|
||||
|
@ -129,8 +131,8 @@ minetest.register_craftitem("mcl_farming:bread", {
|
|||
})
|
||||
|
||||
minetest.register_node("mcl_farming:hay_block", {
|
||||
description = "Hay Bale",
|
||||
_doc_items_longdesc = "Hay bales are decorative blocks made from wheat.",
|
||||
description = S("Hay Bale"),
|
||||
_doc_items_longdesc = S("Hay bales are decorative blocks made from wheat."),
|
||||
tiles = {"mcl_farming_hayblock_top.png", "mcl_farming_hayblock_top.png", "mcl_farming_hayblock_side.png"},
|
||||
is_ground_content = false,
|
||||
stack_max = 64,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue