summaryrefslogtreecommitdiff
path: root/mesecons_hydroturbine
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-07-20 15:26:13 +0200
committerJeija <norrepli@gmail.com>2012-07-20 15:26:13 +0200
commitd3a4c2cb34e1b0b274df527b88bf5f6feae33f68 (patch)
tree47fff77d2086937d04f776da849b6d1043c4af9c /mesecons_hydroturbine
parent40d5df58558ed46bef10bfa9c71d154990ecfd1a (diff)
downloadmesecons-d3a4c2cb34e1b0b274df527b88bf5f6feae33f68.tar
mesecons-d3a4c2cb34e1b0b274df527b88bf5f6feae33f68.tar.gz
mesecons-d3a4c2cb34e1b0b274df527b88bf5f6feae33f68.tar.bz2
mesecons-d3a4c2cb34e1b0b274df527b88bf5f6feae33f68.tar.xz
mesecons-d3a4c2cb34e1b0b274df527b88bf5f6feae33f68.zip
Change Water Turbine to the new nodebox model
Diffstat (limited to 'mesecons_hydroturbine')
-rw-r--r--mesecons_hydroturbine/init.lua36
1 files changed, 34 insertions, 2 deletions
diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua
index 53362c2..2f49f5c 100644
--- a/mesecons_hydroturbine/init.lua
+++ b/mesecons_hydroturbine/init.lua
@@ -1,16 +1,48 @@
-- HYDRO_TURBINE
minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
- tile_images = {"jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png"},
+ drawtype = "nodebox",
+ tile_images = {"jeija_hydro_turbine_off.png"},
groups = {dig_immediate=2},
description="Water Turbine",
+ paramtype = "light",
+ selection_box = {
+ type = "fixed",
+ fixed = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
+ {-0.15, 0.5, -0.15, 0.15, 1.45, 0.15},
+ {-0.45, 1.15, -0.1, 0.45, 1.45, 0.1},
+ {-0.1, 1.15, -0.45, 0.1, 1.45, 0.45}},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
+ {-0.15, 0.5, -0.15, 0.15, 1.45, 0.15},
+ {-0.45, 1.15, -0.1, 0.45, 1.45, 0.1},
+ {-0.1, 1.15, -0.45, 0.1, 1.45, 0.45}},
+ },
})
minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
- tile_images = {"jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png"},
+ drawtype = "nodebox",
+ tile_images = {"jeija_hydro_turbine_on.png"},
drop = '"mesecons_hydroturbine:hydro_turbine_off" 1',
groups = {dig_immediate=2},
description="Water Turbine",
+ paramtype = "light",
+ selection_box = {
+ type = "fixed",
+ fixed = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
+ {-0.15, 0.5, -0.15, 0.15, 1.45, 0.15},
+ {-0.5, 1.15, -0.1, 0.5, 1.45, 0.1},
+ {-0.1, 1.15, -0.5, 0.1, 1.45, 0.5}},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
+ {-0.15, 0.5, -0.15, 0.15, 1.45, 0.15},
+ {-0.5, 1.15, -0.1, 0.5, 1.45, 0.1},
+ {-0.1, 1.15, -0.5, 0.1, 1.45, 0.5}},
+ },
})