stuff.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --log and plank items
  2. ------------------------------------------------------------------------
  3. local S = minetest.get_translator("wood_and_saws")
  4. minetest.register_craftitem("wood_and_saws:log_item",
  5. {
  6. description = S("Log"),
  7. groups = {wood = 1, },
  8. _sawing_result = "plank 2",
  9. inventory_image = "wood_and_saws_log.png",
  10. stack_max = 128,
  11. })
  12. minetest.register_craftitem("wood_and_saws:ironwood_log_item",
  13. {
  14. description = S("Ironwood Log"),
  15. groups = {wood = 1,},
  16. _sawing_result = "plank 2",
  17. inventory_image = "wood_and_saws_ironwood_log.png",
  18. stack_max = 128,
  19. })
  20. minetest.register_craftitem("wood_and_saws:plank_item",
  21. {
  22. description = S("Plank"),
  23. groups = {wood = 1, },
  24. _sawing_result = "stick 2",
  25. inventory_image = "wood_and_saws_plank.png",
  26. stack_max = 128,
  27. })
  28. minetest.register_alias("log", "wood_and_saws:log_item")
  29. minetest.register_alias("ironwood_log", "wood_and_saws:ironwood_log_item")
  30. minetest.register_alias("plank", "wood_and_saws:plank_item")
  31. crafting.register_recipe(
  32. {
  33. output = "ironwood_log",
  34. type = "inv",
  35. items = {"iron 2"},
  36. always_known = true,
  37. })