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,4 @@
|
|||
local S = minetest.get_translator("xpanes")
|
||||
|
||||
local function is_pane(pos)
|
||||
return minetest.get_item_group(minetest.get_node(pos).name, "pane") > 0
|
||||
|
@ -178,7 +179,7 @@ local pane = function(description, node, append)
|
|||
end
|
||||
xpanes.register_pane("pane"..append, {
|
||||
description = description,
|
||||
_doc_items_longdesc = "Glass panes are thin layers of glass which neatly connect to their neighbors as you build them.",
|
||||
_doc_items_longdesc = S("Glass panes are thin layers of glass which neatly connect to their neighbors as you build them."),
|
||||
textures = {texture1, texture1, "xpanes_top_glass"..append..".png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = texture1,
|
||||
|
@ -197,8 +198,8 @@ end
|
|||
|
||||
-- Iron Bars
|
||||
xpanes.register_pane("bar", {
|
||||
description = "Iron Bars",
|
||||
_doc_items_longdesc = "Iron bars neatly connect to their neighbors as you build them.",
|
||||
description = S("Iron Bars"),
|
||||
_doc_items_longdesc = S("Iron bars neatly connect to their neighbors as you build them."),
|
||||
textures = {"xpanes_pane_iron.png","xpanes_pane_iron.png","xpanes_top_iron.png"},
|
||||
inventory_image = "xpanes_pane_iron.png",
|
||||
wield_image = "xpanes_pane_iron.png",
|
||||
|
@ -213,22 +214,22 @@ xpanes.register_pane("bar", {
|
|||
})
|
||||
|
||||
-- Glass Pane
|
||||
pane("Glass Pane", "mcl_core:glass", "_natural") -- triggers special case
|
||||
pane(S("Glass Pane"), "mcl_core:glass", "_natural") -- triggers special case
|
||||
|
||||
-- Stained Glass Pane
|
||||
pane("Red Stained Glass Pane", "mcl_core:glass_red", "_red")
|
||||
pane("Green Stained Glass Pane", "mcl_core:glass_green", "_green")
|
||||
pane("Blue Stained Glass Pane", "mcl_core:glass_blue", "_blue")
|
||||
pane("Light Blue Stained Glass Pane", "mcl_core:glass_light_blue", "_light_blue")
|
||||
pane("Black Stained Glass Pane", "mcl_core:glass_black", "_black")
|
||||
pane("White Stained Glass Pane", "mcl_core:glass_white", "_white")
|
||||
pane("Yellow Stained Glass Pane", "mcl_core:glass_yellow", "_yellow")
|
||||
pane("Brown Stained Glass Pane", "mcl_core:glass_brown", "_brown")
|
||||
pane("Orange Stained Glass Pane", "mcl_core:glass_orange", "_orange")
|
||||
pane("Pink Stained Glass Pane", "mcl_core:glass_pink", "_pink")
|
||||
pane("Grey Stained Glass Pane", "mcl_core:glass_gray", "_gray")
|
||||
pane("Lime Stained Glass Pane", "mcl_core:glass_lime", "_lime")
|
||||
pane("Light Grey Stained Glass Pane", "mcl_core:glass_silver", "_silver")
|
||||
pane("Magenta Stained Glass Pane", "mcl_core:glass_magenta", "_magenta")
|
||||
pane("Purple Stained Glass Pane", "mcl_core:glass_purple", "_purple")
|
||||
pane("Cyan Stained Glass Pane", "mcl_core:glass_cyan", "_cyan")
|
||||
pane(S("Red Stained Glass Pane"), "mcl_core:glass_red", "_red")
|
||||
pane(S("Green Stained Glass Pane"), "mcl_core:glass_green", "_green")
|
||||
pane(S("Blue Stained Glass Pane"), "mcl_core:glass_blue", "_blue")
|
||||
pane(S("Light Blue Stained Glass Pane"), "mcl_core:glass_light_blue", "_light_blue")
|
||||
pane(S("Black Stained Glass Pane"), "mcl_core:glass_black", "_black")
|
||||
pane(S("White Stained Glass Pane"), "mcl_core:glass_white", "_white")
|
||||
pane(S("Yellow Stained Glass Pane"), "mcl_core:glass_yellow", "_yellow")
|
||||
pane(S("Brown Stained Glass Pane"), "mcl_core:glass_brown", "_brown")
|
||||
pane(S("Orange Stained Glass Pane"), "mcl_core:glass_orange", "_orange")
|
||||
pane(S("Pink Stained Glass Pane"), "mcl_core:glass_pink", "_pink")
|
||||
pane(S("Grey Stained Glass Pane"), "mcl_core:glass_gray", "_gray")
|
||||
pane(S("Lime Stained Glass Pane"), "mcl_core:glass_lime", "_lime")
|
||||
pane(S("Light Grey Stained Glass Pane"), "mcl_core:glass_silver", "_silver")
|
||||
pane(S("Magenta Stained Glass Pane"), "mcl_core:glass_magenta", "_magenta")
|
||||
pane(S("Purple Stained Glass Pane"), "mcl_core:glass_purple", "_purple")
|
||||
pane(S("Cyan Stained Glass Pane"), "mcl_core:glass_cyan", "_cyan")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue