industrial.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. local S = minetest.get_translator("decoblocks")
  2. minetest.register_node("decoblocks:chainlink_fence", {
  3. description = S("Chain-link fence"),
  4. drawtype = "signlike",
  5. tiles = {"decoblocks_chainlink_fence.png"},
  6. inventory_image = "decoblocks_chainlink_fence.png",
  7. wield_image = "decoblocks_chainlink_fence.png",
  8. paramtype = "light",
  9. paramtype2 = "wallmounted",
  10. sunlight_propagates = true,
  11. selection_box = {type = "wallmounted"},
  12. node_box = {type = "wallmounted"},
  13. groups = {cracky = 3},
  14. sounds = default.node_sound_metal_defaults()
  15. })
  16. minetest.register_node("decoblocks:flyer", {
  17. description = S("Flyer"),
  18. tiles = {
  19. "decoblocks_flyer.png",
  20. "blank.png",
  21. "blank.png",
  22. "blank.png",
  23. "blank.png",
  24. "blank.png"
  25. },
  26. drawtype = "nodebox",
  27. paramtype = "light",
  28. paramtype2 = "facedir",
  29. node_box = {
  30. type = "fixed",
  31. fixed = {
  32. {-0.5, -0.5, -0.5, 0.5, -0.49, 0.5}
  33. }
  34. },
  35. groups = {oddly_breakable_by_hand = 3}
  36. })
  37. minetest.register_alias("chainlink_fence", "decoblocks:chainlink_fence")
  38. minetest.register_alias("flyer", "decoblocks:flyer")