lattice.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. minetest.register_node("mydeck:lattice", {
  2. description = "Lattice",
  3. tiles = {
  4. "mydeck_hwood.png",
  5. "mydeck_hwood.png",
  6. "mydeck_hwood.png",
  7. "mydeck_hwood.png",
  8. "mydeck_hwood.png",
  9. "mydeck_hwood.png",
  10. },
  11. drawtype = "nodebox",
  12. paramtype = "light",
  13. paramtype2 = "facedir",
  14. sunlight_propagates = true,
  15. sounds = default.node_sound_wood_defaults(),
  16. groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1, flammable = 1},
  17. node_box = {
  18. type = "fixed",
  19. fixed = {
  20. {-0.4375, -0.5, 0.4375, -0.375, 0.5, 0.5}, -- NodeBox1
  21. {-0.3125, -0.5, 0.4375, -0.25, 0.5, 0.5}, -- NodeBox2
  22. {-0.1875, -0.5, 0.4375, -0.125, 0.5, 0.5}, -- NodeBox3
  23. {-0.0625, -0.5, 0.4375, 0, 0.5, 0.5}, -- NodeBox4
  24. {0.0625, -0.5, 0.4375, 0.125, 0.5, 0.5}, -- NodeBox5
  25. {0.1875, -0.5, 0.4375, 0.25, 0.5, 0.5}, -- NodeBox6
  26. {0.3125, -0.5, 0.4375, 0.375, 0.5, 0.5}, -- NodeBox7
  27. {0.4375, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- NodeBox8
  28. {-0.5, -0.5, 0.375, 0.5, -0.4375, 0.4375}, -- NodeBox9
  29. {-0.5, -0.375, 0.375, 0.5, -0.3125, 0.4375}, -- NodeBox10
  30. {-0.5, -0.25, 0.375, 0.5, -0.1875, 0.4375}, -- NodeBox11
  31. {-0.5, -0.125, 0.375, 0.5, -0.0625, 0.4375}, -- NodeBox12
  32. {-0.5, 0, 0.375, 0.5, 0.0625, 0.4375}, -- NodeBox13
  33. {-0.5, 0.125, 0.375, 0.5, 0.1875, 0.4375}, -- NodeBox14
  34. {-0.5, 0.25, 0.375, 0.5, 0.3125, 0.4375}, -- NodeBox15
  35. {-0.5, 0.375, 0.375, 0.5, 0.4375, 0.4375}, -- NodeBox16
  36. }
  37. },
  38. selection_box = {
  39. type = "fixed",
  40. fixed = {
  41. {-0.5, -0.5, 0.5, 0.5, 0.5, 0.375},
  42. }
  43. },
  44. })