Can place torch on upside-down stair; update help
This commit is contained in:
parent
07d36c9ded
commit
f22411656b
|
@ -64,6 +64,7 @@ mcl_torches.register_torch("mesecon_torch_on", "Redstone Torch",
|
||||||
"Redstone torches are redstone components which invert the signal of surrounding redstone components. An active component will become inactive, and an inactive component will become active. Redstone torches can be used as a quick and easy way to send a redstone to a redstone trail.",
|
"Redstone torches are redstone components which invert the signal of surrounding redstone components. An active component will become inactive, and an inactive component will become active. Redstone torches can be used as a quick and easy way to send a redstone to a redstone trail.",
|
||||||
[[Redstone torches can generally be placed at the side and on the top of full solid opaque blocks. The following exceptions apply:
|
[[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
|
• Glass, fence, wall, hopper: Can only be placed on top
|
||||||
|
• Upside-down slab/stair: Can only be placed on top
|
||||||
• Soul sand, monster spawner: Placement possible
|
• Soul sand, monster spawner: Placement possible
|
||||||
• Glowstone and pistons: No placement possible]],
|
• Glowstone and pistons: No placement possible]],
|
||||||
"jeija_torches_on_inv.png",
|
"jeija_torches_on_inv.png",
|
||||||
|
|
|
@ -73,7 +73,7 @@ mcl_torches.register_torch = function(substring, description, doc_items_longdesc
|
||||||
-- * Fence, wall, glass, hopper: Only on top
|
-- * Fence, wall, glass, hopper: Only on top
|
||||||
-- * Monster spawner
|
-- * Monster spawner
|
||||||
-- * Slab: Only on top if upside down
|
-- * Slab: Only on top if upside down
|
||||||
-- * Stairs: Only on top if upside down (TODO)
|
-- * Stairs: Only on top if upside down
|
||||||
|
|
||||||
-- Special forbidden nodes:
|
-- Special forbidden nodes:
|
||||||
-- * Piston
|
-- * Piston
|
||||||
|
@ -82,7 +82,7 @@ mcl_torches.register_torch = function(substring, description, doc_items_longdesc
|
||||||
if node.name ~= "mcl_nether:soul_sand" and node.name ~= "mcl_mobspawners:spawner" and
|
if node.name ~= "mcl_nether:soul_sand" and node.name ~= "mcl_mobspawners:spawner" and
|
||||||
((not def.groups.solid) or (not def.groups.opaque)) then
|
((not def.groups.solid) or (not def.groups.opaque)) then
|
||||||
-- Only allow top placement on these nodes
|
-- Only allow top placement on these nodes
|
||||||
if def.groups.glass or node.name == "mcl_hoppers:hopper" or node.name == "mcl_hoppers:hopper_side" or def.groups.fence == 1 or def.groups.wall or def.groups.slab_top == 1 then
|
if def.groups.glass or node.name == "mcl_hoppers:hopper" or node.name == "mcl_hoppers:hopper_side" or def.groups.fence == 1 or def.groups.wall or def.groups.slab_top == 1 or (def.groups.stair == 1 and minetest.facedir_to_dir(node.param2).y ~= 0) then
|
||||||
if wdir ~= 1 then
|
if wdir ~= 1 then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
@ -173,6 +173,7 @@ mcl_torches.register_torch("torch",
|
||||||
"Torches are light sources which can be placed at the side or on the top of most blocks.",
|
"Torches are light sources which can be placed at the side or on the top of most blocks.",
|
||||||
[[Torches can generally be placed on full solid opaque blocks. The following exceptions apply:
|
[[Torches can generally be placed on full solid opaque blocks. The following exceptions apply:
|
||||||
• Glass, fence, wall, hopper: Can only be placed on top
|
• Glass, fence, wall, hopper: Can only be placed on top
|
||||||
|
• Upside-down slab/stair: Can only be placed on top
|
||||||
• Soul sand, monster spawner: Placement possible
|
• Soul sand, monster spawner: Placement possible
|
||||||
• Glowstone and pistons: No placement possible]],
|
• Glowstone and pistons: No placement possible]],
|
||||||
"default_torch_on_floor.png",
|
"default_torch_on_floor.png",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user