melon.json 1.8 KB

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