crafts.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. local S = maple.get_translator;
  2. default.register_fence("maple:fence_maple_wood", {
  3. description = S("Maple Fence"),
  4. texture = "maple_fence.png",
  5. inventory_image = "default_fence_overlay.png^maple_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
  6. wield_image = "default_fence_overlay.png^maple_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
  7. material = "maple:maple_wood",
  8. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
  9. sounds = default.node_sound_wood_defaults()
  10. })
  11. default.register_fence_rail("maple:fence_rail_maple_wood", {
  12. description = S("Maple Fence Rail"),
  13. texture = "maple_fence.png",
  14. inventory_image = "default_fence_rail_overlay.png^maple_wood.png^" ..
  15. "default_fence_rail_overlay.png^[makealpha:255,126,126",
  16. wield_image = "default_fence_rail_overlay.png^maple_wood.png^" ..
  17. "default_fence_rail_overlay.png^[makealpha:255,126,126",
  18. material = "maple:maple_wood",
  19. groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
  20. sounds = default.node_sound_wood_defaults()
  21. })
  22. doors.register_fencegate("maple:gate_maple_wood", {
  23. description = S("Maple Wood Fence Gate"),
  24. texture = "maple_wood.png",
  25. material = "maple:maple_wood",
  26. groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}
  27. })
  28. minetest.register_craft({
  29. output = 'maple:maple_wood 4',
  30. recipe = {
  31. {'maple:maple_tree'},
  32. }
  33. })
  34. minetest.register_craft({
  35. type = "fuel",
  36. recipe = "maple:maple_sapling",
  37. burntime = 12,
  38. })
  39. minetest.register_craft({
  40. type = "fuel",
  41. recipe = "maple:fence_maple_wood",
  42. burntime = 8,
  43. })