summaryrefslogtreecommitdiff
path: root/devices.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-01-16 04:38:17 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-01-16 04:38:17 -0500
commitdad386b56499eb7a2183062bb09d51b039f8ba99 (patch)
tree4ff0e7287ebcaefeee4b1919396ff7ae185e9cb3 /devices.lua
parent50359104c7e1a304360a5c9e7e53a416954fcea7 (diff)
downloadpipeworks-dad386b56499eb7a2183062bb09d51b039f8ba99.tar
pipeworks-dad386b56499eb7a2183062bb09d51b039f8ba99.tar.gz
pipeworks-dad386b56499eb7a2183062bb09d51b039f8ba99.tar.bz2
pipeworks-dad386b56499eb7a2183062bb09d51b039f8ba99.tar.xz
pipeworks-dad386b56499eb7a2183062bb09d51b039f8ba99.zip
use animated water for pouring spigot
also remove a couple of extranous .mtl files and a redundant spigot texture
Diffstat (limited to 'devices.lua')
-rw-r--r--devices.lua15
1 files changed, 13 insertions, 2 deletions
diff --git a/devices.lua b/devices.lua
index 045b2e9..89806d9 100644
--- a/devices.lua
+++ b/devices.lua
@@ -191,7 +191,7 @@ minetest.register_node("pipeworks:spigot", {
description = "Spigot outlet",
drawtype = "mesh",
mesh = "pipeworks_spigot.obj",
- tiles = { "pipeworks_spigot_off.png" },
+ tiles = { "pipeworks_spigot.png" },
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
@@ -218,7 +218,18 @@ minetest.register_node("pipeworks:spigot_pouring", {
description = "Spigot outlet",
drawtype = "mesh",
mesh = "pipeworks_spigot_pouring.obj",
- tiles = { "pipeworks_spigot_pouring.png" },
+ tiles = {
+ {
+ name = "default_water_flowing_animated.png",
+ animation = {
+ type = "vertical_frames",
+ aspect_w = 16,
+ aspect_h = 16,
+ length = 0.8,
+ },
+ },
+ { name = "pipeworks_spigot.png" }
+ },
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",