New translation system, part 9: Items, part 5
This commit is contained in:
parent
47c817d75a
commit
f9b557c2ba
13 changed files with 199 additions and 174 deletions
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_tools")
|
||||
|
||||
-- mods/default/tools.lua
|
||||
|
||||
--
|
||||
|
@ -35,7 +37,7 @@ else
|
|||
end
|
||||
minetest.register_item(":", {
|
||||
type = "none",
|
||||
_doc_items_longdesc = "You use your bare hand whenever you are not wielding any item. With your hand you can mine the weakest blocks and deal minor damage by punching. Using the hand is often a last resort, as proper mining tools and weapons are better than the hand. When you are wielding an item which is not a mining tool or a weapon, it will behave as if it were the hand when you start mining or punching. In Creative Mode, the hand is able to break all blocks instantly.",
|
||||
_doc_items_longdesc = S("You use your bare hand whenever you are not wielding any item. With your hand you can mine the weakest blocks and deal minor damage by punching. Using the hand is often a last resort, as proper mining tools and weapons are better than the hand. When you are wielding an item which is not a mining tool or a weapon, it will behave as if it were the hand when you start mining or punching. In Creative Mode, the hand is able to break all blocks instantly."),
|
||||
wield_image = "wieldhand.png",
|
||||
wield_scale = {x=1.0,y=1.0,z=2.0},
|
||||
-- According to Minecraft Wiki, the exact range is 3.975.
|
||||
|
@ -50,17 +52,17 @@ minetest.register_item(":", {
|
|||
})
|
||||
|
||||
-- Help texts
|
||||
local pickaxe_longdesc = "Pickaxes are mining tools to mine hard blocks, such as stone. A pickaxe can also be used as weapon, but it is rather inefficient."
|
||||
local axe_longdesc = "An axe is your tool of choice to cut down trees, wood-based blocks and other blocks. Axes deal a lot of damage as well, but they are rather slow."
|
||||
local sword_longdesc = "Swords are great in melee combat, as they are fast, deal high damage and can endure countless battles. Swords can also be used to cut down a few particular blocks, such as cobwebs."
|
||||
local shovel_longdesc = "Shovels are tools for digging coarse blocks, such as dirt, sand and gravel. They can also be used to turn grass blocks to grass paths. Shovels can be used as weapons, but they are very weak."
|
||||
local shovel_use = "To turn a grass block into a grass path, hold the shovel in your hand, then use (rightclick) the top or side of a grass block. This only works when there's air above the grass block."
|
||||
local shears_longdesc = "Shears are tools to shear sheep, carve pumpkins and to mine a few block types. Shears are a special mining tool and can be used to obtain the original item from a grass, leaves and similar blocks."
|
||||
local pickaxe_longdesc = S("Pickaxes are mining tools to mine hard blocks, such as stone. A pickaxe can also be used as weapon, but it is rather inefficient.")
|
||||
local axe_longdesc = S("An axe is your tool of choice to cut down trees, wood-based blocks and other blocks. Axes deal a lot of damage as well, but they are rather slow.")
|
||||
local sword_longdesc = S("Swords are great in melee combat, as they are fast, deal high damage and can endure countless battles. Swords can also be used to cut down a few particular blocks, such as cobwebs.")
|
||||
local shovel_longdesc = S("Shovels are tools for digging coarse blocks, such as dirt, sand and gravel. They can also be used to turn grass blocks to grass paths. Shovels can be used as weapons, but they are very weak.")
|
||||
local shovel_use = S("To turn a grass block into a grass path, hold the shovel in your hand, then use (rightclick) the top or side of a grass block. This only works when there's air above the grass block.")
|
||||
local shears_longdesc = S("Shears are tools to shear sheep, carve pumpkins and to mine a few block types. Shears are a special mining tool and can be used to obtain the original item from a grass, leaves and similar blocks.")
|
||||
local shears_use = "To shear a sheep and obtain its wool, rightclick it. To carve a face into a pumpkin and obtain 4 pumpkin seeds, rightclick it on one of its sides. Mining works are usual, but the drops are different for a few blocks."
|
||||
|
||||
-- Picks
|
||||
minetest.register_tool("mcl_tools:pick_wood", {
|
||||
description = "Wooden Pickaxe",
|
||||
description = S("Wooden Pickaxe"),
|
||||
_doc_items_longdesc = pickaxe_longdesc,
|
||||
_doc_items_hidden = false,
|
||||
inventory_image = "default_tool_woodpick.png",
|
||||
|
@ -78,7 +80,7 @@ minetest.register_tool("mcl_tools:pick_wood", {
|
|||
_repair_material = "group:wood",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:pick_stone", {
|
||||
description = "Stone Pickaxe",
|
||||
description = S("Stone Pickaxe"),
|
||||
_doc_items_longdesc = pickaxe_longdesc,
|
||||
inventory_image = "default_tool_stonepick.png",
|
||||
groups = { tool=1, pickaxe=1 },
|
||||
|
@ -95,7 +97,7 @@ minetest.register_tool("mcl_tools:pick_stone", {
|
|||
_repair_material = "mcl_core:cobble",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:pick_iron", {
|
||||
description = "Iron Pickaxe",
|
||||
description = S("Iron Pickaxe"),
|
||||
_doc_items_longdesc = pickaxe_longdesc,
|
||||
inventory_image = "default_tool_steelpick.png",
|
||||
groups = { tool=1, pickaxe=1 },
|
||||
|
@ -112,7 +114,7 @@ minetest.register_tool("mcl_tools:pick_iron", {
|
|||
_repair_material = "mcl_core:iron_ingot",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:pick_gold", {
|
||||
description = "Golden Pickaxe",
|
||||
description = S("Golden Pickaxe"),
|
||||
_doc_items_longdesc = pickaxe_longdesc,
|
||||
inventory_image = "default_tool_goldpick.png",
|
||||
groups = { tool=1, pickaxe=1 },
|
||||
|
@ -129,7 +131,7 @@ minetest.register_tool("mcl_tools:pick_gold", {
|
|||
_repair_material = "mcl_core:gold_ingot",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:pick_diamond", {
|
||||
description = "Diamond Pickaxe",
|
||||
description = S("Diamond Pickaxe"),
|
||||
_doc_items_longdesc = pickaxe_longdesc,
|
||||
inventory_image = "default_tool_diamondpick.png",
|
||||
groups = { tool=1, pickaxe=1 },
|
||||
|
@ -238,7 +240,7 @@ end
|
|||
|
||||
-- Shovels
|
||||
minetest.register_tool("mcl_tools:shovel_wood", {
|
||||
description = "Wooden Shovel",
|
||||
description = S("Wooden Shovel"),
|
||||
_doc_items_longdesc = shovel_longdesc,
|
||||
_doc_items_usagehelp = shovel_use,
|
||||
_doc_items_hidden = false,
|
||||
|
@ -258,7 +260,7 @@ minetest.register_tool("mcl_tools:shovel_wood", {
|
|||
_repair_material = "group:wood",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:shovel_stone", {
|
||||
description = "Stone Shovel",
|
||||
description = S("Stone Shovel"),
|
||||
_doc_items_longdesc = shovel_longdesc,
|
||||
_doc_items_usagehelp = shovel_use,
|
||||
inventory_image = "default_tool_stoneshovel.png",
|
||||
|
@ -277,7 +279,7 @@ minetest.register_tool("mcl_tools:shovel_stone", {
|
|||
_repair_material = "mcl_core:cobble",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:shovel_iron", {
|
||||
description = "Iron Shovel",
|
||||
description = S("Iron Shovel"),
|
||||
_doc_items_longdesc = shovel_longdesc,
|
||||
_doc_items_usagehelp = shovel_use,
|
||||
inventory_image = "default_tool_steelshovel.png",
|
||||
|
@ -296,7 +298,7 @@ minetest.register_tool("mcl_tools:shovel_iron", {
|
|||
_repair_material = "mcl_core:iron_ingot",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:shovel_gold", {
|
||||
description = "Golden Shovel",
|
||||
description = S("Golden Shovel"),
|
||||
_doc_items_longdesc = shovel_longdesc,
|
||||
_doc_items_usagehelp = shovel_use,
|
||||
inventory_image = "default_tool_goldshovel.png",
|
||||
|
@ -315,7 +317,7 @@ minetest.register_tool("mcl_tools:shovel_gold", {
|
|||
_repair_material = "mcl_core:gold_ingot",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:shovel_diamond", {
|
||||
description = "Diamond Shovel",
|
||||
description = S("Diamond Shovel"),
|
||||
_doc_items_longdesc = shovel_longdesc,
|
||||
_doc_items_usagehelp = shovel_use,
|
||||
inventory_image = "default_tool_diamondshovel.png",
|
||||
|
@ -336,7 +338,7 @@ minetest.register_tool("mcl_tools:shovel_diamond", {
|
|||
|
||||
-- Axes
|
||||
minetest.register_tool("mcl_tools:axe_wood", {
|
||||
description = "Wooden Axe",
|
||||
description = S("Wooden Axe"),
|
||||
_doc_items_longdesc = axe_longdesc,
|
||||
_doc_items_hidden = false,
|
||||
inventory_image = "default_tool_woodaxe.png",
|
||||
|
@ -353,7 +355,7 @@ minetest.register_tool("mcl_tools:axe_wood", {
|
|||
_repair_material = "group:wood",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:axe_stone", {
|
||||
description = "Stone Axe",
|
||||
description = S("Stone Axe"),
|
||||
_doc_items_longdesc = axe_longdesc,
|
||||
inventory_image = "default_tool_stoneaxe.png",
|
||||
groups = { tool=1, axe=1 },
|
||||
|
@ -369,7 +371,7 @@ minetest.register_tool("mcl_tools:axe_stone", {
|
|||
_repair_material = "mcl_core:cobble",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:axe_iron", {
|
||||
description = "Iron Axe",
|
||||
description = S("Iron Axe"),
|
||||
_doc_items_longdesc = axe_longdesc,
|
||||
inventory_image = "default_tool_steelaxe.png",
|
||||
groups = { tool=1, axe=1 },
|
||||
|
@ -386,7 +388,7 @@ minetest.register_tool("mcl_tools:axe_iron", {
|
|||
_repair_material = "mcl_core:iron_ingot",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:axe_gold", {
|
||||
description = "Golden Axe",
|
||||
description = S("Golden Axe"),
|
||||
_doc_items_longdesc = axe_longdesc,
|
||||
inventory_image = "default_tool_goldaxe.png",
|
||||
groups = { tool=1, axe=1 },
|
||||
|
@ -402,7 +404,7 @@ minetest.register_tool("mcl_tools:axe_gold", {
|
|||
_repair_material = "mcl_core:gold_ingot",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:axe_diamond", {
|
||||
description = "Diamond Axe",
|
||||
description = S("Diamond Axe"),
|
||||
_doc_items_longdesc = axe_longdesc,
|
||||
inventory_image = "default_tool_diamondaxe.png",
|
||||
groups = { tool=1, axe=1 },
|
||||
|
@ -420,7 +422,7 @@ minetest.register_tool("mcl_tools:axe_diamond", {
|
|||
|
||||
-- Swords
|
||||
minetest.register_tool("mcl_tools:sword_wood", {
|
||||
description = "Wooden Sword",
|
||||
description = S("Wooden Sword"),
|
||||
_doc_items_longdesc = sword_longdesc,
|
||||
_doc_items_hidden = false,
|
||||
inventory_image = "default_tool_woodsword.png",
|
||||
|
@ -438,7 +440,7 @@ minetest.register_tool("mcl_tools:sword_wood", {
|
|||
_repair_material = "group:wood",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:sword_stone", {
|
||||
description = "Stone Sword",
|
||||
description = S("Stone Sword"),
|
||||
_doc_items_longdesc = sword_longdesc,
|
||||
inventory_image = "default_tool_stonesword.png",
|
||||
groups = { weapon=1 },
|
||||
|
@ -455,7 +457,7 @@ minetest.register_tool("mcl_tools:sword_stone", {
|
|||
_repair_material = "mcl_core:cobble",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:sword_iron", {
|
||||
description = "Iron Sword",
|
||||
description = S("Iron Sword"),
|
||||
_doc_items_longdesc = sword_longdesc,
|
||||
inventory_image = "default_tool_steelsword.png",
|
||||
groups = { weapon=1 },
|
||||
|
@ -472,7 +474,7 @@ minetest.register_tool("mcl_tools:sword_iron", {
|
|||
_repair_material = "mcl_core:iron_ingot",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:sword_gold", {
|
||||
description = "Golden Sword",
|
||||
description = S("Golden Sword"),
|
||||
_doc_items_longdesc = sword_longdesc,
|
||||
inventory_image = "default_tool_goldsword.png",
|
||||
groups = { weapon=1 },
|
||||
|
@ -489,7 +491,7 @@ minetest.register_tool("mcl_tools:sword_gold", {
|
|||
_repair_material = "mcl_core:gold_ingot",
|
||||
})
|
||||
minetest.register_tool("mcl_tools:sword_diamond", {
|
||||
description = "Diamond Sword",
|
||||
description = S("Diamond Sword"),
|
||||
_doc_items_longdesc = sword_longdesc,
|
||||
inventory_image = "default_tool_diamondsword.png",
|
||||
groups = { weapon=1 },
|
||||
|
@ -508,7 +510,7 @@ minetest.register_tool("mcl_tools:sword_diamond", {
|
|||
|
||||
--Shears
|
||||
minetest.register_tool("mcl_tools:shears", {
|
||||
description = "Shears",
|
||||
description = S("Shears"),
|
||||
_doc_items_longdesc = shears_longdesc,
|
||||
_doc_items_usagehelp = shears_use,
|
||||
inventory_image = "default_tool_shears.png",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue