summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2019-06-02 13:21:05 -0500
committercheapie <no-email-for-you@example.com>2019-06-02 13:21:05 -0500
commitd773a87c6aafc9e34ed08db77b9ea35ade264140 (patch)
treed5ee2c31eaa1a6037eec2f3ee638e93750f4f71c
parent4547e436f78a7bfdd2e7920990e9f2d252009311 (diff)
downloaddigistuff-d773a87c6aafc9e34ed08db77b9ea35ade264140.tar
digistuff-d773a87c6aafc9e34ed08db77b9ea35ade264140.tar.gz
digistuff-d773a87c6aafc9e34ed08db77b9ea35ade264140.tar.bz2
digistuff-d773a87c6aafc9e34ed08db77b9ea35ade264140.tar.xz
digistuff-d773a87c6aafc9e34ed08db77b9ea35ade264140.zip
Improve some selection boxes
-rw-r--r--conductors.lua39
1 files changed, 35 insertions, 4 deletions
diff --git a/conductors.lua b/conductors.lua
index abea2eb..7c17c64 100644
--- a/conductors.lua
+++ b/conductors.lua
@@ -130,12 +130,19 @@ minetest.register_node("digistuff:receiver", {
node_box = {
type = "fixed",
fixed = {
- {-0.05,-0.05,-1.49,0.05,0.05,-0.5},
- {-0.2,-0.2,-0.5,0.2,0.2,-0.4},
- {-0.0625,-0.5,-0.5,0.0625,-0.2,-0.4},
- {-0.0625,-0.5,-0.4,0.0625,-0.4375,0.5},
+ {-0.05,-0.05,-1.49,0.05,0.05,-0.5},
+ {-0.2,-0.2,-0.5,0.2,0.2,-0.4},
+ {-0.0625,-0.5,-0.5,0.0625,-0.2,-0.4},
+ {-0.0625,-0.5,-0.4,0.0625,-0.4375,0.5},
},
},
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.2,-0.5,-0.5,0.2,0.2,0.5},
+ {-0.075,-0.075,-1.49,0.075,0.075,-0.5},
+ },
+ },
digiline = {
receptor = {},
wire = {
@@ -297,6 +304,12 @@ minetest.register_node("digistuff:insulated_straight", {
{-0.5,-0.5,-0.1,0.5,-0.4,0.1},
},
},
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5,-0.5,-0.15,0.5,-0.35,0.15},
+ },
+ },
after_place_node = digilines.update_autoconnect,
after_destruct = digilines.update_autoconnect,
digiline = {
@@ -338,6 +351,12 @@ minetest.register_node("digistuff:insulated_tjunction", {
{-0.1,-0.5,-0.5,0.1,-0.4,-0.1},
},
},
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5,-0.5,-0.5,0.5,-0.35,0.15},
+ },
+ },
after_place_node = digilines.update_autoconnect,
after_destruct = digilines.update_autoconnect,
digiline = {
@@ -380,6 +399,12 @@ minetest.register_node("digistuff:insulated_corner", {
{-0.5,-0.5,-0.1,0.1,-0.4,0.1},
},
},
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5,-0.5,-0.5,0.15,-0.35,0.15},
+ },
+ },
after_place_node = digilines.update_autoconnect,
after_destruct = digilines.update_autoconnect,
digiline = {
@@ -420,6 +445,12 @@ minetest.register_node("digistuff:insulated_fourway", {
{-0.1,-0.5,0.1,0.1,-0.4,0.5},
},
},
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5,-0.5,-0.5,0.5,-0.35,0.5},
+ },
+ },
after_place_node = digilines.update_autoconnect,
after_destruct = digilines.update_autoconnect,
digiline = {