New translation system, part 11: Redstone

This commit is contained in:
Wuzzy 2019-03-08 01:07:41 +01:00
parent 44fcf6eb34
commit 3cfdb85926
13 changed files with 120 additions and 107 deletions

View file

@ -1,4 +1,6 @@
-- REDSTONE TORCHES
-- REDSTONE TORCH AND BLOCK OF REDSTONE
local S = minetest.get_translator("mesecons_torch")
local TORCH_COOLOFF = 120 -- Number of seconds it takes for a burned-out torch to reactivate
@ -164,13 +166,13 @@ mcl_torches.register_torch("mesecon_torch_overheated", "Redstone Torch (overheat
mcl_torches.register_torch("mesecon_torch_on", "Redstone Torch",
"A redstone torch is a redstone component which can be used to invert a redstone signal. It supplies its surrounding blocks with redstone power, except for the block it is attached to. A redstone torch is normally lit, but it can also be turned off by powering the block it is attached to. While unlit, a redstone torch does not power anything.",
[[Redstone torches can generally be placed at the side and on the top of full solid opaque blocks. The following exceptions apply:
Glass, fence, wall, hopper: Can only be placed on top
Upside-down slab/stair: Can only be placed on top
Soul sand, mob spawner: Placement possible
Glowstone and pistons: No placement possible]],
mcl_torches.register_torch("mesecon_torch_on", S("Redstone Torch"),
S("A redstone torch is a redstone component which can be used to invert a redstone signal. It supplies its surrounding blocks with redstone power, except for the block it is attached to. A redstone torch is normally lit, but it can also be turned off by powering the block it is attached to. While unlit, a redstone torch does not power anything."),
S("Redstone torches can generally be placed at the side and on the top of full solid opaque blocks. The following exceptions apply:").."\n"..
S("• Glass, fence, wall, hopper: Can only be placed on top")..
S("• Upside-down slab/stair: Can only be placed on top")..
S("• Soul sand, mob spawner: Placement possible")..
S("• Glowstone and pistons: No placement possible"),
"jeija_torches_on.png",
"mcl_torches_torch_floor.obj", "mcl_torches_torch_wall.obj",
{"jeija_torches_on.png"},
@ -193,8 +195,8 @@ mcl_torches.register_torch("mesecon_torch_on", "Redstone Torch",
)
minetest.register_node("mesecons_torch:redstoneblock", {
description = "Block of Redstone",
_doc_items_longdesc = "A block of redstone permanently supplies redstone power to its surrounding blocks.",
description = S("Block of Redstone"),
_doc_items_longdesc = S("A block of redstone permanently supplies redstone power to its surrounding blocks."),
tiles = {"redstone_redstone_block.png"},
stack_max = 64,
groups = {pickaxey=1},