Added simple wooden sign

This commit is contained in:
Pierre-Yves Rollo 2018-09-20 15:27:42 +02:00
parent a0d596bab9
commit 2793e0ab8f
2 changed files with 19 additions and 5 deletions

@ -98,6 +98,21 @@ display_api.register_display_entity("signs:display_text")
-- Sign models and registration -- Sign models and registration
local models = { local models = {
wooden_sign = {
depth = 1/16,
width = 14/16,
height = 12/16,
entity_fields = {
size = { x = 12/16, y = 10/16 },
maxlines = 3,
color = "#000",
},
node_fields = {
description = S("Wooden sign"),
tiles = { "signs_wooden.png" },
inventory_image = "signs_wooden_inventory.png",
},
},
wooden_right_sign = { wooden_right_sign = {
depth = 1/16, depth = 1/16,
width = 14/16, width = 14/16,
@ -111,7 +126,7 @@ local models = {
node_fields = { node_fields = {
description = S("Wooden direction sign"), description = S("Wooden direction sign"),
tiles = { "signs_wooden_direction.png" }, tiles = { "signs_wooden_direction.png" },
inventory_image = "signs_wooden_inventory.png", inventory_image = "signs_wooden_direction_inventory.png",
signs_other_dir = 'signs:wooden_left_sign', signs_other_dir = 'signs:wooden_left_sign',
on_place = signs_api.on_place_direction, on_place = signs_api.on_place_direction,
drawtype = "mesh", drawtype = "mesh",
@ -133,7 +148,7 @@ local models = {
node_fields = { node_fields = {
description = S("Wooden direction sign"), description = S("Wooden direction sign"),
tiles = { "signs_wooden_direction.png" }, tiles = { "signs_wooden_direction.png" },
inventory_image = "signs_wooden_inventory.png", inventory_image = "signs_wooden_direction_inventory.png",
signs_other_dir = 'signs:wooden_right_sign', signs_other_dir = 'signs:wooden_right_sign',
drawtype = "mesh", drawtype = "mesh",
mesh = "signs_dir_left.obj", mesh = "signs_dir_left.obj",
@ -171,4 +186,3 @@ for name, model in pairs(models)
do do
signs_api.register_sign("signs", name, model) signs_api.register_sign("signs", name, model)
end end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

After

Width:  |  Height:  |  Size: 581 B