1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-09-21 12:10:23 +02:00

add descriptions to all crop stages

This commit is contained in:
tenplus1 2024-09-07 10:45:05 +01:00
parent 2f1a233441
commit 2b65a7416b
42 changed files with 45 additions and 2 deletions

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:artichoke", 4)
-- crop definition -- crop definition
local def = { local def = {
description = S("Artichoke") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_artichoke_1.png"}, tiles = {"farming_artichoke_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:asparagus", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Asparagus") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_asparagus_1.png"}, tiles = {"farming_asparagus_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -42,6 +42,7 @@ minetest.register_craftitem("farming:barley", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Barley") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_barley_1.png"}, tiles = {"farming_barley_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -139,6 +139,7 @@ minetest.register_node("farming:beanpole", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Green Beans") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_beanpole_1.png"}, tiles = {"farming_beanpole_1.png"},
visual_scale = 1.90, visual_scale = 1.90,

View File

@ -20,6 +20,7 @@ farming.add_eatable("farming:beetroot", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Beetroot") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_beetroot_1.png"}, tiles = {"farming_beetroot_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -22,6 +22,7 @@ farming.add_eatable("farming:blackberry", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Blackberry") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_blackberry_1.png"}, tiles = {"farming_blackberry_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -21,6 +21,7 @@ farming.add_eatable("farming:blueberries", 1)
-- ctop definition -- ctop definition
local def = { local def = {
description = S("Blueberry") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_blueberry_1.png"}, tiles = {"farming_blueberry_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:cabbage", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Cabbage") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_cabbage_1.png"}, tiles = {"farming_cabbage_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -23,6 +23,7 @@ farming.add_eatable("farming:carrot", 4)
-- crop definition -- crop definition
local def = { local def = {
description = S("Carrot") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_carrot_1.png"}, tiles = {"farming_carrot_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -20,6 +20,7 @@ farming.add_eatable("farming:chili_pepper", 2)
-- crop definition -- crop definition
local def = { local def = {
description = S("Chili Pepper") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_chili_1.png"}, tiles = {"farming_chili_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -69,6 +69,7 @@ minetest.register_craftitem("farming:cocoa_beans_raw", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Cocoa Beans") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_cocoa_1.png"}, tiles = {"farming_cocoa_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -16,6 +16,7 @@ minetest.register_craftitem("farming:coffee_beans", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Coffee") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_coffee_1.png"}, tiles = {"farming_coffee_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -24,6 +24,7 @@ farming.add_eatable("farming:corn", 3)
-- crop definition -- crop definition
local def = { local def = {
description = S("Corn") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_corn_1.png"}, tiles = {"farming_corn_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -42,6 +42,7 @@ minetest.register_craftitem("farming:cotton", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Cotton") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_cotton_1.png"}, tiles = {"farming_cotton_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -24,6 +24,7 @@ farming.add_eatable("farming:cucumber", 4)
-- crop definition -- crop definition
local def = { local def = {
description = S("Cucumber") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_cucumber_1.png"}, tiles = {"farming_cucumber_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:eggplant", 3)
-- crop definition -- crop definition
local def = { local def = {
description = S("Eggplant") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_eggplant_1.png"}, tiles = {"farming_eggplant_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -16,6 +16,7 @@ minetest.register_craftitem("farming:garlic_clove", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Garlic") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"crops_garlic_plant_1.png"}, tiles = {"crops_garlic_plant_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:ginger", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Ginger") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_ginger_1.png"}, tiles = {"farming_ginger_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -137,6 +137,7 @@ minetest.register_node("farming:trellis", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Grapes") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_grapes_1.png"}, tiles = {"farming_grapes_1.png"},
visual_scale = 1.9, visual_scale = 1.9,

View File

@ -42,6 +42,7 @@ minetest.register_craftitem("farming:hemp_leaf", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Hemp") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_hemp_1.png"}, tiles = {"farming_hemp_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:lettuce", 2)
-- crop definition -- crop definition
local def = { local def = {
description = S("Lettuce") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_lettuce_1.png"}, tiles = {"farming_lettuce_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:melon_slice", 2)
-- crop definition -- crop definition
local def = { local def = {
description = S("Melon") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_melon_1.png"}, tiles = {"farming_melon_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -42,6 +42,7 @@ minetest.register_craftitem("farming:mint_leaf", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Mint") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_mint_1.png"}, tiles = {"farming_mint_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -25,6 +25,7 @@ farming.add_eatable("farming:onion", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Onion") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"crops_onion_plant_1.png"}, tiles = {"crops_onion_plant_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:parsley", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Parsley") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_parsley_1.png"}, tiles = {"farming_parsley_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -25,6 +25,7 @@ minetest.register_alias("farming:peas", "farming:pea_pod")
-- crop definition -- crop definition
local def = { local def = {
description = S("Pea") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_pea_1.png"}, tiles = {"farming_pea_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -62,6 +62,7 @@ minetest.register_craft({
-- crop definition -- crop definition
local def = { local def = {
description = S("Pepper") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"crops_pepper_plant_1.png"}, tiles = {"crops_pepper_plant_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -38,6 +38,7 @@ minetest.register_node("farming:pineapple", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Pineapple") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
visual_scale = 1.5, visual_scale = 1.5,
tiles = {"farming_pineapple_1.png"}, tiles = {"farming_pineapple_1.png"},

View File

@ -36,6 +36,7 @@ farming.add_eatable("farming:potato", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Potato") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_potato_1.png"}, tiles = {"farming_potato_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:pumpkin_slice", 2)
-- crop definition -- crop definition
local def = { local def = {
description = S("Pumpkin") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_pumpkin_1.png"}, tiles = {"farming_pumpkin_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -22,6 +22,7 @@ farming.add_eatable("farming:raspberries", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Raspberry") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_raspberry_1.png"}, tiles = {"farming_raspberry_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:rhubarb", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Rhubarb") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_rhubarb_1.png"}, tiles = {"farming_rhubarb_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -51,6 +51,7 @@ minetest.register_craft({
-- crop definition -- crop definition
local def = { local def = {
description = S("Rice") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_rice_1.png"}, tiles = {"farming_rice_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -20,6 +20,7 @@ minetest.register_alias("farming:soy_beans", "farming:soy_pod")
-- crop definition -- crop definition
local def = { local def = {
description = S("Soy") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_soy_1.png"}, tiles = {"farming_soy_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:spinach", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Spinach") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_spinach_1.png"}, tiles = {"farming_spinach_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("ethereal:strawberry", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Strawberry") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"ethereal_strawberry_1.png"}, tiles = {"ethereal_strawberry_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -51,6 +51,7 @@ minetest.register_craft({
-- crop definition -- crop definition
local def = { local def = {
description = S("Sunflower") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_sunflower_1.png"}, tiles = {"farming_sunflower_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -24,6 +24,7 @@ farming.add_eatable("farming:tomato", 4)
-- crop definition -- crop definition
local def = { local def = {
description = S("Tomato") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_tomato_1.png"}, tiles = {"farming_tomato_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -19,6 +19,7 @@ farming.add_eatable("farming:vanilla", 1)
-- crop definition -- crop definition
local def = { local def = {
description = S("Vanilla") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_vanilla_1.png"}, tiles = {"farming_vanilla_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -41,6 +41,7 @@ minetest.register_craftitem("farming:wheat", {
-- crop definition -- crop definition
local def = { local def = {
description = S("Wheat") .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"farming_wheat_1.png"}, tiles = {"farming_wheat_1.png"},
paramtype = "light", paramtype = "light",

View File

@ -12,7 +12,7 @@ local S = minetest.get_translator("farming")
farming = { farming = {
mod = "redo", mod = "redo",
version = "20240906", version = "20240907",
path = minetest.get_modpath("farming"), path = minetest.get_modpath("farming"),
select = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}}, select = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
select_final = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5}}, select_final = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5}},
@ -606,8 +606,10 @@ farming.register_plant = function(name, def)
next_plant = mname .. ":" .. pname .. "_" .. (i + 1) next_plant = mname .. ":" .. pname .. "_" .. (i + 1)
end end
local desc = pname:gsub("^%l", string.upper)
minetest.register_node(node_name, { minetest.register_node(node_name, {
description = pname:gsub("^%l", string.upper) .. " Crop", description = S(desc) .. S(" Crop"),
drawtype = "plantlike", drawtype = "plantlike",
waving = 1, waving = 1,
tiles = {mname .. "_" .. pname .. "_" .. i .. ".png"}, tiles = {mname .. "_" .. pname .. "_" .. i .. ".png"},

View File

@ -1,4 +1,5 @@
# textdomain: farming # textdomain: farming
Crop=
Artichoke= Artichoke=
Asparagus= Asparagus=
Barley Seed= Barley Seed=