Guest User

Untitled

a guest
Nov 20th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. -- utility3D v0.1
  2. -- free to modify/reuse
  3.  
  4. ----------------------------
  5. -- Keriz --
  6. ----------------------------
  7.  
  8.  
  9. -- Crafts recipes
  10. --Bench
  11.  
  12. minetest.register_craft( {
  13. output = 'utility3D:bench',
  14. recipe = {
  15. { 'default:wood','default:wood', 'default:wood'},
  16. { 'default:wood', '', 'default:wood'},
  17. }
  18. })
  19.  
  20. --Fridge
  21.  
  22. minetest.register_craft( {
  23. output = 'utility3D:fridge',
  24. recipe = {
  25. --{ 'default:steel_ingot','default:steel_ingot', 'default:wood'},
  26. --{ 'default:steel_ingot', 'default:stick',},
  27. --{ 'default:steel_ingot', 'default:steel_ingot',},
  28. { 'default:wood', 'default:wood'},
  29. }
  30. })
  31.  
  32.  
  33. -- Block
  34. --Bench
  35.  
  36. minetest.register_node("utility3D:bench", {
  37. description = 'Bench',
  38. tiles = {
  39. "bench.png",
  40. },
  41. drawtype = "nodebox",
  42. sunlight_propagates = true,
  43. paramtype = 'light',
  44. paramtype2 = "facedir",
  45. node_box = {
  46. type = "fixed",
  47. fixed = {
  48. {-0.4,0,-0.5, 0.4,0.2,0.5},
  49. {-0.1,-0.5,0.2, 0.1,0,0.4},
  50. {-0.1,-0.5,-0.4, 0.1,0,-0.2},
  51. },
  52. },
  53. groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
  54. })
  55.  
  56. --Fridge
  57.  
  58. minetest.register_node( "utility3D:fridge_top", {
  59. Description = 'Top fridge',
  60. tiles = {
  61. "fridge_top.png",
  62. },
  63. drawtype = "nodebox",
  64. sunlight_propagates = true,
  65. paramtype = 'light',
  66. paramtype2 = "facedir",
  67. node_box = {
  68. type = "fixed",
  69. fixed = {
  70. {-0.4,0,-0.5, 0.4,0.2,0.5},
  71. {-0.1,-0.5,0.2, 0.1,0,0.4},
  72. {-0.1,-0.5,-0.4, 0.1,0,-0.2},
  73. },
  74. },
  75. groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
  76. })
  77.  
  78. minetest.register_node("utility3D:fridge_bottom", {
  79. Description = "Bottom fridge",
  80. tiles = {
  81. "fridge_bot.png",
  82. },
  83. drawtype = "nodebox",
  84. sunlight_propagates = true,
  85. paramtype = "light",
  86. paramtype2 = "facedir",
  87. node_box = {
  88. type = "fixed",
  89. fixed = {
  90. {-0.4,0,-0.5, 0.4,0.2,0.5},
  91. {-0.1,-0.5,0.2, 0.1,0,0.4},
  92. {-0.1,-0.5,-0.4, 0.1,0,-0.2},
  93. },
  94. },
  95. groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
  96. })
Add Comment
Please, Sign In to add comment