Fix item help for xpanes

master
Wuzzy 2019-08-26 12:04:05 +02:00
parent 004a34b020
commit d0af4be8ce
3 changed files with 32 additions and 8 deletions

View File

@ -156,3 +156,8 @@ Craft a golden cup.=Fertigen Sie einen Goldpokal.
Craft 512 cobbled sandstone.=Fertigen Sie 512 Sandsteinpflaster.
An icy steel trapdoor is a combination of an ice trapdoor and a steel trapdoor. It covers the floor and can only be opened and closed by its placer. Icy steel trapdoors are solid, but some light can pass through nonetheless.=Eine Eisstahlfalltür ist eine Kombination aus Eisfalltür und Stahlfalltür. Sie bedeckt den Boden und kann nur vom Eigentümer geöffnet oder geschlossen werden. Eisstahlfalltüren sind solide, aber etwas Licht scheint hindurch.
A decorative, semitransparent block. The dirt makes it hard for the sunlight to pass through.=Ein dekorativer halbtransparenter Block. Der Dreck reduziert die Lichtstärke.
Papier barriers are thin solid layers of paper which neatly connect to their neighbors as you build them. They could be useful to separate rooms.=Papierbarrieren sind dünne feste Papierschichten, die sich mit ihren Nachbarblöcken verbinden. Sie könnten nützlich sein, um Räume zu teilen.
Wooden bars are barriers which neatly connect to their neighbors as you build them.=Holzgitter sind Barrieren, die sich mit ihren Nachbarblöcken verbinden.
Goldglass panes are thin layers of goldglass which neatly connect to their neighbors as you build them.=Goldglasscheiben sind dünne Goldglasschichten, die sich mit ihren Nachbarblöcken verbinden.
Golden windows are decorative blocks which can be placed into holes for nice-looking windows. Golden windows automatically connect to their neighbors as you build them.=Goldfenster sind dünne dekorative Blöcke, die in Lücken als gutaussehende Fenster platziert werden können. Goldfenster verbinden sich automatisch mit ihren Nachbarn.
Papyrus lattices are strong barriers which neatly connect to their neighbors as you build them.=Papyrusgitter sind stabile Barrieren, die sich automatisch mit ihren Nachbarn verbinden.

View File

@ -154,3 +154,8 @@ Tin Brick Stair =
Wooden Bar Door =
Wooden Bars =
Yellow Desert =
Papier barriers are thin solid layers of paper which neatly connect to their neighbors as you build them. They could be useful to separate rooms. =
Wooden bars are barriers which neatly connect to their neighbors as you build them. =
Goldglass panes are thin layers of goldglass which neatly connect to their neighbors as you build them. =
Golden windows are decorative blocks which can be placed into holes for nice-looking windows. Golden windows automatically connect to their neighbors as you build them. =
Papyrus lattices are strong barriers which neatly connect to their neighbors as you build them. =

View File

@ -1,11 +1,8 @@
local S = minetest.get_translator("mtg_plus")
-- TODO: Properly add Help support (current way is wrong)
-- xpanes
xpanes.register_pane("paper", {
description = S("Paper Barrier"),
_doc_items_longdesc = S("Papier barriers are thin solid layers of paper which neatly connect to their neighbors as you build them. They could be useful to separte rooms."),
inventory_image = "mtg_plus_paperwall.png",
wield_image = "mtg_plus_paperwall.png",
textures = {"mtg_plus_paperwall.png", "mtg_plus_paperwall.png", "mtg_plus_paperwall.png"},
@ -36,7 +33,6 @@ minetest.register_craft({
xpanes.register_pane("wood", {
description = S("Wooden Bars"),
_doc_items_longdesc = S("Wooden bars are barriers which neatly connect to their neighbors as you build them."),
inventory_image = "mtg_plus_wooden_bar.png",
wield_image = "mtg_plus_wooden_bar.png",
textures = {"mtg_plus_wooden_bar.png", "mtg_plus_wooden_bar_side.png", "mtg_plus_wooden_bar_y.png"},
@ -62,7 +58,6 @@ minetest.register_craft({
xpanes.register_pane("goldglass", {
description = S("Goldglass Pane"),
_doc_items_longdesc = S("Goldglass panes are thin layers of goldglass which neatly connect to their neighbors as you build them."),
inventory_image = "mtg_plus_goldglass.png",
wield_image = "mtg_plus_goldglass.png",
textures = {"mtg_plus_goldglass.png","mtg_plus_goldglass_pane_half.png","mtg_plus_goldglass_pane_top.png",},
@ -76,7 +71,6 @@ xpanes.register_pane("goldglass", {
xpanes.register_pane("goldglass2", {
description = S("Golden Window"),
_doc_items_longdesc = S("Golden windows are decorational blocks which can be placed into holes for nice-looking windows. Golden windows automatically connect to their neighbors as you build them."),
inventory_image = "mtg_plus_goldglass2.png",
wield_image = "mtg_plus_goldglass2.png",
textures = {"mtg_plus_goldglass2.png","mtg_plus_goldglass_pane_half.png","mtg_plus_goldglass_pane_top.png",},
@ -91,7 +85,6 @@ xpanes.register_pane("goldglass2", {
xpanes.register_pane("papyrus", {
description = S("Papyrus Lattice"),
_doc_items_longdesc = S("Papyrus lattices are strong barriers which neatly connect to their neighbors as you build them."),
inventory_image = "mtg_plus_papyrus_lattice.png",
wield_image = "mtg_plus_papyrus_lattice.png",
textures = {"mtg_plus_papyrus_lattice.png","mtg_plus_papyrus_lattice.png","mtg_plus_papyrus_lattice.png"},
@ -117,7 +110,6 @@ minetest.register_craft({
xpanes.register_pane("ice", {
description = S("Ice Window Pane"),
_doc_items_longdesc = S("Ice window panes are thinner than the full ice windows and neatly connect to each other as you build them"),
inventory_image = "mtg_plus_ice_window.png",
wield_image = "mtg_plus_ice_window.png",
textures = {"mtg_plus_ice_window.png", "mtg_plus_ice_window.png", "mtg_plus_ice_window.png"},
@ -128,3 +120,25 @@ xpanes.register_pane("ice", {
{ "mtg_plus:ice_window", "mtg_plus:ice_window", "mtg_plus:ice_window", }
}
})
local panes = {
paper = S("Papier barriers are thin solid layers of paper which neatly connect to their neighbors as you build them. They could be useful to separate rooms."),
wood = S("Wooden bars are barriers which neatly connect to their neighbors as you build them."),
goldglass = S("Goldglass panes are thin layers of goldglass which neatly connect to their neighbors as you build them."),
goldglass2 = S("Golden windows are decorative blocks which can be placed into holes for nice-looking windows. Golden windows automatically connect to their neighbors as you build them."),
papyrus = S("Papyrus lattices are strong barriers which neatly connect to their neighbors as you build them."),
ice = S("Ice window panes are thinner than the full ice windows and neatly connect to each other as you build them"),
}
for pane, longdesc in pairs(panes) do
minetest.override_item("xpanes:"..pane.."_flat", {
_doc_items_longdesc = longdesc,
})
minetest.override_item("xpanes:"..pane, {
_doc_items_create_entry = false,
})
if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "xpanes:"..pane.."_flat", "nodes", "xpanes:"..pane)
end
end