summaryrefslogtreecommitdiff
path: root/compat.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-02 19:29:35 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-02 19:29:35 -0500
commita15b69802e0a9ec08e5815222c7722897daeee8d (patch)
tree23e701f8ced242b62fc97eb94d324a063cb2cb18 /compat.lua
parent3dfe7702721c6491217312786e1200fb33f7e605 (diff)
downloadpipeworks-a15b69802e0a9ec08e5815222c7722897daeee8d.tar
pipeworks-a15b69802e0a9ec08e5815222c7722897daeee8d.tar.gz
pipeworks-a15b69802e0a9ec08e5815222c7722897daeee8d.tar.bz2
pipeworks-a15b69802e0a9ec08e5815222c7722897daeee8d.tar.xz
pipeworks-a15b69802e0a9ec08e5815222c7722897daeee8d.zip
make the tube connection images for furnaces/chests into overlays
also don't redefine furnace top - tubes don't connect there anyways
Diffstat (limited to 'compat.lua')
-rw-r--r--compat.lua46
1 files changed, 22 insertions, 24 deletions
diff --git a/compat.lua b/compat.lua
index 05558f8..074484e 100644
--- a/compat.lua
+++ b/compat.lua
@@ -11,12 +11,11 @@ function pipeworks:clone_node(name)
end
furnace=pipeworks:clone_node("default:furnace")
- furnace.tiles[1] = "pipeworks_furnace_top.png"
- furnace.tiles[2] = "pipeworks_furnace_bottom.png"
- furnace.tiles[3] = "pipeworks_furnace_side.png"
- furnace.tiles[4] = "pipeworks_furnace_side.png"
- furnace.tiles[5] = "pipeworks_furnace_side.png"
- -- note we don't redefine entry #6 - the front.
+ furnace.tiles[2] = "default_furnace_bottom.png^pipeworks_tube_connection_stony.png"
+ furnace.tiles[3] = "default_furnace_side.png^pipeworks_tube_connection_stony.png"
+ furnace.tiles[4] = "default_furnace_side.png^pipeworks_tube_connection_stony.png"
+ furnace.tiles[5] = "default_furnace_side.png^pipeworks_tube_connection_stony.png"
+ -- note we don't redefine entries 1 and 6 (top and front)
furnace.groups.tubedevice=1
furnace.groups.tubedevice_receiver=1
furnace.tube={insert_object = function(pos,node,stack,direction)
@@ -51,12 +50,11 @@ furnace=pipeworks:clone_node("default:furnace")
minetest.register_node(":default:furnace",furnace)
furnace=pipeworks:clone_node("default:furnace_active")
- furnace.tiles[1] = "pipeworks_furnace_top.png"
- furnace.tiles[2] = "pipeworks_furnace_bottom.png"
- furnace.tiles[3] = "pipeworks_furnace_side.png"
- furnace.tiles[4] = "pipeworks_furnace_side.png"
- furnace.tiles[5] = "pipeworks_furnace_side.png"
- -- note we don't redefine entry #6 - the front.
+ furnace.tiles[2] = "default_furnace_bottom.png^pipeworks_tube_connection_stony.png"
+ furnace.tiles[3] = "default_furnace_side.png^pipeworks_tube_connection_stony.png"
+ furnace.tiles[4] = "default_furnace_side.png^pipeworks_tube_connection_stony.png"
+ furnace.tiles[5] = "default_furnace_side.png^pipeworks_tube_connection_stony.png"
+ -- note we don't redefine entries 1 and 6 (top and front)
furnace.groups.tubedevice=1
furnace.groups.tubedevice_receiver=1
furnace.tube={insert_object=function(pos,node,stack,direction)
@@ -91,12 +89,12 @@ furnace=pipeworks:clone_node("default:furnace_active")
chest=pipeworks:clone_node("default:chest")
- chest.tiles[1] = "pipeworks_chest_tb.png"
- chest.tiles[2] = "pipeworks_chest_tb.png"
- chest.tiles[3] = "pipeworks_chest_side.png"
- chest.tiles[4] = "pipeworks_chest_side.png"
- chest.tiles[5] = "pipeworks_chest_side.png"
- -- note we don't redefine entry #6 - the front.
+ chest.tiles[1] = "default_chest_top.png^pipeworks_tube_connection_wooden.png"
+ chest.tiles[2] = "default_chest_top.png^pipeworks_tube_connection_wooden.png"
+ chest.tiles[3] = "default_chest_side.png^pipeworks_tube_connection_wooden.png"
+ chest.tiles[4] = "default_chest_side.png^pipeworks_tube_connection_wooden.png"
+ chest.tiles[5] = "default_chest_side.png^pipeworks_tube_connection_wooden.png"
+ -- note we don't redefine entry 6 (front).
chest.groups.tubedevice=1
chest.groups.tubedevice_receiver=1
chest.tube={insert_object = function(pos,node,stack,direction)
@@ -122,12 +120,12 @@ minetest.register_node(":default:chest",chest)
chest_locked=pipeworks:clone_node("default:chest_locked")
- chest_locked.tiles[1] = "pipeworks_chest_tb.png"
- chest_locked.tiles[2] = "pipeworks_chest_tb.png"
- chest_locked.tiles[3] = "pipeworks_chest_side.png"
- chest_locked.tiles[4] = "pipeworks_chest_side.png"
- chest_locked.tiles[5] = "pipeworks_chest_side.png"
- -- note we don't redefine entry #6 - the front.
+ chest_locked.tiles[1] = "default_chest_top.png^pipeworks_tube_connection_wooden.png"
+ chest_locked.tiles[2] = "default_chest_top.png^pipeworks_tube_connection_wooden.png"
+ chest_locked.tiles[3] = "default_chest_side.png^pipeworks_tube_connection_wooden.png"
+ chest_locked.tiles[4] = "default_chest_side.png^pipeworks_tube_connection_wooden.png"
+ chest_locked.tiles[5] = "default_chest_side.png^pipeworks_tube_connection_wooden.png"
+ -- note we don't redefine entry 6 (front).
chest_locked.groups.tubedevice=1
chest_locked.groups.tubedevice_receiver=1
chest_locked.tube={insert_object = function(pos,node,stack,direction)