gates.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. local S = ethereal.intllib
  2. -- register Ethereal wood type gates
  3. doors.register_fencegate("ethereal:fencegate_scorched", {
  4. description = S("Scorched Wood Fence Gate"),
  5. texture = "scorched_tree.png",
  6. material = "ethereal:scorched_tree",
  7. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  8. })
  9. doors.register_fencegate("ethereal:fencegate_frostwood", {
  10. description = S("Frost Wood Fence Gate"),
  11. texture = "frost_wood.png",
  12. material = "ethereal:frost_wood",
  13. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  14. })
  15. doors.register_fencegate("ethereal:fencegate_redwood", {
  16. description = S("Redwood Fence Gate"),
  17. texture = "redwood_wood.png",
  18. material = "ethereal:redwood_wood",
  19. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  20. })
  21. doors.register_fencegate("ethereal:fencegate_willow", {
  22. description = S("Willow Wood Fence Gate"),
  23. texture = "willow_wood.png",
  24. material = "ethereal:willow_wood",
  25. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  26. })
  27. doors.register_fencegate("ethereal:fencegate_yellowwood", {
  28. description = S("Healing Wood Fence Gate"),
  29. texture = "yellow_wood.png",
  30. material = "ethereal:yellow_wood",
  31. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  32. })
  33. doors.register_fencegate("ethereal:fencegate_palm", {
  34. description = S("Palm Wood Fence Gate"),
  35. texture = "moretrees_palm_wood.png",
  36. material = "ethereal:palm_wood",
  37. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  38. })
  39. doors.register_fencegate("ethereal:fencegate_banana", {
  40. description = S("Banana Wood Fence Gate"),
  41. texture = "banana_wood.png",
  42. material = "ethereal:banana_wood",
  43. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  44. })
  45. doors.register_fencegate("ethereal:fencegate_mushroom", {
  46. description = S("Mushroom Trunk Fence Gate"),
  47. texture = "mushroom_trunk.png",
  48. material = "ethereal:mushroom_trunk",
  49. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  50. })
  51. doors.register_fencegate("ethereal:fencegate_birch", {
  52. description = S("Birch Wood Fence Gate"),
  53. texture = "moretrees_birch_wood.png",
  54. material = "ethereal:birch_wood",
  55. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  56. })
  57. doors.register_fencegate("ethereal:fencegate_sakura", {
  58. description = S("Sakura Wood Fence Gate"),
  59. texture = "ethereal_sakura_wood.png",
  60. material = "ethereal:sakura_wood",
  61. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
  62. })
  63. -- add compatibility for ethereal's to default wooden gates
  64. minetest.register_alias("ethereal:fencegate_wood_open", "doors:gate_wood_open")
  65. minetest.register_alias("ethereal:fencegate_wood_closed", "doors:gate_wood_closed")
  66. minetest.register_alias("ethereal:fencegate_acacia_open", "doors:gate_acacia_wood_open")
  67. minetest.register_alias("ethereal:fencegate_acacia_closed", "doors:gate_acacia_wood_closed")
  68. minetest.register_alias("ethereal:fencegate_junglewood_open", "doors:gate_junglewood_open")
  69. minetest.register_alias("ethereal:fencegate_junglewood_closed", "doors:gate_junglewood_closed")
  70. minetest.register_alias("ethereal:fencegate_pine_open", "doors:gate_pine_wood_open")
  71. minetest.register_alias("ethereal:fencegate_pine_closed", "doors:gate_pine_wood_closed")
  72. -- sakura door
  73. doors.register_door("ethereal:door_sakura", {
  74. tiles = {
  75. {name = "ethereal_sakura_door.png", backface_culling = true}
  76. },
  77. description = S("Sakura Wood Door"),
  78. inventory_image = "ethereal_sakura_door_inv.png",
  79. groups = {
  80. snappy = 1, choppy = 2, oddly_breakable_by_hand = 2,
  81. flammable = 2
  82. },
  83. sound_open = "doors_glass_door_open",
  84. sound_close = "doors_glass_door_close",
  85. recipe = {
  86. {"group:stick", "default:paper"},
  87. {"default:paper", "group:stick"},
  88. {"ethereal:sakura_wood", "ethereal:sakura_wood"}
  89. }
  90. })
  91. minetest.register_alias("ethereal:sakura_door", "ethereal:door_sakura")
  92. minetest.register_alias("ethereal:sakura_door_a", "ethereal:door_sakura_a")
  93. minetest.register_alias("ethereal:sakura_door_b", "ethereal:door_sakura_b")