furniture.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. local S = minetest.get_translator("decoblocks")
  2. minetest.register_node("decoblocks:barrel", {
  3. description = S("Barrel"),
  4. tiles = {
  5. "decoblocks_barrel_top.png",
  6. "decoblocks_barrel_top.png",
  7. "decoblocks_barrel_side.png"
  8. },
  9. paramtype2 = "facedir",
  10. groups = {choppy=3},
  11. sounds = default.node_sound_wood_defaults(),
  12. })
  13. minetest.register_node("decoblocks:hay", {
  14. description = S("Hay"),
  15. tiles = {
  16. "decoblocks_hay_top.png",
  17. "decoblocks_hay_top.png",
  18. "decoblocks_hay_side.png"
  19. },
  20. paramtype2 = "facedir",
  21. groups = {oddly_breakable_by_hand = 3},
  22. sounds = default.node_sound_leaves_defaults(),
  23. })
  24. minetest.register_node("decoblocks:tatami", {
  25. description = S("Tatami"),
  26. tiles = {
  27. "decoblocks_tatami.png",
  28. },
  29. paramtype2 = "facedir",
  30. groups = {oddly_breakable_by_hand = 3}
  31. })
  32. minetest.register_alias("barrel", "decoblocks:barrel")
  33. minetest.register_alias("hay", "decoblocks:hay")
  34. minetest.register_alias("tatami", "decoblocks:tatami")
  35. minetest.register_node("decoblocks:vase", {
  36. description = "Vase",
  37. tiles = {
  38. "decoblocks_coconut_side.png",
  39. },
  40. drawtype = "nodebox",
  41. paramtype = "light",
  42. node_box = {
  43. type = "fixed",
  44. fixed = {
  45. {-0.1875, -0.5, -0.1875, 0.1875, -0.375, 0.1875}, -- NodeBox1
  46. {-0.1875, -0.375, -0.125, -0.125, -0.125, 0.1875}, -- NodeBox4
  47. {0.125, -0.375, -0.1875, 0.1875, -0.125, 0.125}, -- NodeBox6
  48. {-0.1875, -0.375, -0.1875, 0.125, -0.125, -0.125}, -- NodeBox7
  49. {-0.125, -0.375, 0.125, 0.1875, -0.125, 0.1875}, -- NodeBox8
  50. }
  51. },
  52. groups = {oddly_breakable_by_hand = 2}
  53. })