diff options
Diffstat (limited to 'mesecons_extrawires')
-rw-r--r-- | mesecons_extrawires/corner.lua | 6 | ||||
-rw-r--r-- | mesecons_extrawires/crossover.lua | 4 | ||||
-rw-r--r-- | mesecons_extrawires/depends.txt | 1 | ||||
-rw-r--r-- | mesecons_extrawires/tjunction.lua | 6 | ||||
-rw-r--r-- | mesecons_extrawires/vertical.lua | 3 |
5 files changed, 20 insertions, 0 deletions
diff --git a/mesecons_extrawires/corner.lua b/mesecons_extrawires/corner.lua index 4b90260..8dc9866 100644 --- a/mesecons_extrawires/corner.lua +++ b/mesecons_extrawires/corner.lua @@ -1,3 +1,5 @@ +local screwdriver_exists = minetest.global_exists("screwdriver") + local corner_nodebox = { type = "fixed", fixed = {{ -16/32-0.001, -17/32, -3/32, 0, -13/32, 3/32 }, @@ -33,6 +35,7 @@ minetest.register_node("mesecons_extrawires:corner_on", { }, paramtype = "light", paramtype2 = "facedir", + is_ground_content = false, walkable = false, sunlight_propagates = true, selection_box = corner_selectionbox, @@ -46,6 +49,7 @@ minetest.register_node("mesecons_extrawires:corner_on", { offstate = "mesecons_extrawires:corner_off" }}, on_blast = mesecon.on_blastnode, + on_rotate = screwdriver_exists and screwdriver.rotate_simple, }) minetest.register_node("mesecons_extrawires:corner_off", { @@ -61,6 +65,7 @@ minetest.register_node("mesecons_extrawires:corner_off", { }, paramtype = "light", paramtype2 = "facedir", + is_ground_content = false, walkable = false, sunlight_propagates = true, selection_box = corner_selectionbox, @@ -73,6 +78,7 @@ minetest.register_node("mesecons_extrawires:corner_off", { onstate = "mesecons_extrawires:corner_on" }}, on_blast = mesecon.on_blastnode, + on_rotate = screwdriver_exists and screwdriver.rotate_simple, }) minetest.register_craft({ diff --git a/mesecons_extrawires/crossover.lua b/mesecons_extrawires/crossover.lua index 95aeeaa..4aefbbc 100644 --- a/mesecons_extrawires/crossover.lua +++ b/mesecons_extrawires/crossover.lua @@ -29,6 +29,7 @@ minetest.register_node("mesecons_extrawires:crossover_off", { "jeija_insulated_wire_ends_off.png" }, paramtype = "light", + is_ground_content = false, walkable = false, stack_max = 99, selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, @@ -54,6 +55,7 @@ minetest.register_node("mesecons_extrawires:crossover_01", { "jeija_insulated_wire_ends_off.png" }, paramtype = "light", + is_ground_content = false, walkable = false, stack_max = 99, selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, @@ -79,6 +81,7 @@ minetest.register_node("mesecons_extrawires:crossover_10", { "jeija_insulated_wire_ends_on.png" }, paramtype = "light", + is_ground_content = false, walkable = false, stack_max = 99, selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, @@ -104,6 +107,7 @@ minetest.register_node("mesecons_extrawires:crossover_on", { "jeija_insulated_wire_ends_on.png" }, paramtype = "light", + is_ground_content = false, walkable = false, stack_max = 99, selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, diff --git a/mesecons_extrawires/depends.txt b/mesecons_extrawires/depends.txt index aca967d..369aeb7 100644 --- a/mesecons_extrawires/depends.txt +++ b/mesecons_extrawires/depends.txt @@ -1,2 +1,3 @@ default mesecons +screwdriver? diff --git a/mesecons_extrawires/tjunction.lua b/mesecons_extrawires/tjunction.lua index 1bfc48a..53a69f6 100644 --- a/mesecons_extrawires/tjunction.lua +++ b/mesecons_extrawires/tjunction.lua @@ -1,3 +1,5 @@ +local screwdriver_exists = minetest.global_exists("screwdriver") + local tjunction_nodebox = { type = "fixed", fixed = {{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 }, @@ -34,6 +36,7 @@ minetest.register_node("mesecons_extrawires:tjunction_on", { }, paramtype = "light", paramtype2 = "facedir", + is_ground_content = false, walkable = false, sunlight_propagates = true, selection_box = tjunction_selectionbox, @@ -47,6 +50,7 @@ minetest.register_node("mesecons_extrawires:tjunction_on", { offstate = "mesecons_extrawires:tjunction_off" }}, on_blast = mesecon.on_blastnode, + on_rotate = screwdriver_exists and screwdriver.rotate_simple, }) minetest.register_node("mesecons_extrawires:tjunction_off", { @@ -62,6 +66,7 @@ minetest.register_node("mesecons_extrawires:tjunction_off", { }, paramtype = "light", paramtype2 = "facedir", + is_ground_content = false, walkable = false, sunlight_propagates = true, selection_box = tjunction_selectionbox, @@ -74,6 +79,7 @@ minetest.register_node("mesecons_extrawires:tjunction_off", { onstate = "mesecons_extrawires:tjunction_on" }}, on_blast = mesecon.on_blastnode, + on_rotate = screwdriver_exists and screwdriver.rotate_simple, }) minetest.register_craft({ diff --git a/mesecons_extrawires/vertical.lua b/mesecons_extrawires/vertical.lua index 9fabee0..1cff013 100644 --- a/mesecons_extrawires/vertical.lua +++ b/mesecons_extrawires/vertical.lua @@ -81,6 +81,7 @@ mesecon.register_node("mesecons_extrawires:vertical", { drawtype = "nodebox", walkable = false, paramtype = "light", + is_ground_content = false, sunlight_propagates = true, selection_box = vertical_box, node_box = vertical_box, @@ -112,6 +113,7 @@ mesecon.register_node("mesecons_extrawires:vertical_top", { drawtype = "nodebox", walkable = false, paramtype = "light", + is_ground_content = false, sunlight_propagates = true, groups = {dig_immediate=3, not_in_creative_inventory=1}, selection_box = top_box, @@ -142,6 +144,7 @@ mesecon.register_node("mesecons_extrawires:vertical_bottom", { drawtype = "nodebox", walkable = false, paramtype = "light", + is_ground_content = false, sunlight_propagates = true, groups = {dig_immediate = 3, not_in_creative_inventory = 1}, selection_box = bottom_box, |