forked from mtcontrib/signs_lib
Merge pull request #7 from xisd/patch-1
make colored metal signs optional (default to enabled)
This commit is contained in:
commit
66265132dd
7
init.lua
7
init.lua
@ -9,6 +9,8 @@
|
|||||||
-- { delta = {entity position for 270° yaw}, exact yaw expression }
|
-- { delta = {entity position for 270° yaw}, exact yaw expression }
|
||||||
-- { delta = {entity position for 90° yaw}, exact yaw expression }
|
-- { delta = {entity position for 90° yaw}, exact yaw expression }
|
||||||
-- }
|
-- }
|
||||||
|
-- Made colored metal signs optionals
|
||||||
|
local enable_colored_metal_signs = true
|
||||||
|
|
||||||
-- CWz's keyword interact mod uses this setting.
|
-- CWz's keyword interact mod uses this setting.
|
||||||
local current_keyword = minetest.setting_get("interact_keyword") or "iaccept"
|
local current_keyword = minetest.setting_get("interact_keyword") or "iaccept"
|
||||||
@ -844,7 +846,7 @@ if minetest.registered_nodes["default:sign_wall_steel"] then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- metal, colored signs
|
-- metal, colored signs
|
||||||
|
if enable_colored_metal_signs then
|
||||||
local sign_colors = { "green", "yellow", "red", "white_red", "white_black", "orange", "blue", "brown" }
|
local sign_colors = { "green", "yellow", "red", "white_red", "white_black", "orange", "blue", "brown" }
|
||||||
local sign_default_text_colors = { "f", "0", "f", "4", "0", "0", "f", "f" }
|
local sign_default_text_colors = { "f", "0", "f", "4", "0", "0", "f", "f" }
|
||||||
|
|
||||||
@ -886,6 +888,7 @@ for i, color in ipairs(sign_colors) do
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local signs_text_on_activate
|
local signs_text_on_activate
|
||||||
|
|
||||||
@ -1022,6 +1025,7 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- craft recipes for the metal signs
|
-- craft recipes for the metal signs
|
||||||
|
if enable_colored_metal_signs then
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_green",
|
output = "signs:sign_wall_green",
|
||||||
@ -1150,6 +1154,7 @@ minetest.register_craft( {
|
|||||||
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
|
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
if minetest.setting_get("log_mods") then
|
if minetest.setting_get("log_mods") then
|
||||||
minetest.log("action", S("signs loaded"))
|
minetest.log("action", S("signs loaded"))
|
||||||
|
Loading…
Reference in New Issue
Block a user