diff --git a/init.lua b/init.lua index 8e01a7b..8ce326d 100644 --- a/init.lua +++ b/init.lua @@ -1065,6 +1065,44 @@ for _, m in ipairs({"", "_onpole"}) do on_rotate = on_rotate, drop = "street_signs:sign_yield_ahead" }) + + minetest.register_node("street_signs:sign_merging_traffic"..m, { + description = "Merging traffic sign", + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "wallmounted", + drawtype = "mesh", + node_box = cbox, + selection_box = cbox, + mesh = "street_signs_warning"..m..".obj", + tiles = { "street_signs_merging_traffic.png" }, + inventory_image = "street_signs_merging_traffic_inv.png", + wield_image = "street_signs_merging_traffic_inv.png", + groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci}, + default_color = "0", + after_place_node = after_place_node, + on_rotate = on_rotate, + drop = "street_signs:sign_merging_traffic" + }) + + minetest.register_node("street_signs:sign_two_way_traffic"..m, { + description = "Two-way traffic sign", + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "wallmounted", + drawtype = "mesh", + node_box = cbox, + selection_box = cbox, + mesh = "street_signs_warning"..m..".obj", + tiles = { "street_signs_two_way_traffic.png" }, + inventory_image = "street_signs_two_way_traffic_inv.png", + wield_image = "street_signs_two_way_traffic_inv.png", + groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci}, + default_color = "0", + after_place_node = after_place_node, + on_rotate = on_rotate, + drop = "street_signs:sign_two_way_traffic" + }) end cbox = { diff --git a/textures/street_signs_merging_traffic.png b/textures/street_signs_merging_traffic.png new file mode 100644 index 0000000..eac865e Binary files /dev/null and b/textures/street_signs_merging_traffic.png differ diff --git a/textures/street_signs_merging_traffic_inv.png b/textures/street_signs_merging_traffic_inv.png new file mode 100644 index 0000000..18fc825 Binary files /dev/null and b/textures/street_signs_merging_traffic_inv.png differ diff --git a/textures/street_signs_two_way_traffic.png b/textures/street_signs_two_way_traffic.png new file mode 100644 index 0000000..2433a46 Binary files /dev/null and b/textures/street_signs_two_way_traffic.png differ diff --git a/textures/street_signs_two_way_traffic_inv.png b/textures/street_signs_two_way_traffic_inv.png new file mode 100644 index 0000000..3d8de3d Binary files /dev/null and b/textures/street_signs_two_way_traffic_inv.png differ