Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gong_nodebox_gong = { -- {x1, y1, z1, x2, y2, z2} {left, bottom, backright, top, front}
  2.     {-13/32,    -3/32,  -8/32,  13/32,  5/32,   -7/32}, --Gong W1 Lv1
  3.     {-12/32,    -5/32,  -8/32,  12/32,  7/32,   -7/32}, --Gong W2 Lv1
  4.     {-11/32,    -7/32,  -8/32,  11/32,  9/32,   -7/32}, --Gong W3 Lv1
  5.     {-10/32,    -8/32,  -8/32,  10/32,  10/32,  -7/32}, --Gong W4 Lv1
  6.     {-4/32,     -12/32, -8/32,  4/32,   14/32,  -7/32}, --Gong H1 Lv1
  7.     {-6/32,     -11/32, -8/32,  6/32,   13/32,  -7/32}, --Gong H2 Lv1
  8.     {-8/32,     -10/32, -8/32,  8/32,   12/32,  -7/32}, --Gong H3 Lv1
  9.     {-9/32,     -9/32,  -8/32,  9/32,   11/32,  -7/32}, --Gong H4 Lv1
  10.            
  11.     {-11/32,    -3/32,  -9/32,  11/32,  5/32,   -8/32}, --Gong W1 Lv2
  12.     {-10/32,    -5/32,  -9/32,  10/32,  7/32,   -8/32}, --Gong W2 Lv2
  13.     {-9/32,     -7/32,  -9/32,  9/32,   9/32,   -8/32}, --Gong W3 Lv2
  14.     {-8/32,     -8/32,  -9/32,  8/32,   10/32,  -8/32}, --Gong W4 Lv2
  15.     {-4/32,     -10/32, -9/32,  4/32,   12/32,  -8/32}, --Gong H1 Lv2
  16.     {-6/32,     -9/32,  -9/32,  6/32,   11/32,  -8/32}, --Gong H2 Lv2
  17.     {-8/32,     -8/32,  -9/32,  8/32,   10/32,  -8/32}, --Gong H3 Lv2
  18.     {-9/32,     -7/32,  -9/32,  9/32,   9/32,   -8/32}, --Gong H4 Lv2
  19. }
  20.  
  21. gong_nodebox = {
  22.     type = "wallmounted",
  23.     wall_top = {
  24.         gong_nodebox_gong,
  25.         {},
  26.     },
  27.     wall_bottom = {
  28.         gong_nodebox_gong,
  29.         {},
  30.     },
  31.     wall_side = {
  32.         gong_nodebox_gong,
  33.         {},
  34.     },
  35. }
  36.  
  37. minetest.register_node("shenyun:gong",  {
  38.     description = "Shen Yun Gong",
  39.     tiles = {
  40.         "default_wood.png", --top
  41.         "default_wood.png", --bottom
  42.         "default_wood.png", --
  43.         "default_wood.png", --
  44.         "default_wood.png", --
  45.         "default_wood.png", -- front
  46.         --"shenyun_gong_front.png", -- front
  47.     },
  48.     groups = {crumbly=3},
  49.     drawtype = "nodebox",
  50.     paramtype = "light",
  51.     paramtype2 = "facedir",
  52.     node_box = gong_nodebox,
  53. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement