diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-12 19:56:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 19:56:29 -0500 |
commit | 0cb286b42539167e5c7130656bbb359bf027d89b (patch) | |
tree | 8dd3484af1672233a1eb00b72c8a483ec33ab7fc /mesecons_hydroturbine/init.lua | |
parent | fa3bd1927042ca5ded14623226f447bcb907b953 (diff) | |
parent | 46cbc76988ec62593f0ca04a6a32cbeaa0f57a8b (diff) | |
download | mesecons-0cb286b42539167e5c7130656bbb359bf027d89b.tar mesecons-0cb286b42539167e5c7130656bbb359bf027d89b.tar.gz mesecons-0cb286b42539167e5c7130656bbb359bf027d89b.tar.bz2 mesecons-0cb286b42539167e5c7130656bbb359bf027d89b.tar.xz mesecons-0cb286b42539167e5c7130656bbb359bf027d89b.zip |
Merge pull request #321 from Jeija/animated_turbine
Make "on" water turbine animated!
Diffstat (limited to 'mesecons_hydroturbine/init.lua')
-rw-r--r-- | mesecons_hydroturbine/init.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua index 6286293..409da75 100644 --- a/mesecons_hydroturbine/init.lua +++ b/mesecons_hydroturbine/init.lua @@ -5,12 +5,12 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", { drawtype = "mesh", - mesh = "jeija_hydro_turbine.obj", + mesh = "jeija_hydro_turbine_off.obj", tiles = { "jeija_hydro_turbine_sides_off.png", "jeija_hydro_turbine_top_bottom.png", - "jeija_hydro_turbine_turbine_top_bottom.png", - "jeija_hydro_turbine_turbine_misc.png" + "jeija_hydro_turbine_turbine_top_bottom_off.png", + "jeija_hydro_turbine_turbine_misc_off.png" }, inventory_image = "jeija_hydro_turbine_inv.png", wield_scale = {x=0.75, y=0.75, z=0.75}, @@ -29,13 +29,15 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", { minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", { drawtype = "mesh", - mesh = "jeija_hydro_turbine.obj", + mesh = "jeija_hydro_turbine_on.obj", wield_scale = {x=0.75, y=0.75, z=0.75}, tiles = { "jeija_hydro_turbine_sides_on.png", "jeija_hydro_turbine_top_bottom.png", - "jeija_hydro_turbine_turbine_top_bottom.png", - "jeija_hydro_turbine_turbine_misc.png" + { name = "jeija_hydro_turbine_turbine_top_bottom_on.png", + animation = {type = "vertical_frames", aspect_w = 128, aspect_h = 16, length = 1.6} }, + { name = "jeija_hydro_turbine_turbine_misc_on.png", + animation = {type = "vertical_frames", aspect_w = 256, aspect_h = 32, length = 0.4} } }, inventory_image = "jeija_hydro_turbine_inv.png", drop = "mesecons_hydroturbine:hydro_turbine_off 1", |