drystack.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. -------------------------------------------------------------
  2. --DRYSTACK
  3. -- construction from loose stones, boulders etc
  4. ---------------------------------
  5. --DRYSTACK WALLS
  6. -- walls made from stacked stones
  7. -- made from loose found stones
  8. minetest.register_node("earthbuild:drystack", {
  9. description = "Drystack Wall",
  10. tiles = {"earthbuild_drystack.png"},
  11. groups = {cracky = 3, stone = 2, oddly_breakable_by_hand = 1},
  12. sounds = default.node_sound_stone_defaults(),
  13. })
  14. --find good stones in the gravel
  15. minetest.register_craft({
  16. output = 'earthbuild:drystack',
  17. recipe = {
  18. {'default:gravel', '', 'default:gravel'},
  19. }
  20. })
  21. --stack flints
  22. minetest.register_craft({
  23. output = 'earthbuild:drystack',
  24. recipe = {
  25. {'default:flint', 'default:flint', 'default:flint'},
  26. {'default:flint', 'default:flint', 'default:flint'},
  27. {'default:flint', 'default:flint', 'default:flint'},
  28. }
  29. })
  30. --recycle field wall
  31. minetest.register_craft({
  32. output = 'earthbuild:drystack',
  33. recipe = {
  34. {'earthbuild:drystack_wall'},
  35. }
  36. })
  37. -- Stairs and slab for drystack
  38. stairs.register_stair_and_slab("drystack", "earthbuild:drystack",
  39. {cracky = 3, stone = 2, oddly_breakable_by_hand = 1},
  40. {"earthbuild_drystack.png"},
  41. "Drystack Stair",
  42. "Drystack Slab",
  43. default.node_sound_stone_defaults())
  44. --Wall for drystack
  45. walls.register("earthbuild:drystack_wall", "Drystack Field Wall", "earthbuild_drystack.png",
  46. "earthbuild:drystack", default.node_sound_stone_defaults())