Add new lever model by Gerold55

This commit is contained in:
Wuzzy 2017-07-31 05:35:55 +02:00
parent 8e7002d75a
commit 4548f2d19e
14 changed files with 191 additions and 548 deletions

View File

@ -2,30 +2,21 @@
-- Basically a switch that can be attached to a wall
-- Powers the block 2 nodes behind (using a receiver)
minetest.register_node("mesecons_walllever:wall_lever_off", {
drawtype = "nodebox",
drawtype = "mesh",
tiles = {
"jeija_wall_lever_tb.png",
"jeija_wall_lever_bottom.png",
"jeija_wall_lever_sides.png",
"jeija_wall_lever_sides.png",
"jeija_wall_lever_back.png",
"jeija_wall_lever_off.png",
"jeija_wall_lever_lever_light_on.png",
},
inventory_image = "jeija_wall_lever.png",
wield_image = "jeija_wall_lever.png",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "mesh",
mesh = "jeija_wall_lever_off.obj",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 },
{ -1/16, -8/16, 7/16, 1/16, 0/16, 5/16 }},
},
node_box = {
type = "fixed",
fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 }, -- the base
{ -1/16, -8/16, 7/16, 1/16, 0/16, 5/16 }} -- the lever itself.
fixed = { -3/16, -8/16, -4/16, 3/16, -2/16, 4/16 },
},
groups = {handy=1, dig_by_water=1, destroy_by_lava_flow=1, dig_by_piston=1},
is_ground_content = false,
@ -37,7 +28,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
mesecon:receptor_on(pos, mesecon.rules.buttonlike_get(node))
minetest.sound_play("mesecons_lever", {pos=pos})
end,
sounds = mcl_sounds.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
mesecons = {receptor = {
rules = mesecon.rules.buttonlike_get,
state = mesecon.state.off
@ -46,29 +37,19 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
_mcl_hardness = 0.5,
})
minetest.register_node("mesecons_walllever:wall_lever_on", {
drawtype = "nodebox",
drawtype = "mesh",
tiles = {
"jeija_wall_lever_top.png",
"jeija_wall_lever_tb.png",
"jeija_wall_lever_sides.png",
"jeija_wall_lever_sides.png",
"jeija_wall_lever_back.png",
"jeija_wall_lever_on.png",
"jeija_wall_lever_lever_light_on.png",
},
inventory_image = "jeija_wall_lever.png",
paramtype = "light",
paramtype2 = "facedir",
mesh = "jeija_wall_lever_on.obj",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 },
{ -1/16, 0, 7/16, 1/16, 8/16, 5/16 }},
},
node_box = {
type = "fixed",
fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 }, -- the base
{ -1/16, 0/16, 7/16, 1/16, 8/16, 5/16 }} -- the lever itself.
fixed = { -3/16, -8/16, -4/16, 3/16, -2/16, 4/16 },
},
groups = {handy=1, not_in_creative_inventory = 1, dig_by_water=1, destroy_by_lava_flow=1, dig_by_piston=1},
is_ground_content = false,
@ -80,7 +61,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
mesecon:receptor_off(pos, mesecon.rules.buttonlike_get(node))
minetest.sound_play("mesecons_lever", {pos=pos})
end,
sounds = mcl_sounds.node_sound_wood_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(),
mesecons = {receptor = {
rules = mesecon.rules.buttonlike_get,
state = mesecon.state.on

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

View File

@ -0,0 +1,90 @@
# Blender v2.78 (sub 0) OBJ File: ''
# www.blender.org
mtllib jeija_wall_lever_on.mtl
o nodebox1.002
v -0.070437 -0.459607 0.138449
v -0.070383 -0.407163 0.058550
v -0.070618 -0.117856 0.289534
v -0.070672 -0.170301 0.369433
v 0.054549 -0.459593 0.139679
v 0.054604 -0.407150 0.059783
v 0.054369 -0.117843 0.290768
v 0.054313 -0.170287 0.370665
vt 0.0625 0.5625
vt 0.1250 0.5625
vt 0.1250 0.8750
vt 0.0625 0.8750
vt 0.1875 0.5625
vt 0.2500 0.5625
vt 0.2500 0.8750
vt 0.1875 0.8750
vt 0.1250 0.5625
vt 0.1250 0.8750
vt 0.0625 0.8750
vt 0.0625 0.5625
vt 0.2500 0.5625
vt 0.2500 0.8750
vt 0.1875 0.8750
vt 0.1875 0.5625
vt 0.6250 0.8750
vt 0.6250 0.9375
vt 0.5625 0.9375
vt 0.5625 0.8750
vt 0.0000 0.0000
vt 0.0000 0.0000
vt 0.0000 0.0000
vt 0.0000 0.0000
vn 1.0000 0.0002 0.0008
vn 0.0076 0.6239 -0.7814
vn 0.0076 0.6239 -0.7815
vn 0.0055 -0.8360 -0.5487
usemtl none.000
s 1
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/5/1 6/6/1 7/7/1 8/8/1
f 1/9/2 4/10/2 8/11/2 5/12/2
f 2/13/3 3/14/3 7/15/3 6/16/3
f 4/17/4 3/18/4 7/19/4 8/20/4
usemtl none.000_NONE
f 1/21/4 2/22/4 6/23/4 5/24/4
o nodebox1.003
v -0.170183 -0.492185 0.248761
v -0.161792 -0.496079 -0.249657
v -0.161781 -0.373053 -0.250614
v -0.170172 -0.369159 0.247804
v 0.161753 -0.492195 0.245133
v 0.170145 -0.496089 -0.253285
v 0.170155 -0.373063 -0.254242
v 0.161764 -0.369169 0.244176
vt 0.5000 0.2031
vt 0.0000 0.2031
vt 0.0000 0.0000
vt 0.5000 0.0000
vt 0.5000 0.2031
vt 0.0000 0.2031
vt 0.0000 0.0000
vt 0.5000 0.0000
vt 0.0000 0.2031
vt 0.0001 0.0001
vt 0.5000 0.0000
vt 0.5000 0.2031
vt 0.0000 0.2031
vt 0.0000 -0.0000
vt 0.0000 0.5000
vt 0.0000 0.0000
vt 0.5000 -0.0000
vt 0.5000 0.5000
vt -0.0000 0.5000
vt 0.5000 -0.0000
vt 0.5000 0.5000
vn 0.9999 0.0000 0.0168
vn -0.0109 -0.0078 -0.9999
vn 0.0001 -1.0000 0.0078
usemtl none.001
s 1
f 9/25/5 10/26/5 11/27/5 12/28/5
f 13/29/5 14/30/5 15/31/5 16/32/5
f 9/33/6 12/34/6 16/32/6 13/29/6
f 10/35/6 11/36/6 15/37/6 14/38/6
f 9/39/7 10/40/7 14/41/7 13/42/7
f 12/43/7 11/27/7 15/44/7 16/45/7

View File

@ -0,0 +1,90 @@
# Blender v2.78 (sub 0) OBJ File: ''
# www.blender.org
mtllib jeija_wall_lever_off.mtl
o nodebox1.007
v -0.170183 -0.492185 0.248761
v -0.161792 -0.496079 -0.249657
v -0.161781 -0.373053 -0.250614
v -0.170172 -0.369159 0.247804
v 0.161753 -0.492195 0.245133
v 0.170145 -0.496089 -0.253285
v 0.170155 -0.373063 -0.254242
v 0.161764 -0.369169 0.244176
vt 0.5000 0.2031
vt 0.0000 0.2031
vt 0.0000 0.0000
vt 0.5000 0.0000
vt 0.5000 0.2031
vt 0.0000 0.2031
vt 0.0000 0.0000
vt 0.5000 0.0000
vt 0.0000 0.2031
vt 0.0001 0.0001
vt 0.5000 0.0000
vt 0.5000 0.2031
vt 0.0000 0.2031
vt 0.0000 -0.0000
vt 0.0000 0.5000
vt 0.0000 0.0000
vt 0.5000 -0.0000
vt 0.5000 0.5000
vt -0.0000 0.5000
vt 0.5000 -0.0000
vt 0.5000 0.5000
vn 0.9999 0.0000 0.0168
vn -0.0109 -0.0078 -0.9999
vn 0.0001 -1.0000 0.0078
usemtl none.007
s 1
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/5/1 6/6/1 7/7/1 8/8/1
f 1/9/2 4/10/2 8/8/2 5/5/2
f 2/11/2 3/12/2 7/13/2 6/14/2
f 1/15/3 2/16/3 6/17/3 5/18/3
f 4/19/3 3/3/3 7/20/3 8/21/3
o nodebox1.006
v 0.070437 -0.459607 -0.138449
v 0.070383 -0.407163 -0.058550
v 0.070618 -0.117856 -0.289534
v 0.070672 -0.170301 -0.369433
v -0.054549 -0.459593 -0.139679
v -0.054604 -0.407150 -0.059783
v -0.054369 -0.117843 -0.290768
v -0.054313 -0.170287 -0.370665
vt 0.0000 0.0000
vt 0.0000 0.0000
vt 0.0000 0.0000
vt 0.0000 0.0000
vt 0.0625 0.5625
vt 0.1250 0.5625
vt 0.1250 0.8750
vt 0.0625 0.8750
vt 0.1875 0.5625
vt 0.2500 0.5625
vt 0.2500 0.8750
vt 0.1875 0.8750
vt 0.1250 0.5625
vt 0.1250 0.8750
vt 0.0625 0.8750
vt 0.0625 0.5625
vt 0.2500 0.5625
vt 0.2500 0.8750
vt 0.1875 0.8750
vt 0.1875 0.5625
vt 0.6250 0.8750
vt 0.6250 0.9375
vt 0.5625 0.9375
vt 0.5625 0.8750
vn -0.0055 -0.8360 0.5487
vn -1.0000 0.0002 -0.0008
vn -0.0076 0.6239 0.7814
vn -0.0076 0.6239 0.7815
usemtl none.000_NONE.002
s 1
f 9/22/4 10/23/4 14/24/4 13/25/4
usemtl none.006
f 9/26/5 10/27/5 11/28/5 12/29/5
f 13/30/5 14/31/5 15/32/5 16/33/5
f 9/34/6 12/35/6 16/36/6 13/37/6
f 10/38/7 11/39/7 15/40/7 14/41/7
f 12/42/4 11/43/4 15/44/4 16/45/4

View File

@ -1,244 +0,0 @@
xof 0302txt 0064
// File created by CINEMA 4D
template Header {
<3D82AB43-62DA-11cf-AB39-0020AF71E433>
SWORD major;
SWORD minor;
DWORD flags;
}
template Vector {
<3D82AB5E-62DA-11cf-AB39-0020AF71E433>
FLOAT x;
FLOAT y;
FLOAT z;
}
template Coords2d {
<F6F23F44-7686-11cf-8F52-0040333594A3>
FLOAT u;
FLOAT v;
}
template Matrix4x4 {
<F6F23F45-7686-11cf-8F52-0040333594A3>
array FLOAT matrix[16];
}
template ColorRGBA {
<35FF44E0-6C7C-11cf-8F52-0040333594A3>
FLOAT red;
FLOAT green;
FLOAT blue;
FLOAT alpha;
}
template ColorRGB {
<D3E16E81-7835-11cf-8F52-0040333594A3>
FLOAT red;
FLOAT green;
FLOAT blue;
}
template IndexedColor {
<1630B820-7842-11cf-8F52-0040333594A3>
DWORD index;
ColorRGBA indexColor;
}
template Boolean {
<4885AE61-78E8-11cf-8F52-0040333594A3>
SWORD truefalse;
}
template Boolean2d {
<4885AE63-78E8-11cf-8F52-0040333594A3>
Boolean u;
Boolean v;
}
template MaterialWrap {
<4885AE60-78E8-11cf-8F52-0040333594A3>
Boolean u;
Boolean v;
}
template TextureFilename {
<A42790E1-7810-11cf-8F52-0040333594A3>
STRING filename;
}
template Material {
<3D82AB4D-62DA-11cf-AB39-0020AF71E433>
ColorRGBA faceColor;
FLOAT power;
ColorRGB specularColor;
ColorRGB emissiveColor;
[...]
}
template MeshFace {
<3D82AB5F-62DA-11cf-AB39-0020AF71E433>
DWORD nFaceVertexIndices;
array DWORD faceVertexIndices[nFaceVertexIndices];
}
template MeshFaceWraps {
<4885AE62-78E8-11cf-8F52-0040333594A3>
DWORD nFaceWrapValues;
Boolean2d faceWrapValues;
}
template MeshTextureCoords {
<F6F23F40-7686-11cf-8F52-0040333594A3>
DWORD nTextureCoords;
array Coords2d textureCoords[nTextureCoords];
}
template MeshMaterialList {
<F6F23F42-7686-11cf-8F52-0040333594A3>
DWORD nMaterials;
DWORD nFaceIndexes;
array DWORD faceIndexes[nFaceIndexes];
[Material]
}
template MeshNormals {
<F6F23F43-7686-11cf-8F52-0040333594A3>
DWORD nNormals;
array Vector normals[nNormals];
DWORD nFaceNormals;
array MeshFace faceNormals[nFaceNormals];
}
template MeshVertexColors {
<1630B821-7842-11cf-8F52-0040333594A3>
DWORD nVertexColors;
array IndexedColor vertexColors[nVertexColors];
}
template Mesh {
<3D82AB44-62DA-11cf-AB39-0020AF71E433>
DWORD nVertices;
array Vector vertices[nVertices];
DWORD nFaces;
array MeshFace faces[nFaces];
[...]
}
template FrameTransformMatrix {
<F6F23F41-7686-11cf-8F52-0040333594A3>
Matrix4x4 frameMatrix;
}
template Frame {
<3D82AB46-62DA-11cf-AB39-0020AF71E433>
[...]
}
Header {
1;
0;
1;
}
Mesh CINEMA4D_Mesh {
16;
// Lever1
-4.481;-4.311;-6.25;,
-44.655;43.567;-6.25;,
5.095;3.724;-6.25;,
-35.079;51.602;-6.25;,
5.095;3.724;6.25;,
-35.079;51.602;6.25;,
-4.481;-4.311;6.25;,
-44.655;43.567;6.25;,
// Lever_Hold
-25.0;-9.375;-18.75;,
-25.0;9.375;-18.75;,
25.0;-9.375;-18.75;,
25.0;9.375;-18.75;,
25.0;-9.375;18.75;,
25.0;9.375;18.75;,
-25.0;-9.375;18.75;,
-25.0;9.375;18.75;;
12;
// Lever1
4;0,1,3,2;,
4;2,3,5,4;,
4;4,5,7,6;,
4;6,7,1,0;,
4;1,7,5,3;,
4;6,0,2,4;,
// Lever_Hold
4;8,9,11,10;,
4;10,11,13,12;,
4;12,13,15,14;,
4;14,15,9,8;,
4;9,15,13,11;,
4;14,8,10,12;;
MeshNormals {
16;
// Lever1
0.088;-0.161;-0.036;,
-0.144;0.115;-0.036;,
0.144;-0.115;-0.036;,
-0.088;0.161;-0.036;,
0.144;-0.115;0.036;,
-0.088;0.161;0.036;,
0.088;-0.161;0.036;,
-0.144;0.115;0.036;,
// Lever_Hold
-0.144;-0.054;-0.108;,
-0.144;0.054;-0.108;,
0.144;-0.054;-0.108;,
0.144;0.054;-0.108;,
0.144;-0.054;0.108;,
0.144;0.054;0.108;,
-0.144;-0.054;0.108;,
-0.144;0.054;0.108;;
12;
// Lever1
4;0,1,3,2;,
4;2,3,5,4;,
4;4,5,7,6;,
4;6,7,1,0;,
4;1,7,5,3;,
4;6,0,2,4;,
// Lever_Hold
4;8,9,11,10;,
4;10,11,13,12;,
4;12,13,15,14;,
4;14,15,9,8;,
4;9,15,13,11;,
4;14,8,10,12;;
}
MeshTextureCoords {
16;
// Lever1
0.027;0.399;,
0.027;0.437;,
0.035;0.399;,
0.035;0.437;,
0.035;0.437;,
0.035;0.399;,
0.027;0.437;,
0.027;0.399;,
// Lever_Hold
0.0;0.063;,
0.0;0.086;,
0.031;0.063;,
0.031;0.086;,
0.031;0.086;,
0.031;0.063;,
0.0;0.086;,
0.0;0.063;;
}
}

View File

@ -1,274 +0,0 @@
xof 0302txt 0064
// File created by CINEMA 4D
template Header {
<3D82AB43-62DA-11cf-AB39-0020AF71E433>
SWORD major;
SWORD minor;
DWORD flags;
}
template Vector {
<3D82AB5E-62DA-11cf-AB39-0020AF71E433>
FLOAT x;
FLOAT y;
FLOAT z;
}
template Coords2d {
<F6F23F44-7686-11cf-8F52-0040333594A3>
FLOAT u;
FLOAT v;
}
template Matrix4x4 {
<F6F23F45-7686-11cf-8F52-0040333594A3>
array FLOAT matrix[16];
}
template ColorRGBA {
<35FF44E0-6C7C-11cf-8F52-0040333594A3>
FLOAT red;
FLOAT green;
FLOAT blue;
FLOAT alpha;
}
template ColorRGB {
<D3E16E81-7835-11cf-8F52-0040333594A3>
FLOAT red;
FLOAT green;
FLOAT blue;
}
template IndexedColor {
<1630B820-7842-11cf-8F52-0040333594A3>
DWORD index;
ColorRGBA indexColor;
}
template Boolean {
<4885AE61-78E8-11cf-8F52-0040333594A3>
SWORD truefalse;
}
template Boolean2d {
<4885AE63-78E8-11cf-8F52-0040333594A3>
Boolean u;
Boolean v;
}
template MaterialWrap {
<4885AE60-78E8-11cf-8F52-0040333594A3>
Boolean u;
Boolean v;
}
template TextureFilename {
<A42790E1-7810-11cf-8F52-0040333594A3>
STRING filename;
}
template Material {
<3D82AB4D-62DA-11cf-AB39-0020AF71E433>
ColorRGBA faceColor;
FLOAT power;
ColorRGB specularColor;
ColorRGB emissiveColor;
[...]
}
template MeshFace {
<3D82AB5F-62DA-11cf-AB39-0020AF71E433>
DWORD nFaceVertexIndices;
array DWORD faceVertexIndices[nFaceVertexIndices];
}
template MeshFaceWraps {
<4885AE62-78E8-11cf-8F52-0040333594A3>
DWORD nFaceWrapValues;
Boolean2d faceWrapValues;
}
template MeshTextureCoords {
<F6F23F40-7686-11cf-8F52-0040333594A3>
DWORD nTextureCoords;
array Coords2d textureCoords[nTextureCoords];
}
template MeshMaterialList {
<F6F23F42-7686-11cf-8F52-0040333594A3>
DWORD nMaterials;
DWORD nFaceIndexes;
array DWORD faceIndexes[nFaceIndexes];
[Material]
}
template MeshNormals {
<F6F23F43-7686-11cf-8F52-0040333594A3>
DWORD nNormals;
array Vector normals[nNormals];
DWORD nFaceNormals;
array MeshFace faceNormals[nFaceNormals];
}
template MeshVertexColors {
<1630B821-7842-11cf-8F52-0040333594A3>
DWORD nVertexColors;
array IndexedColor vertexColors[nVertexColors];
}
template Mesh {
<3D82AB44-62DA-11cf-AB39-0020AF71E433>
DWORD nVertices;
array Vector vertices[nVertices];
DWORD nFaces;
array MeshFace faces[nFaces];
[...]
}
template FrameTransformMatrix {
<F6F23F41-7686-11cf-8F52-0040333594A3>
Matrix4x4 frameMatrix;
}
template Frame {
<3D82AB46-62DA-11cf-AB39-0020AF71E433>
[...]
}
Header {
1;
0;
1;
}
Mesh CINEMA4D_Mesh {
16;
// Lever1
4.968;-3.861;6.175;,
44.767;43.898;-0.249;,
-4.623;4.154;6.346;,
35.177;51.913;-0.078;,
-5.577;3.277;-6.087;,
34.222;51.036;-12.511;,
4.014;-4.738;-6.258;,
43.813;43.021;-12.682;,
// Lever_Hold
-25.0;-9.375;-18.75;,
-25.0;9.375;-18.75;,
25.0;-9.375;-18.75;,
25.0;9.375;-18.75;,
25.0;-9.375;18.75;,
25.0;9.375;18.75;,
-25.0;-9.375;18.75;,
-25.0;9.375;18.75;;
12;
// Lever1
4;0,1,3,2;,
4;2,3,5,4;,
4;4,5,7,6;,
4;6,7,1,0;,
4;1,7,5,3;,
4;6,0,2,4;,
// Lever_Hold
4;8,9,11,10;,
4;10,11,13,12;,
4;12,13,15,14;,
4;14,15,9,8;,
4;9,15,13,11;,
4;14,8,10,12;;
MeshNormals {
16;
// Lever1
-0.084;-0.158;0.054;,
0.145;0.117;0.017;,
-0.14;-0.112;0.055;,
0.09;0.164;0.018;,
-0.145;-0.117;-0.017;,
0.084;0.158;-0.054;,
-0.09;-0.164;-0.018;,
0.14;0.112;-0.055;,
// Lever_Hold
-0.144;-0.054;-0.108;,
-0.144;0.054;-0.108;,
0.144;-0.054;-0.108;,
0.144;0.054;-0.108;,
0.144;-0.054;0.108;,
0.144;0.054;0.108;,
-0.144;-0.054;0.108;,
-0.144;0.054;0.108;;
12;
// Lever1
4;0,1,3,2;,
4;2,3,5,4;,
4;4,5,7,6;,
4;6,7,1,0;,
4;1,7,5,3;,
4;6,0,2,4;,
// Lever_Hold
4;8,9,11,10;,
4;10,11,13,12;,
4;12,13,15,14;,
4;14,15,9,8;,
4;9,15,13,11;,
4;14,8,10,12;;
}
MeshTextureCoords {
16;
// Lever1
0.027;0.399;,
0.027;0.437;,
0.035;0.399;,
0.035;0.437;,
0.035;0.437;,
0.035;0.399;,
0.027;0.437;,
0.027;0.399;,
// Lever_Hold
0.0;0.063;,
0.0;0.086;,
0.031;0.063;,
0.031;0.086;,
0.031;0.086;,
0.031;0.063;,
0.0;0.086;,
0.0;0.063;;
}
MeshMaterialList {
2;
12;
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1;
Material C4DMAT_NONE {
1.0;1.0;1.0;1.0;;
1.0;
0.0;0.0;0.0;;
0.0;0.0;0.0;;
}
Material C4DMAT_Terrain {
1.0;1.0;1.0;1.0;;
1.0;
0.0;0.0;0.0;;
0.0;0.0;0.0;;
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 B

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B