melon.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "type": "minecraft:block",
  3. "pools": [
  4. {
  5. "rolls": 1,
  6. "entries": [
  7. {
  8. "type": "minecraft:alternatives",
  9. "children": [
  10. {
  11. "type": "minecraft:item",
  12. "conditions": [
  13. {
  14. "condition": "minecraft:match_tool",
  15. "predicate": {
  16. "enchantments": [
  17. {
  18. "enchantment": "minecraft:silk_touch",
  19. "levels": {
  20. "min": 1
  21. }
  22. }
  23. ]
  24. }
  25. }
  26. ],
  27. "name": "minecraft:melon"
  28. },
  29. {
  30. "type": "minecraft:item",
  31. "functions": [
  32. {
  33. "function": "minecraft:set_count",
  34. "count": {
  35. "min": 3.0,
  36. "max": 7.0,
  37. "type": "minecraft:uniform"
  38. }
  39. },
  40. {
  41. "function": "minecraft:apply_bonus",
  42. "enchantment": "minecraft:fortune",
  43. "formula": "minecraft:uniform_bonus_count",
  44. "parameters": {
  45. "bonusMultiplier": 1
  46. }
  47. },
  48. {
  49. "function": "minecraft:limit_count",
  50. "limit": {
  51. "max": 9
  52. }
  53. },
  54. {
  55. "function": "minecraft:explosion_decay"
  56. }
  57. ],
  58. "name": "minecraft:melon_slice"
  59. }
  60. ]
  61. }
  62. ]
  63. }
  64. ]
  65. }