mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-11-10 20:30:31 +01:00
add descriptions to all crop stages
This commit is contained in:
parent
2f1a233441
commit
2b65a7416b
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:artichoke", 4)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Artichoke") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_artichoke_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:asparagus", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Asparagus") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_asparagus_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -42,6 +42,7 @@ minetest.register_craftitem("farming:barley", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Barley") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_barley_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -139,6 +139,7 @@ minetest.register_node("farming:beanpole", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Green Beans") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_beanpole_1.png"},
|
||||
visual_scale = 1.90,
|
||||
|
|
|
@ -20,6 +20,7 @@ farming.add_eatable("farming:beetroot", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Beetroot") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_beetroot_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -22,6 +22,7 @@ farming.add_eatable("farming:blackberry", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Blackberry") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_blackberry_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -21,6 +21,7 @@ farming.add_eatable("farming:blueberries", 1)
|
|||
|
||||
-- ctop definition
|
||||
local def = {
|
||||
description = S("Blueberry") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_blueberry_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:cabbage", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Cabbage") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cabbage_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -23,6 +23,7 @@ farming.add_eatable("farming:carrot", 4)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Carrot") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_carrot_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -20,6 +20,7 @@ farming.add_eatable("farming:chili_pepper", 2)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Chili Pepper") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_chili_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -69,6 +69,7 @@ minetest.register_craftitem("farming:cocoa_beans_raw", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Cocoa Beans") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cocoa_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -16,6 +16,7 @@ minetest.register_craftitem("farming:coffee_beans", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Coffee") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_coffee_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -24,6 +24,7 @@ farming.add_eatable("farming:corn", 3)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Corn") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_corn_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -42,6 +42,7 @@ minetest.register_craftitem("farming:cotton", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Cotton") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cotton_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -24,6 +24,7 @@ farming.add_eatable("farming:cucumber", 4)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Cucumber") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cucumber_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:eggplant", 3)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Eggplant") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_eggplant_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -16,6 +16,7 @@ minetest.register_craftitem("farming:garlic_clove", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Garlic") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"crops_garlic_plant_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:ginger", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Ginger") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_ginger_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -137,6 +137,7 @@ minetest.register_node("farming:trellis", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Grapes") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_grapes_1.png"},
|
||||
visual_scale = 1.9,
|
||||
|
|
|
@ -42,6 +42,7 @@ minetest.register_craftitem("farming:hemp_leaf", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Hemp") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_hemp_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:lettuce", 2)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Lettuce") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_lettuce_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:melon_slice", 2)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Melon") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_melon_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -42,6 +42,7 @@ minetest.register_craftitem("farming:mint_leaf", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Mint") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_mint_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -25,6 +25,7 @@ farming.add_eatable("farming:onion", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Onion") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"crops_onion_plant_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:parsley", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Parsley") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_parsley_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -25,6 +25,7 @@ minetest.register_alias("farming:peas", "farming:pea_pod")
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Pea") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_pea_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -62,6 +62,7 @@ minetest.register_craft({
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Pepper") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"crops_pepper_plant_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -38,6 +38,7 @@ minetest.register_node("farming:pineapple", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Pineapple") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.5,
|
||||
tiles = {"farming_pineapple_1.png"},
|
||||
|
|
|
@ -36,6 +36,7 @@ farming.add_eatable("farming:potato", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Potato") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_potato_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:pumpkin_slice", 2)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Pumpkin") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_pumpkin_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -22,6 +22,7 @@ farming.add_eatable("farming:raspberries", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Raspberry") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_raspberry_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:rhubarb", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Rhubarb") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_rhubarb_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -51,6 +51,7 @@ minetest.register_craft({
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Rice") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_rice_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -20,6 +20,7 @@ minetest.register_alias("farming:soy_beans", "farming:soy_pod")
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Soy") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_soy_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:spinach", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Spinach") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_spinach_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("ethereal:strawberry", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Strawberry") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"ethereal_strawberry_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -51,6 +51,7 @@ minetest.register_craft({
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Sunflower") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_sunflower_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -24,6 +24,7 @@ farming.add_eatable("farming:tomato", 4)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Tomato") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_tomato_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -19,6 +19,7 @@ farming.add_eatable("farming:vanilla", 1)
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Vanilla") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_vanilla_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
|
@ -41,6 +41,7 @@ minetest.register_craftitem("farming:wheat", {
|
|||
-- crop definition
|
||||
|
||||
local def = {
|
||||
description = S("Wheat") .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_wheat_1.png"},
|
||||
paramtype = "light",
|
||||
|
|
6
init.lua
6
init.lua
|
@ -12,7 +12,7 @@ local S = minetest.get_translator("farming")
|
|||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20240906",
|
||||
version = "20240907",
|
||||
path = minetest.get_modpath("farming"),
|
||||
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}},
|
||||
|
@ -606,8 +606,10 @@ farming.register_plant = function(name, def)
|
|||
next_plant = mname .. ":" .. pname .. "_" .. (i + 1)
|
||||
end
|
||||
|
||||
local desc = pname:gsub("^%l", string.upper)
|
||||
|
||||
minetest.register_node(node_name, {
|
||||
description = pname:gsub("^%l", string.upper) .. " Crop",
|
||||
description = S(desc) .. S(" Crop"),
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
tiles = {mname .. "_" .. pname .. "_" .. i .. ".png"},
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# textdomain: farming
|
||||
Crop=
|
||||
Artichoke=
|
||||
Asparagus=
|
||||
Barley Seed=
|
||||
|
|
Loading…
Reference in New Issue
Block a user