mirror of
https://repo.or.cz/minetest_wateringcan.git
synced 2024-10-06 18:03:06 +02:00
Use get_group_name from doc_items
This commit is contained in:
parent
cd282b4734
commit
57403c7a81
4
init.lua
4
init.lua
@ -2,7 +2,7 @@ local S
|
|||||||
if (minetest.get_modpath("intllib")) then
|
if (minetest.get_modpath("intllib")) then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
else
|
else
|
||||||
S = function ( s ) return s end
|
S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_tool("wateringcan:wateringcan_water", {
|
minetest.register_tool("wateringcan:wateringcan_water", {
|
||||||
@ -70,7 +70,7 @@ minetest.register_tool("wateringcan:wateringcan_empty", {
|
|||||||
description = S("Empty watering can"),
|
description = S("Empty watering can"),
|
||||||
_doc_items_entry_name = S("Watering can"),
|
_doc_items_entry_name = S("Watering can"),
|
||||||
_doc_items_longdesc = S("Watering cans are used to collect a small amount of water in order to pour it on dry blocks. One filled watering can can be used 24 times, after which it has to be refilled. Watering cans don't wear out."),
|
_doc_items_longdesc = S("Watering cans are used to collect a small amount of water in order to pour it on dry blocks. One filled watering can can be used 24 times, after which it has to be refilled. Watering cans don't wear out."),
|
||||||
_doc_items_usagehelp = S("Rightclick on water (or any other block belonging to the “Water” group) to fill or refill the watering can. Rightclick with the filled can on an appropriate block (or a plant above it) to wetten it. Soil, desert sand soil, and other blocks capable of becoming wet can be wettened. The tool wear indicator of the watering can indicates the amount of water left."),
|
_doc_items_usagehelp = S("Rightclick on water (or any other block belonging to the “@1” group) to fill or refill the watering can. Rightclick with the filled can on an appropriate block (or a plant above it) to wetten it. Soil, desert sand soil, and other blocks capable of becoming wet can be wettened. The tool wear indicator of the watering can indicates the amount of water left.", doc.sub.items.get_group_name("water")),
|
||||||
inventory_image = "wateringcan_wateringcan_empty.png",
|
inventory_image = "wateringcan_wateringcan_empty.png",
|
||||||
wield_image = "wateringcan_wateringcan_wield.png",
|
wield_image = "wateringcan_wateringcan_wield.png",
|
||||||
liquids_pointable = true,
|
liquids_pointable = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user