tall_grass.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. "items": [
  18. "minecraft:shears"
  19. ]
  20. }
  21. }
  22. ],
  23. "functions": [
  24. {
  25. "function": "minecraft:set_count",
  26. "count": 2.0,
  27. "add": false
  28. }
  29. ],
  30. "name": "minecraft:grass"
  31. },
  32. {
  33. "type": "minecraft:item",
  34. "conditions": [
  35. {
  36. "condition": "minecraft:survives_explosion"
  37. },
  38. {
  39. "condition": "minecraft:random_chance",
  40. "chance": 0.125
  41. }
  42. ],
  43. "name": "minecraft:wheat_seeds"
  44. }
  45. ]
  46. }
  47. ],
  48. "conditions": [
  49. {
  50. "condition": "minecraft:block_state_property",
  51. "block": "minecraft:tall_grass",
  52. "properties": {
  53. "half": "lower"
  54. }
  55. },
  56. {
  57. "condition": "minecraft:location_check",
  58. "predicate": {
  59. "block": {
  60. "blocks": [
  61. "minecraft:tall_grass"
  62. ],
  63. "state": {
  64. "half": "upper"
  65. }
  66. }
  67. },
  68. "offsetY": 1
  69. }
  70. ]
  71. },
  72. {
  73. "rolls": 1.0,
  74. "bonus_rolls": 0.0,
  75. "entries": [
  76. {
  77. "type": "minecraft:alternatives",
  78. "children": [
  79. {
  80. "type": "minecraft:item",
  81. "conditions": [
  82. {
  83. "condition": "minecraft:match_tool",
  84. "predicate": {
  85. "items": [
  86. "minecraft:shears"
  87. ]
  88. }
  89. }
  90. ],
  91. "functions": [
  92. {
  93. "function": "minecraft:set_count",
  94. "count": 2.0,
  95. "add": false
  96. }
  97. ],
  98. "name": "minecraft:grass"
  99. },
  100. {
  101. "type": "minecraft:item",
  102. "conditions": [
  103. {
  104. "condition": "minecraft:survives_explosion"
  105. },
  106. {
  107. "condition": "minecraft:random_chance",
  108. "chance": 0.125
  109. }
  110. ],
  111. "name": "minecraft:wheat_seeds"
  112. }
  113. ]
  114. }
  115. ],
  116. "conditions": [
  117. {
  118. "condition": "minecraft:block_state_property",
  119. "block": "minecraft:tall_grass",
  120. "properties": {
  121. "half": "upper"
  122. }
  123. },
  124. {
  125. "condition": "minecraft:location_check",
  126. "predicate": {
  127. "block": {
  128. "blocks": [
  129. "minecraft:tall_grass"
  130. ],
  131. "state": {
  132. "half": "lower"
  133. }
  134. }
  135. },
  136. "offsetY": -1
  137. }
  138. ]
  139. }
  140. ]
  141. }