wood.lua 765 B

123456789101112131415161718192021222324252627282930
  1. -- banana trunk
  2. minetest.register_node("epic_trees:banana_trunk", {
  3. description = "Banana Trunk",
  4. tiles = {
  5. "banana_trunk_top.png",
  6. "banana_trunk_top.png",
  7. "banana_trunk.png"
  8. },
  9. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  10. sounds = default.node_sound_wood_defaults(),
  11. paramtype2 = "facedir",
  12. on_place = minetest.rotate_node,
  13. })
  14. -- banana wood
  15. minetest.register_node("epic_trees:banana_wood", {
  16. description = "Banana Wood",
  17. tiles = {"banana_wood.png"},
  18. is_ground_content = false,
  19. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  20. sounds = default.node_sound_wood_defaults(),
  21. })
  22. minetest.register_craft({
  23. output = "epic_trees:banana_wood 4",
  24. recipe = {{"epic_trees:banana_trunk"}}
  25. })