cotton.lua 900 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. farming.register_plant("farming:cotton", {
  2. description = "Cotton Seed",
  3. harvest_description = "Cotton",
  4. inventory_image = "farming_cotton_seed.png",
  5. steps = 8,
  6. minlight = 13,
  7. maxlight = default.LIGHT_MAX,
  8. fertility = {"grassland", "desert"},
  9. groups = {flammable = 4},
  10. })
  11. -- Override drop
  12. minetest.override_item("farming:cotton_8", {
  13. drop = "farming:cotton 3"
  14. })
  15. minetest.register_craft({
  16. type = "shapeless",
  17. output = "farming:seed_cotton 2",
  18. recipe = {"farming:cotton"}
  19. })
  20. minetest.register_craftitem("farming:string", {
  21. description = "String",
  22. inventory_image = "farming_string.png",
  23. groups = {flammable = 2},
  24. })
  25. minetest.register_craft({
  26. output = "farming:string 2",
  27. recipe = {
  28. {"farming:cotton"},
  29. {"farming:cotton"},
  30. }
  31. })
  32. minetest.register_craft({
  33. output = "wool:white",
  34. recipe = {
  35. {"farming:cotton", "farming:cotton"},
  36. {"farming:cotton", "farming:cotton"},
  37. }
  38. })