diff options
author | pyrollo <dev@pyrollo.com> | 2016-12-24 21:45:27 +0100 |
---|---|---|
committer | pyrollo <dev@pyrollo.com> | 2016-12-24 21:45:27 +0100 |
commit | 353351029ee06885fba720caeaf289a139fbe950 (patch) | |
tree | c3587b5149bec978e5c4c556cfad75dbddacc793 /signs_road | |
parent | bc9607eb919e6911875768316efd6dbfc8b325f7 (diff) | |
download | display_modpack-353351029ee06885fba720caeaf289a139fbe950.tar.gz display_modpack-353351029ee06885fba720caeaf289a139fbe950.tar.bz2 display_modpack-353351029ee06885fba720caeaf289a139fbe950.zip |
Right direction model fixed, Green direction signs added, unused files removed
Diffstat (limited to 'signs_road')
-rw-r--r-- | signs_road/nodes.lua | 66 | ||||
-rw-r--r-- | signs_road/textures/signs_green_dir_inventory.png | bin | 0 -> 313 bytes | |||
-rw-r--r-- | signs_road/textures/signs_green_direction.png | bin | 0 -> 270 bytes |
3 files changed, 62 insertions, 4 deletions
diff --git a/signs_road/nodes.lua b/signs_road/nodes.lua index 6882f84..5498c6f 100644 --- a/signs_road/nodes.lua +++ b/signs_road/nodes.lua @@ -36,7 +36,7 @@ local models = { }, }, green_street={ - depth=1/32, + depth = 1/32, width = 1, height = 6/16, entity_fields = { @@ -51,7 +51,7 @@ local models = { }, }, black_right={ - depth=1/32, + depth = 1/32, width = 1, height = 0.5, entity_fields = { @@ -68,7 +68,7 @@ local models = { }, }, black_left={ - depth=1/32, + depth = 1/32, width = 1, height = 0.5, entity_fields = { @@ -86,10 +86,68 @@ local models = { on_rightclick=signs.on_right_click_direction, }, }, + green_right={ + depth = 1/16, + width = 14/16, + height = 7/16, + entity_fields = { + size = { x = 12/16, y = 5/16 }, + resolution = { x = 112, y = 64 }, + maxlines = 2, + color="#fff", + }, + node_fields = { + description="Green direction sign", + tiles={"signs_green_direction.png"}, + inventory_image="signs_green_dir_inventory.png", + on_place=signs.on_place_direction, + on_rightclick = signs.on_right_click_direction, + drawtype = "mesh", + mesh = "signs_dir_right.obj", + selection_box = { type="wallmounted", + wall_side = {-0.5, -7/32, -7/16, -7/16, 7/32, 0.5}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, + collision_box = { type="wallmounted", + wall_side = {-0.5, -7/32, -7/16, -7/16, 7/32, 0.5}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, + }, + }, + green_left={ + depth = 1/16, + width = 14/16, + height = 7/16, + entity_fields = { + size = { x = 12/16, y = 5/16 }, + resolution = { x = 112, y = 64 }, + maxlines = 2, + color="#fff", + }, + node_fields = { + description="Green direction sign", + tiles={"signs_green_direction.png"}, + inventory_image="signs_green_dir_inventory.png", + on_place=signs.on_place_direction, + on_rightclick = signs.on_right_click_direction, + drawtype = "mesh", + mesh = "signs_dir_left.obj", + selection_box = { type="wallmounted", + wall_side = {-0.5, -7/32, -0.5, -7/16, 7/32, 7/16}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, + collision_box = { type="wallmounted", + wall_side = {-0.5, -7/32, -0.5, -7/16, 7/32, 7/16}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, + groups={not_in_creative_inventory=1}, + drop="signs_road:green_right", + }, + }, } - for name, model in pairs(models) do signs.register_sign("signs_road", name, model) end + diff --git a/signs_road/textures/signs_green_dir_inventory.png b/signs_road/textures/signs_green_dir_inventory.png Binary files differnew file mode 100644 index 0000000..7d6567c --- /dev/null +++ b/signs_road/textures/signs_green_dir_inventory.png diff --git a/signs_road/textures/signs_green_direction.png b/signs_road/textures/signs_green_direction.png Binary files differnew file mode 100644 index 0000000..6becd79 --- /dev/null +++ b/signs_road/textures/signs_green_direction.png |