update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
-- Basic wall/yard/metal signs
|
|
|
|
-- these were originally part of signs_lib
|
|
|
|
|
|
|
|
basic_signs = {}
|
|
|
|
basic_signs.path = minetest.get_modpath(minetest.get_current_modname())
|
|
|
|
|
|
|
|
dofile(basic_signs.path .. "/crafting.lua")
|
|
|
|
|
|
|
|
local S, NS = dofile(basic_signs.path .. "/intllib.lua")
|
|
|
|
basic_signs.gettext = S
|
|
|
|
|
2019-09-14 22:49:07 -04:00
|
|
|
signs_lib.register_sign("basic_signs:sign_wall_locked", {
|
|
|
|
description = S("Locked Sign"),
|
|
|
|
tiles = {
|
|
|
|
"basic_signs_sign_wall_locked.png",
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
"signs_lib_sign_wall_steel_edges.png"
|
2019-09-14 22:49:07 -04:00
|
|
|
},
|
|
|
|
inventory_image = "basic_signs_sign_wall_locked_inv.png",
|
|
|
|
locked = true,
|
|
|
|
entity_info = "standard",
|
2019-09-15 16:19:27 -04:00
|
|
|
allow_hanging = true,
|
2019-09-21 22:07:55 -04:00
|
|
|
allow_widefont = true,
|
|
|
|
allow_onpole = true,
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
allow_onpole_horizontal = true,
|
|
|
|
allow_yard = true,
|
2021-03-01 20:49:32 -05:00
|
|
|
use_texture_alpha = "clip",
|
2019-09-14 22:49:07 -04:00
|
|
|
})
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
|
2019-09-19 01:07:05 -04:00
|
|
|
signs_lib.register_sign("basic_signs:sign_wall_glass", {
|
|
|
|
description = S("Glass Sign"),
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
yard_mesh = "signs_lib_standard_sign_yard_two_sticks.obj",
|
2019-09-19 01:07:05 -04:00
|
|
|
tiles = {
|
|
|
|
{ name = "basic_signs_sign_wall_glass.png", backface_culling = true},
|
|
|
|
"basic_signs_sign_wall_glass_edges.png",
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
"basic_signs_pole_mount_glass.png",
|
|
|
|
nil,
|
|
|
|
"default_steel_block.png" -- the sticks on back of the yard sign model
|
2019-09-19 01:07:05 -04:00
|
|
|
},
|
|
|
|
inventory_image = "basic_signs_sign_wall_glass_inv.png",
|
|
|
|
default_color = "c",
|
|
|
|
entity_info = "standard",
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
|
|
|
allow_hanging = true,
|
|
|
|
allow_widefont = true,
|
2019-09-21 22:07:55 -04:00
|
|
|
allow_onpole = true,
|
|
|
|
allow_onpole_horizontal = true,
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
allow_yard = true,
|
2021-03-01 20:49:32 -05:00
|
|
|
use_texture_alpha = "blend",
|
2019-09-19 01:07:05 -04:00
|
|
|
})
|
|
|
|
|
|
|
|
signs_lib.register_sign("basic_signs:sign_wall_obsidian_glass", {
|
|
|
|
description = S("Obsidian Glass Sign"),
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
yard_mesh = "signs_lib_standard_sign_yard_two_sticks.obj",
|
2019-09-19 01:07:05 -04:00
|
|
|
tiles = {
|
|
|
|
{ name = "basic_signs_sign_wall_obsidian_glass.png", backface_culling = true},
|
|
|
|
"basic_signs_sign_wall_obsidian_glass_edges.png",
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
"basic_signs_pole_mount_obsidian_glass.png",
|
|
|
|
nil,
|
|
|
|
"default_steel_block.png" -- the sticks on back of the yard sign model
|
2019-09-19 01:07:05 -04:00
|
|
|
},
|
|
|
|
inventory_image = "basic_signs_sign_wall_obsidian_glass_inv.png",
|
|
|
|
default_color = "c",
|
|
|
|
entity_info = "standard",
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
groups = {cracky = 3},
|
|
|
|
allow_hanging = true,
|
|
|
|
allow_widefont = true,
|
2019-09-21 22:07:55 -04:00
|
|
|
allow_onpole = true,
|
|
|
|
allow_onpole_horizontal = true,
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
allow_yard = true,
|
2021-03-01 20:49:32 -05:00
|
|
|
use_texture_alpha = "blend",
|
2019-09-19 01:07:05 -04:00
|
|
|
})
|
|
|
|
|
2019-09-14 22:49:07 -04:00
|
|
|
minetest.register_alias("locked_sign:sign_wall_locked", "basic_signs:sign_wall_locked")
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
signs_lib.register_sign("basic_signs:sign_wall_plastic", {
|
|
|
|
description = S("Plastic Sign"),
|
|
|
|
yard_mesh = "signs_lib_standard_sign_yard_two_sticks.obj",
|
|
|
|
tiles = {
|
|
|
|
"basic_signs_sign_wall_plastic.png",
|
|
|
|
"basic_signs_sign_wall_plastic_edges.png",
|
|
|
|
"basic_signs_pole_mount_plastic.png",
|
|
|
|
nil,
|
|
|
|
"default_steel_block.png" -- the sticks on back of the yard sign model
|
|
|
|
},
|
|
|
|
inventory_image = "basic_signs_sign_wall_plastic_inv.png",
|
|
|
|
default_color = "0",
|
|
|
|
entity_info = "standard",
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
groups = {snappy = 3, flammable = 2},
|
|
|
|
allow_hanging = true,
|
|
|
|
allow_widefont = true,
|
|
|
|
allow_onpole = true,
|
|
|
|
allow_onpole_horizontal = true,
|
|
|
|
allow_yard = true,
|
2021-03-01 20:49:32 -05:00
|
|
|
use_texture_alpha = "clip",
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
})
|
2019-09-15 03:20:50 -04:00
|
|
|
|
2019-09-14 22:49:07 -04:00
|
|
|
-- array : color, translated color, default text color
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
|
2019-09-14 22:49:07 -04:00
|
|
|
local sign_colors = {
|
|
|
|
{"green", S("green"), "f"},
|
|
|
|
{"yellow", S("yellow"), "0"},
|
|
|
|
{"red", S("red"), "f"},
|
|
|
|
{"white_red", S("white_red"), "4"},
|
|
|
|
{"white_black", S("white_black"), "0"},
|
|
|
|
{"orange", S("orange"), "0"},
|
|
|
|
{"blue", S("blue"), "f"},
|
|
|
|
{"brown", S("brown"), "f"},
|
|
|
|
}
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
|
2019-09-14 22:49:07 -04:00
|
|
|
local cbox = signs_lib.make_selection_boxes(35, 25, true, 0, 0, 0, true)
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
|
2019-09-14 22:49:07 -04:00
|
|
|
for i, color in ipairs(sign_colors) do
|
|
|
|
signs_lib.register_sign("basic_signs:sign_wall_steel_"..color[1], {
|
|
|
|
description = S("Sign (@1, steel)", color[2]),
|
|
|
|
paramtype2 = "facedir",
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
selection_box = cbox,
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
mesh = "signs_lib_standard_facedir_sign_wall.obj",
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
tiles = {
|
2019-09-14 22:49:07 -04:00
|
|
|
"basic_signs_steel_"..color[1]..".png",
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
"signs_lib_sign_wall_steel_edges.png",
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
nil,
|
|
|
|
nil,
|
|
|
|
"default_steel_block.png"
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
},
|
2019-09-14 22:49:07 -04:00
|
|
|
inventory_image = "basic_signs_steel_"..color[1].."_inv.png",
|
|
|
|
groups = signs_lib.standard_steel_groups,
|
|
|
|
sounds = signs_lib.standard_steel_sign_sounds,
|
|
|
|
default_color = color[3],
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
entity_info = {
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
mesh = "signs_lib_standard_sign_entity_wall.obj",
|
2019-09-14 22:49:07 -04:00
|
|
|
yaw = signs_lib.standard_yaw
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
},
|
2019-09-15 16:19:27 -04:00
|
|
|
allow_hanging = true,
|
2019-09-21 22:07:55 -04:00
|
|
|
allow_widefont = true,
|
|
|
|
allow_onpole = true,
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
allow_onpole_horizontal = true,
|
|
|
|
allow_yard = true,
|
2021-03-01 20:49:32 -05:00
|
|
|
use_texture_alpha = "clip",
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
})
|
|
|
|
|
2019-10-12 11:24:49 -04:00
|
|
|
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_onpole", "basic_signs:sign_steel_"..color[1].."_onpole")
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_onpole_horiz", "basic_signs:sign_steel_"..color[1].."_onpole_horiz")
|
2019-10-12 11:24:49 -04:00
|
|
|
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_hanging", "basic_signs:sign_steel_"..color[1].."_hanging")
|
|
|
|
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_yard", "basic_signs:sign_steel_"..color[1].."_yard")
|
update areas, basic_signs, street_signs, farming_redo, maptools,
mesecons, moreblocks, moretrees, pipeworks, signs_lib, worldedit
2019-10-03 14:25:32 -04:00
|
|
|
|
2019-09-14 22:49:07 -04:00
|
|
|
table.insert(signs_lib.lbm_restore_nodes, "signs:sign_wall_"..color[1])
|
2019-10-12 11:24:49 -04:00
|
|
|
minetest.register_alias("signs:sign_wall_"..color[1], "basic_signs:sign_wall_steel_"..color[1])
|
|
|
|
|
|
|
|
minetest.register_alias("signs:sign_"..color[1].."_onpole", "basic_signs:sign_steel_"..color[1].."_onpole")
|
|
|
|
minetest.register_alias("signs:sign_"..color[1].."_onpole_horiz", "basic_signs:sign_steel_"..color[1].."_onpole_horiz")
|
|
|
|
minetest.register_alias("signs:sign_"..color[1].."_hanging", "basic_signs:sign_steel_"..color[1].."_hanging")
|
|
|
|
minetest.register_alias("signs:sign_"..color[1].."_yard", "basic_signs:sign_steel_"..color[1].."_yard")
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
end
|