craftitems.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. minetest.register_craftitem("lottmobs:meat", {
  2. description = "Cooked Meat",
  3. inventory_image = "lottmobs_meat.png",
  4. on_use = minetest.item_eat(4),
  5. })
  6. minetest.register_craftitem("lottmobs:meat_raw", {
  7. description = "Raw Meat",
  8. inventory_image = "lottmobs_meat_raw.png",
  9. })
  10. minetest.register_craftitem("lottmobs:spiderpoison", {
  11. description = "Spider Poison",
  12. inventory_image = "lottmobs_spiderpoison.png",
  13. on_use = minetest.item_eat(-15)
  14. })
  15. minetest.register_craft({
  16. type = "cooking",
  17. output = "lottmobs:meat",
  18. recipe = "lottmobs:meat_raw",
  19. })
  20. minetest.register_craftitem("lottmobs:dirty_shirt", {
  21. description = "Dirty Jacket",
  22. inventory_image = "lottclothes_inv_jacket_midgewater.png^[colorize:#935d3675",
  23. stack_max = 1,
  24. })
  25. minetest.register_craft({
  26. output = 'lottclothes:flaxthread 8',
  27. recipe = {
  28. {'lottmobs:dirty_shirt'},
  29. }
  30. })
  31. minetest.register_craftitem("lottmobs:dirty_trousers", {
  32. description = "Dirty Trousers",
  33. inventory_image = "lottclothes_inv_pants_midgewater.png^[colorize:#935d3675",
  34. stack_max = 1,
  35. })
  36. minetest.register_craft({
  37. output = 'lottclothes:flaxthread 7',
  38. recipe = {
  39. {'lottmobs:dirty_trousers'},
  40. }
  41. })
  42. minetest.register_craft({
  43. output = "lottclothes:jacket_midgewater",
  44. type = "shapeless",
  45. recipe = {"bucket:bucket_water", "lottmobs:dirty_shirt"},
  46. replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
  47. })
  48. minetest.register_craft({
  49. output = "lottclothes:pants_midgewater",
  50. type = "shapeless",
  51. recipe = {"bucket:bucket_water", "lottmobs:dirty_trousers"},
  52. replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
  53. })