1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 06:40:45 +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

@ -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"},