diff --git a/init.lua b/init.lua index c7f36f8..33a8e11 100644 --- a/init.lua +++ b/init.lua @@ -68,22 +68,22 @@ minetest.register_node("arrow_signs:wall", { node_box = { type = "fixed", fixed = { - {0.25, -0.5, 0.25, -0.5, -0.47, -0.25}, - {0.3125, -0.5, 0.1875, 0.25, -0.47, -0.1875}, - {0.3125, -0.5, 0.125, 0.375, -0.47, -0.125}, - {0.375, -0.5, 0.0625, 0.437, -0.47, -0.0625} + { 0.25, -0.25, 0.5, -0.25, 0.5, 0.47}, + { 0.1875, -0.3125, 0.5, -0.1875, -0.25, 0.47}, + { 0.125, -0.3125, 0.5, -0.125, -0.375, 0.47}, + { 0.0625, -0.375, 0.5, -0.0625, -0.437, 0.47} } }, selection_box = { type = "fixed", fixed = { - {0.25, -0.5, 0.25, -0.5, -0.47, -0.25}, - {0.3125, -0.5, 0.1875, 0.25, -0.47, -0.1875}, - {0.3125, -0.5, 0.125, 0.375, -0.47, -0.125}, - {0.375, -0.5, 0.0625, 0.437, -0.47, -0.0625} + { 0.25, -0.25, 0.5, -0.25, 0.5, 0.47}, + { 0.1875, -0.3125, 0.5, -0.1875, -0.25, 0.47}, + { 0.125, -0.3125, 0.5, -0.125, -0.375, 0.47}, + { 0.0625, -0.375, 0.5, -0.0625, -0.437, 0.47} } }, - tiles = {"arrow_sign.png", "arrow_sign.png", "arrow_sign_border_right.png", "arrow_sign_border_left.png", "arrow_sign_border_up.png", "arrow_sign_border_down.png" }, + tiles = {"arrow_sign_border_left.png","arrow_sign_border_right.png","arrow_sign_border_up.png","arrow_sign_border_down.png","arrow_sign.png","arrow_sign.png"}, inventory_image = "arrow_sign.png", paramtype = "light", paramtype2 = "facedir", @@ -136,12 +136,12 @@ minetest.register_abm({ chance = 1, action = function(pos, node) local convert_facedir={ - ["arrow_signs:wall_right"]={17,15,8,6}, - ["arrow_signs:wall_left"]={19,13,10,4}, - ["arrow_signs:wall_up"]={16,14,11,5}, - ["arrow_signs:wall_down"]={18,12,9,7} + ["arrow_signs:wall_right"]={6,4,5,11,16,14}, + ["arrow_signs:wall_left"]={8,10,9,7,12,18}, + ["arrow_signs:wall_up"]={15,19,23,21,20,22}, + ["arrow_signs:wall_down"]={17,13,1,3,0,2} } - minetest.swap_node(pos, {name="arrow_signs:wall",param2=convert_facedir[node.name][node.param2-1]}) + minetest.swap_node(pos, {name="arrow_signs:wall",param2=convert_facedir[node.name][node.param2+1]}) end, }) diff --git a/shared_locked.lua b/shared_locked.lua index fa2a9d8..567c188 100644 --- a/shared_locked.lua +++ b/shared_locked.lua @@ -5,22 +5,22 @@ minetest.register_node("arrow_signs:shared_locked", { node_box = { type = "fixed", fixed = { - {0.25, -0.5, 0.25, -0.5, -0.47, -0.25}, - {0.3125, -0.5, 0.1875, 0.25, -0.47, -0.1875}, - {0.3125, -0.5, 0.125, 0.375, -0.47, -0.125}, - {0.375, -0.5, 0.0625, 0.437, -0.47, -0.0625} + { 0.25, -0.25, 0.5, -0.25, 0.5, 0.47}, + { 0.1875, -0.3125, 0.5, -0.1875, -0.25, 0.47}, + { 0.125, -0.3125, 0.5, -0.125, -0.375, 0.47}, + { 0.0625, -0.375, 0.5, -0.0625, -0.437, 0.47} } }, selection_box = { type = "fixed", fixed = { - {0.25, -0.5, 0.25, -0.5, -0.47, -0.25}, - {0.3125, -0.5, 0.1875, 0.25, -0.47, -0.1875}, - {0.3125, -0.5, 0.125, 0.375, -0.47, -0.125}, - {0.375, -0.5, 0.0625, 0.437, -0.47, -0.0625} + { 0.25, -0.25, 0.5, -0.25, 0.5, 0.47}, + { 0.1875, -0.3125, 0.5, -0.1875, -0.25, 0.47}, + { 0.125, -0.3125, 0.5, -0.125, -0.375, 0.47}, + { 0.0625, -0.375, 0.5, -0.0625, -0.437, 0.47} } }, - tiles = {"arrow_sign.png", "arrow_sign.png", "arrow_sign_border_right.png", "arrow_sign_border_left.png", "arrow_sign_border_up.png", "arrow_sign_border_down.png" }, + tiles = {"arrow_sign_border_left.png","arrow_sign_border_right.png","arrow_sign_border_up.png","arrow_sign_border_down.png","arrow_sign.png","arrow_sign.png"}, inventory_image = "arrow_sign.png", paramtype = "light", paramtype2 = "wallmounted", @@ -87,10 +87,10 @@ minetest.register_abm({ chance = 1, action = function(pos, node) local convert_facedir={ - ["arrow_signs:shared_locked_right"]={17,15,8,6}, - ["arrow_signs:shared_locked_left"]={19,13,10,4}, - ["arrow_signs:shared_locked_up"]={16,14,11,5}, - ["arrow_signs:shared_locked_down"]={18,12,9,7} + ["arrow_signs:shared_locked_right"]={6,4,5,11,16,14}, + ["arrow_signs:shared_locked_left"]={8,10,9,7,12,18}, + ["arrow_signs:shared_locked_up"]={15,19,23,21,20,22}, + ["arrow_signs:shared_locked_down"]={17,13,1,3,0,2} } minetest.swap_node(pos, {name="arrow_signs:shared_locked",param2=convert_facedir[node.name][node.param2-1]}) end, diff --git a/textures/arrow_sign.png b/textures/arrow_sign.png index 6d2f47f..8d42d10 100644 Binary files a/textures/arrow_sign.png and b/textures/arrow_sign.png differ diff --git a/textures/arrow_sign_border_down.png b/textures/arrow_sign_border_down.png index 5b0c083..1e457a8 100644 Binary files a/textures/arrow_sign_border_down.png and b/textures/arrow_sign_border_down.png differ diff --git a/textures/arrow_sign_border_left.png b/textures/arrow_sign_border_left.png index 9a0ded8..e6568e8 100644 Binary files a/textures/arrow_sign_border_left.png and b/textures/arrow_sign_border_left.png differ diff --git a/textures/arrow_sign_border_right.png b/textures/arrow_sign_border_right.png index fce07bd..87b64d0 100644 Binary files a/textures/arrow_sign_border_right.png and b/textures/arrow_sign_border_right.png differ diff --git a/textures/arrow_sign_border_up.png b/textures/arrow_sign_border_up.png index 45eb190..564efff 100644 Binary files a/textures/arrow_sign_border_up.png and b/textures/arrow_sign_border_up.png differ diff --git a/textures/sign.xcf b/textures/sign.xcf index 0be9ca0..5d88134 100644 Binary files a/textures/sign.xcf and b/textures/sign.xcf differ