bows.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --BOWS------------------------------------------------------------------------------------
  2. bows.register_bow('bow_wood',{
  3. description = 'Wooden bow',
  4. texture = 'bows_bow.png',
  5. texture_loaded = 'bows_bow_loaded.png',
  6. uses = 100,
  7. level = 15,
  8. craft = {
  9. {'', 'group:stick', 'farming:string'},
  10. {'group:stick', '', 'farming:string'},
  11. {'', 'group:stick', 'farming:string'}
  12. },
  13. })
  14. --ARROWS----------------------------------------------------------------------------------
  15. minetest.register_craftitem('bows:arrow_ent', {
  16. inventory_image = 'bows_arrow_ent.png',
  17. groups = {not_in_creative_inventory=1}
  18. })
  19. bows.register_arrow('arrow_1',{
  20. description = 'Weak Arrow',
  21. texture = 'bows_arrow_1.png',
  22. displayed_entity = 'bows:arrow_ent',
  23. damage = 4,
  24. drop_chance = 3,
  25. craft = {
  26. {'group:stick', 'mobs:chicken_feather'}
  27. },
  28. })
  29. bows.register_arrow('arrow_2',{
  30. description = 'Fair Arrow',
  31. texture = 'bows_arrow_2.png',
  32. displayed_entity = 'bows:arrow_ent',
  33. speed = 2,
  34. damage = 6,
  35. drop_chance = 2,
  36. craft = {
  37. {'default:flint', 'group:stick', 'mobs:chicken_feather'}
  38. },
  39. })
  40. bows.register_arrow('arrow_3',{
  41. description = 'Good Arrow',
  42. texture = 'bows_arrow_3.png',
  43. displayed_entity = 'bows:arrow_ent',
  44. speed = 4,
  45. damage = 10,
  46. drop_chance = 1,
  47. craft = {
  48. {'epic:arrow_tip', 'group:stick', 'mobs:chicken_feather'}
  49. },
  50. })