init.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. minetest.register_craftitem("concrete:rebar", {
  2. description = "Steel Rebar",
  3. inventory_image = "technic_rebar.png",
  4. })
  5. minetest.register_node("concrete:concrete", {
  6. description = "Concrete Block",
  7. tiles = {"technic_concrete_block.png",},
  8. groups = utility.dig_groups("hardstone"),
  9. sounds = default.node_sound_stone_defaults(),
  10. })
  11. minetest.register_node("concrete:brc", {
  12. description = "Blast-Resistant Concrete Block",
  13. tiles = {"technic_blast_resistant_concrete_block.png",},
  14. groups = utility.dig_groups("obsidian"),
  15. sounds = default.node_sound_stone_defaults(),
  16. on_blast = function(...) end, -- TNT-proof.
  17. node_dig_prediction = "",
  18. })
  19. minetest.register_craft({
  20. output = 'concrete:rebar 6',
  21. recipe = {
  22. {'','', "carbon_steel:ingot"},
  23. {'',"carbon_steel:ingot",''},
  24. {"carbon_steel:ingot", '', ''},
  25. }
  26. })
  27. minetest.register_craft({
  28. output = 'concrete:concrete 5',
  29. recipe = {
  30. {'default:stone','concrete:rebar','default:stone'},
  31. {'concrete:rebar','default:stone','concrete:rebar'},
  32. {'default:stone','concrete:rebar','default:stone'},
  33. }
  34. })
  35. minetest.register_craft({
  36. output = 'concrete:brc 5',
  37. recipe = {
  38. {'concrete:concrete','techcrafts:composite_plate','concrete:concrete'},
  39. {'techcrafts:composite_plate','concrete:concrete','techcrafts:composite_plate'},
  40. {'concrete:concrete','techcrafts:composite_plate','concrete:concrete'},
  41. }
  42. })
  43. stairs.register_stair_and_slab(
  44. "concrete",
  45. "concrete:concrete",
  46. {cracky=1, level=2},
  47. {"technic_concrete_block.png"},
  48. "Concrete Block",
  49. default.node_sound_stone_defaults()
  50. )