Change description of laser block states
parent
d5d761ed1d
commit
8158424d9b
|
@ -140,6 +140,7 @@ local register_element = function(subname, def, options)
|
||||||
else
|
else
|
||||||
def_core.after_place_node = full_update
|
def_core.after_place_node = full_update
|
||||||
end
|
end
|
||||||
|
def_core.description = S("@1 (fixed)", def.description)
|
||||||
def_core.after_dig_node = full_update
|
def_core.after_dig_node = full_update
|
||||||
def_core._after_rotate = after_rotate
|
def_core._after_rotate = after_rotate
|
||||||
if options.activate ~= false then
|
if options.activate ~= false then
|
||||||
|
@ -180,7 +181,7 @@ local register_element = function(subname, def, options)
|
||||||
local def_core_on
|
local def_core_on
|
||||||
if options.activate ~= false then
|
if options.activate ~= false then
|
||||||
def_core_on = table.copy(def_core)
|
def_core_on = table.copy(def_core)
|
||||||
def_core_on.description = S("@1 (active)", def.description)
|
def_core_on.description = S("@1 (fixed, active)", def.description)
|
||||||
def_core_on._lzr_active = nil
|
def_core_on._lzr_active = nil
|
||||||
def_core_on._lzr_inactive = "lzr_laser:"..subname
|
def_core_on._lzr_inactive = "lzr_laser:"..subname
|
||||||
def_core_on.tiles = def.tiles_on
|
def_core_on.tiles = def.tiles_on
|
||||||
|
@ -197,7 +198,7 @@ local register_element = function(subname, def, options)
|
||||||
local def_takable = table.copy(def_core)
|
local def_takable = table.copy(def_core)
|
||||||
def_takable.tiles = def.tiles_takable_off
|
def_takable.tiles = def.tiles_takable_off
|
||||||
def_takable.groups.takable = 1
|
def_takable.groups.takable = 1
|
||||||
def_takable.description = S("@1 (takable)", def.description)
|
def_takable.description = def.description
|
||||||
minetest.register_node("lzr_laser:"..subname.."_takable", def_takable)
|
minetest.register_node("lzr_laser:"..subname.."_takable", def_takable)
|
||||||
|
|
||||||
if options.activate ~= false then
|
if options.activate ~= false then
|
||||||
|
@ -206,7 +207,7 @@ local register_element = function(subname, def, options)
|
||||||
def_takable_on.tiles = def.tiles_takable_on
|
def_takable_on.tiles = def.tiles_takable_on
|
||||||
def_takable_on.light_source = def.light_source_on
|
def_takable_on.light_source = def.light_source_on
|
||||||
def_takable_on.groups.takable = 1
|
def_takable_on.groups.takable = 1
|
||||||
def_takable_on.description = S("@1 (takable, active)", def.description)
|
def_takable_on.description = S("@1 (active)", def.description)
|
||||||
if not options.keep_state_on_take then
|
if not options.keep_state_on_take then
|
||||||
def_takable_on.drop = "lzr_laser:"..subname.."_takable"
|
def_takable_on.drop = "lzr_laser:"..subname.."_takable"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue