]> git.lizzy.rs Git - Crafter.git/commitdiff
Remove redstone wire, redundant by the use of ironblocks
authoroilboi <47129783+oilboi@users.noreply.github.com>
Tue, 30 Jun 2020 03:31:57 +0000 (23:31 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Tue, 30 Jun 2020 03:31:57 +0000 (23:31 -0400)
mods/redstone/init.lua
mods/redstone/wire.lua [deleted file]

index 277f8be2ce945fa24880c60a7a051cb7a44bf03e..78afbb40fe38794f759e735ddead4ad49e9e16bf 100644 (file)
@@ -54,7 +54,6 @@ end
 
 local path = minetest.get_modpath("redstone")
 dofile(path.."/functions.lua")
---dofile(path.."/wire.lua")
 dofile(path.."/torch.lua")
 dofile(path.."/lever.lua")
 dofile(path.."/button.lua")
diff --git a/mods/redstone/wire.lua b/mods/redstone/wire.lua
deleted file mode 100644 (file)
index e974b73..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
---8 power levels 8 being the highest
-local color = 0
-for i = 0,8 do
-       local coloring = math.floor(color)
-
-       minetest.register_node("redstone:wire_"..i,{
-               description = "Redstone Wire",
-               --wield_image = "redstone_wire.png^[colorize:red:"..coloring,
-               paramtype = "light",
-               drawtype = "nodebox",
-               power = i,
-               --paramtype2 = "wallmounted",
-               walkable = false,
-               node_box = {
-                       type = "connected",
-                       --{xmin, ymin, zmin, xmax, ymax, zmax}
-
-                       fixed = {-1/16, -1/2, -1/16, 1/16, -7/16, 1/16},
-                       
-                       disconnected_sides  = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16},
-
-                       connect_top = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16},
-                       -- connect_bottom =
-                       connect_front = {-1/16, -1/2, -1/2, 1/16, -7/16, 1/16},
-                       connect_left =  {-1/2, -1/2, -1/16, 1/16, -7/16, 1/16},
-                       connect_back =  {-1/16, -1/2, -1/16, 1/16, -7/16, 1/2},
-                       connect_right = {-1/16, -1/2, -1/16, 1/2, -7/16, 1/16},
-               },
-               collision_box = {
-                       type = "connected",
-                       --{xmin, ymin, zmin, xmax, ymax, zmax}
-
-                       fixed = {-1/16, -1/2, -1/16, 1/16, -7/16, 1/16},
-                       -- connect_top =
-                       -- connect_bottom =
-                       connect_front = {-1/16, -1/2, -1/2, 1/16, -7/16, 1/16},
-                       connect_left =  {-1/2, -1/2, -1/16, 1/16, -7/16, 1/16},
-                       connect_back =  {-1/16, -1/2, -1/16, 1/16, -7/16, 1/2},
-                       connect_right = {-1/16, -1/2, -1/16, 1/2, -7/16, 1/16},
-               },
-               connects_to = {"group:redstone"},
-               inventory_image = "dirt.png",
-               wield_image = "dirt.png",
-               tiles = {"redstone_wire.png^[colorize:red:"..coloring},
-               sunlight_propagates = true,
-               is_ground_content = false,
-               groups = {redstone =1, instant=1,redstone=1,redstone_wire=1},
-               on_place = function(itemstack, placer, pointed_thing)
-                       minetest.item_place_node(itemstack, placer, pointed_thing)
-                       redstone.update(pointed_thing.above)
-               end,
-               on_dig = function(pos, node, digger)
-                       minetest.node_dig(pos, node, digger)
-                       redstone.update(pos,node)
-               end,
-       })
-       color= color +31.875
-end