mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-11-17 23:58:30 +01:00
use mesh node for cubical plasma lamp
This commit is contained in:
parent
ad4790f74c
commit
1f2676b8f6
@ -106,9 +106,10 @@ minetest.register_node("homedecor:glowlight_small_cube", {
|
||||
|
||||
homedecor.register("plasma_lamp", {
|
||||
description = S("Plasma Lamp"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"default_gold_block.png","homedecor_glass_face_clean.png"},
|
||||
special_tiles = {
|
||||
drawtype = "mesh",
|
||||
mesh = "plasma_lamp.obj",
|
||||
tiles = {
|
||||
"default_gold_block.png",
|
||||
{
|
||||
name="homedecor_plasma_storm.png",
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
|
||||
@ -119,9 +120,6 @@ homedecor.register("plasma_lamp", {
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
minetest.swap_node(pos, {name = "homedecor:plasma_lamp", param2 = 255})
|
||||
end
|
||||
})
|
||||
|
||||
homedecor.register("plasma_ball", {
|
||||
|
202
homedecor/models/plasma_lamp.obj
Normal file
202
homedecor/models/plasma_lamp.obj
Normal file
@ -0,0 +1,202 @@
|
||||
# Blender v2.78 (sub 0) OBJ File: ''
|
||||
# www.blender.org
|
||||
o Cube_Cube.001
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v -0.500000 0.500000 -0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v 0.437500 -0.437500 -0.437500
|
||||
v 0.437500 0.437500 -0.437500
|
||||
v 0.437500 -0.437500 0.437500
|
||||
v 0.437500 0.437500 0.437500
|
||||
v -0.437500 -0.437500 -0.437500
|
||||
v -0.437500 0.437500 -0.437500
|
||||
v -0.437500 -0.437500 0.437500
|
||||
v -0.437500 0.437500 0.437500
|
||||
v -0.500000 -0.437500 -0.437500
|
||||
v -0.500000 0.437500 -0.437500
|
||||
v -0.500000 -0.437500 0.437500
|
||||
v -0.500000 0.437500 0.437500
|
||||
v 0.500000 -0.437500 -0.437500
|
||||
v 0.500000 0.437500 -0.437500
|
||||
v 0.500000 -0.437500 0.437500
|
||||
v 0.500000 0.437500 0.437500
|
||||
v 0.437500 -0.437500 -0.500000
|
||||
v 0.437500 0.437500 -0.500000
|
||||
v -0.437500 -0.437500 -0.500000
|
||||
v -0.437500 0.437500 -0.500000
|
||||
v 0.437500 -0.437500 0.500000
|
||||
v 0.437500 0.437500 0.500000
|
||||
v -0.437500 -0.437500 0.500000
|
||||
v -0.437500 0.437500 0.500000
|
||||
v 0.437500 0.500000 -0.437500
|
||||
v 0.437500 0.500000 0.437500
|
||||
v -0.437500 0.500000 -0.437500
|
||||
v -0.437500 0.500000 0.437500
|
||||
v 0.437500 -0.500000 -0.437500
|
||||
v 0.437500 -0.500000 0.437500
|
||||
v -0.437500 -0.500000 -0.437500
|
||||
v -0.437500 -0.500000 0.437500
|
||||
vt 0.0625 0.0000
|
||||
vt 0.9375 0.0000
|
||||
vt 0.9375 0.0625
|
||||
vt 0.0625 0.0625
|
||||
vt -0.0000 0.9375
|
||||
vt -0.0000 0.0625
|
||||
vt 0.0625 0.9375
|
||||
vt -0.0000 0.0625
|
||||
vt -0.0000 0.9375
|
||||
vt -0.0000 0.9375
|
||||
vt -0.0000 0.0625
|
||||
vt 0.0625 0.0625
|
||||
vt 0.0625 0.9375
|
||||
vt -0.0000 0.9375
|
||||
vt 0.0625 0.9375
|
||||
vt 0.0625 0.0625
|
||||
vt -0.0000 0.0625
|
||||
vt 0.9375 0.0000
|
||||
vt 0.0625 0.0000
|
||||
vt 0.9375 0.0625
|
||||
vt 0.0625 0.9375
|
||||
vt 0.0625 0.0625
|
||||
vt -0.0000 0.0625
|
||||
vt -0.0000 0.9375
|
||||
vt 1.0000 0.9375
|
||||
vt 1.0000 0.0625
|
||||
vt 0.9375 0.9375
|
||||
vt 1.0000 0.9375
|
||||
vt 0.9375 0.9375
|
||||
vt 1.0000 0.9375
|
||||
vt 0.9375 0.9375
|
||||
vt 0.9375 0.0625
|
||||
vt 1.0000 0.0625
|
||||
vt 1.0000 0.0625
|
||||
vt 1.0000 0.9375
|
||||
vt 1.0000 0.0625
|
||||
vt 0.9375 1.0000
|
||||
vt 0.0625 1.0000
|
||||
vt 0.9375 0.9375
|
||||
vt 0.9375 0.0625
|
||||
vt 1.0000 0.0625
|
||||
vt 1.0000 0.9375
|
||||
vt 0.0625 1.0000
|
||||
vt 0.9375 1.0000
|
||||
vt 0.0625 0.0000
|
||||
vt 0.9375 0.0000
|
||||
vt 0.0625 0.0000
|
||||
vt 0.9375 0.0000
|
||||
vt 0.0625 0.0000
|
||||
vt 0.9375 0.0000
|
||||
vt 0.0625 1.0000
|
||||
vt 0.9375 1.0000
|
||||
vt 0.0625 1.0000
|
||||
vt 0.9375 1.0000
|
||||
vt 0.0625 1.0000
|
||||
vt 0.9375 1.0000
|
||||
vt -0.0000 0.0000
|
||||
vt 1.0000 0.0000
|
||||
vt 0.9375 0.0625
|
||||
vt 0.0625 0.0625
|
||||
vt -0.0000 1.0000
|
||||
vt 0.0625 0.9375
|
||||
vt 1.0000 1.0000
|
||||
vt 0.9375 0.9375
|
||||
vt -0.0000 1.0000
|
||||
vt 0.0625 0.9375
|
||||
vt 0.9375 0.9375
|
||||
vt 1.0000 0.0000
|
||||
vt 0.9375 0.0625
|
||||
vt 0.0625 0.0625
|
||||
vt -0.0000 0.0000
|
||||
vt 1.0000 1.0000
|
||||
vt 1.0000 0.0000
|
||||
vt 0.9375 0.0625
|
||||
vt 0.9375 0.9375
|
||||
vt -0.0000 0.0000
|
||||
vt 0.0625 0.0625
|
||||
vt -0.0000 1.0000
|
||||
vt 0.0625 0.9375
|
||||
vt -0.0000 0.0000
|
||||
vt 0.0625 0.9375
|
||||
vt 0.0625 0.0625
|
||||
vt 0.9375 0.9375
|
||||
vt 0.9375 0.0625
|
||||
vt 1.0000 0.0000
|
||||
vt 0.9375 0.0625
|
||||
vt 0.9375 0.9375
|
||||
vt 1.0000 1.0000
|
||||
vt 0.0625 0.9375
|
||||
vt -0.0000 1.0000
|
||||
vt 0.0625 0.0625
|
||||
vt 0.0625 0.0625
|
||||
vt 0.0625 0.9375
|
||||
vt 0.9375 0.9375
|
||||
vt 1.0000 1.0000
|
||||
vt 0.9375 0.0625
|
||||
vn 0.0000 1.0000 0.0000
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn 0.0000 0.0000 -1.0000
|
||||
vn 0.0000 -1.0000 0.0000
|
||||
vn 1.0000 0.0000 0.0000
|
||||
g Cube_Cube.001_frame
|
||||
s off
|
||||
f 25/1/1 27/2/1 13/3/1 9/4/1
|
||||
f 26/5/2 25/6/2 9/4/2 10/7/2
|
||||
f 21/8/3 22/9/3 10/7/3 9/4/3
|
||||
f 24/10/4 23/11/4 11/12/4 12/13/4
|
||||
f 23/14/1 21/8/1 9/4/1 11/15/1
|
||||
f 12/13/5 10/16/5 22/17/5 24/10/5
|
||||
f 28/18/5 26/19/5 10/16/5 14/20/5
|
||||
f 14/21/6 13/22/6 27/23/6 28/24/6
|
||||
f 18/25/3 17/26/3 13/3/3 14/27/3
|
||||
f 17/26/1 19/28/1 15/29/1 13/3/1
|
||||
f 20/30/4 16/31/4 15/32/4 19/33/4
|
||||
f 20/30/5 18/34/5 14/20/5 16/31/5
|
||||
f 16/31/6 32/35/6 31/36/6 15/32/6
|
||||
f 31/37/1 29/38/1 11/15/1 15/29/1
|
||||
f 12/39/2 11/40/2 29/41/2 30/42/2
|
||||
f 30/43/5 32/44/5 16/31/5 12/13/5
|
||||
f 15/32/4 11/12/4 38/45/4 40/46/4
|
||||
f 13/22/6 15/32/6 40/46/6 39/47/6
|
||||
f 9/4/3 13/3/3 39/48/3 37/49/3
|
||||
f 11/40/2 9/4/2 37/49/2 38/50/2
|
||||
f 16/31/6 14/21/6 35/51/6 36/52/6
|
||||
f 12/13/4 16/31/4 36/52/4 34/53/4
|
||||
f 10/7/2 12/39/2 34/54/2 33/55/2
|
||||
f 14/27/3 10/7/3 33/55/3 35/56/3
|
||||
f 2/57/1 6/58/1 35/59/1 33/60/1
|
||||
f 4/61/1 2/57/1 33/60/1 34/62/1
|
||||
f 8/63/1 4/61/1 34/62/1 36/64/1
|
||||
f 6/58/1 8/63/1 36/64/1 35/59/1
|
||||
f 6/65/2 18/66/2 20/67/2 8/63/2
|
||||
f 7/68/2 8/63/2 20/67/2 19/69/2
|
||||
f 7/68/2 19/69/2 17/70/2 5/71/2
|
||||
f 5/71/2 17/70/2 18/66/2 6/65/2
|
||||
f 7/72/5 5/73/5 39/74/5 40/75/5
|
||||
f 5/73/5 1/76/5 37/77/5 39/74/5
|
||||
f 1/76/5 3/78/5 38/79/5 37/77/5
|
||||
f 3/78/5 7/72/5 40/75/5 38/79/5
|
||||
f 3/80/3 4/61/3 30/81/3 29/82/3
|
||||
f 8/63/3 32/83/3 30/81/3 4/61/3
|
||||
f 7/68/3 31/84/3 32/83/3 8/63/3
|
||||
f 3/80/3 29/82/3 31/84/3 7/68/3
|
||||
f 3/85/6 23/86/6 24/87/6 4/88/6
|
||||
f 4/88/6 24/87/6 22/89/6 2/90/6
|
||||
f 2/90/6 22/89/6 21/91/6 1/76/6
|
||||
f 1/76/6 21/91/6 23/86/6 3/85/6
|
||||
f 2/90/4 1/76/4 25/92/4 26/93/4
|
||||
f 2/90/4 26/93/4 28/94/4 6/95/4
|
||||
f 5/73/4 6/95/4 28/94/4 27/96/4
|
||||
f 5/73/4 27/96/4 25/92/4 1/76/4
|
||||
g Cube_Cube.001_glass
|
||||
f 9/4/6 10/7/6 12/39/6 11/40/6
|
||||
f 11/12/3 12/13/3 16/31/3 15/32/3
|
||||
f 15/32/2 16/31/2 14/21/2 13/22/2
|
||||
f 13/3/4 14/27/4 10/7/4 9/4/4
|
||||
f 11/15/5 15/29/5 13/3/5 9/4/5
|
||||
f 16/31/1 12/13/1 10/16/1 14/20/1
|
Loading…
Reference in New Issue
Block a user