summaryrefslogtreecommitdiff
path: root/mesecons_hydroturbine/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-11-23 18:05:01 -0500
committerJeija <norrepli@gmail.com>2015-02-05 15:40:08 +0100
commit775d2501125cfcb489f615b8ec2cd855ca68e4ce (patch)
tree21feafbdef73e214a1b3685ec7c066ba1ce253f7 /mesecons_hydroturbine/init.lua
parent11cf727bfbe71874a5f5c77aa83ae4145754f98c (diff)
downloadmesecons-775d2501125cfcb489f615b8ec2cd855ca68e4ce.tar
mesecons-775d2501125cfcb489f615b8ec2cd855ca68e4ce.tar.gz
mesecons-775d2501125cfcb489f615b8ec2cd855ca68e4ce.tar.bz2
mesecons-775d2501125cfcb489f615b8ec2cd855ca68e4ce.tar.xz
mesecons-775d2501125cfcb489f615b8ec2cd855ca68e4ce.zip
Add meshes for water turbine and and wall lever instead of nodeboxes
Adjust textures and inventory images to it
Diffstat (limited to 'mesecons_hydroturbine/init.lua')
-rw-r--r--mesecons_hydroturbine/init.lua34
1 files changed, 10 insertions, 24 deletions
diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua
index 36bd498..2eb1a64 100644
--- a/mesecons_hydroturbine/init.lua
+++ b/mesecons_hydroturbine/init.lua
@@ -4,24 +4,17 @@
-- (does not work with other liquids)
minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
- drawtype = "nodebox",
+ drawtype = "mesh",
+ mesh = "jeija_hydro_turbine.obj",
tiles = {"jeija_hydro_turbine_off.png"},
+ inventory_image = "jeija_hydro_turbine_inv.png",
+ wield_scale = {x=0.75, y=0.75, z=0.75},
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}},
+ fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 },
},
sounds = default.node_sound_stone_defaults(),
mesecons = {receptor = {
@@ -30,25 +23,18 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
})
minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
- drawtype = "nodebox",
+ drawtype = "mesh",
+ mesh = "jeija_hydro_turbine.obj",
+ wield_scale = {x=0.75, y=0.75, z=0.75},
tiles = {"jeija_hydro_turbine_on.png"},
+ inventory_image = "jeija_hydro_turbine_inv.png",
drop = "mesecons_hydroturbine:hydro_turbine_off 1",
groups = {dig_immediate=2,not_in_creative_inventory=1},
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}},
+ fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 },
},
sounds = default.node_sound_stone_defaults(),
mesecons = {receptor = {