trade_a.json 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. {
  2. "type": "entity",
  3. "functions": [
  4. {
  5. "function": "set_nbt",
  6. "tag": "{TradeItem:1b}"
  7. }
  8. ],
  9. "pools": [
  10. {
  11. "rolls": 1,
  12. "entries": [
  13. {
  14. "type": "group",
  15. "children": [
  16. {
  17. "type": "item",
  18. "name": "stone",
  19. "functions": [
  20. {
  21. "function": "set_nbt",
  22. "tag": "{buy:{id:\"bowl\",Count:2}}"
  23. },
  24. {
  25. "function": "set_nbt",
  26. "tag":"{sell:{id:\"emerald\",Count:1}}"
  27. },
  28. {
  29. "function": "set_nbt",
  30. "tag":"{maxUses:2}"
  31. }
  32. ],
  33. "conditions": [
  34. {
  35. "condition": "inverted",
  36. "term": {
  37. "condition": "minecraft:entity_properties",
  38. "entity": "this",
  39. "predicate": {
  40. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:bowl\"}}]}}"
  41. }
  42. }
  43. }
  44. ]
  45. },
  46. {
  47. "type": "item",
  48. "name": "stone",
  49. "functions": [
  50. {
  51. "function": "set_nbt",
  52. "tag": "{buy:{id:\"wheat_seeds\",Count:1}}"
  53. },
  54. {
  55. "function": "set_nbt",
  56. "tag":"{sell:{id:\"emerald\",Count:1}}"
  57. },
  58. {
  59. "function": "set_nbt",
  60. "tag":"{maxUses:2}"
  61. }
  62. ],
  63. "conditions": [
  64. {
  65. "condition": "inverted",
  66. "term": {
  67. "condition": "minecraft:entity_properties",
  68. "entity": "this",
  69. "predicate": {
  70. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:wheat_seeds\"}}]}}"
  71. }
  72. }
  73. }
  74. ]
  75. },
  76. {
  77. "type": "item",
  78. "name": "stone",
  79. "functions": [
  80. {
  81. "function": "set_nbt",
  82. "tag": "{buy:{id:\"light_gray_dye\",Count:1}}"
  83. },
  84. {
  85. "function": "set_nbt",
  86. "tag":"{sell:{id:\"emerald\",Count:1}}"
  87. },
  88. {
  89. "function": "set_nbt",
  90. "tag":"{maxUses:2}"
  91. }
  92. ],
  93. "conditions": [
  94. {
  95. "condition": "inverted",
  96. "term": {
  97. "condition": "minecraft:entity_properties",
  98. "entity": "this",
  99. "predicate": {
  100. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:light_gray_dye\"}}]}}"
  101. }
  102. }
  103. }
  104. ]
  105. }
  106. ]
  107. },
  108. {
  109. "type": "item",
  110. "name": "stone",
  111. "functions": [
  112. {
  113. "function": "set_nbt",
  114. "tag": "{buy:{id:\"oak_boat\",Count:1}}"
  115. },
  116. {
  117. "function": "set_nbt",
  118. "tag":"{sell:{id:\"emerald\",Count:3}}"
  119. },
  120. {
  121. "function": "set_nbt",
  122. "tag":"{maxUses:2}"
  123. }
  124. ],
  125. "conditions": [
  126. {
  127. "condition": "inverted",
  128. "term": {
  129. "condition": "minecraft:entity_properties",
  130. "entity": "this",
  131. "predicate": {
  132. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:oak_boat\"}}]}}"
  133. }
  134. }
  135. }
  136. ]
  137. },
  138. {
  139. "type": "item",
  140. "name": "stone",
  141. "functions": [
  142. {
  143. "function": "set_nbt",
  144. "tag": "{buy:{id:\"oak_sapling\",Count:1}}"
  145. },
  146. {
  147. "function": "set_nbt",
  148. "tag":"{sell:{id:\"emerald\",Count:2}}"
  149. },
  150. {
  151. "function": "set_nbt",
  152. "tag":"{maxUses:2}"
  153. }
  154. ],
  155. "conditions": [
  156. {
  157. "condition": "inverted",
  158. "term": {
  159. "condition": "minecraft:entity_properties",
  160. "entity": "this",
  161. "predicate": {
  162. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:oak_sapling\"}}]}}"
  163. }
  164. }
  165. }
  166. ]
  167. },
  168. {
  169. "type": "item",
  170. "name": "stone",
  171. "functions": [
  172. {
  173. "function": "set_nbt",
  174. "tag": "{buy:{id:\"stripped_oak_log\",Count:1}}"
  175. },
  176. {
  177. "function": "set_nbt",
  178. "tag":"{sell:{id:\"emerald\",Count:2}}"
  179. },
  180. {
  181. "function": "set_nbt",
  182. "tag":"{maxUses:2}"
  183. }
  184. ],
  185. "conditions": [
  186. {
  187. "condition": "inverted",
  188. "term": {
  189. "condition": "minecraft:entity_properties",
  190. "entity": "this",
  191. "predicate": {
  192. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:stripped_oak_log\"}}]}}"
  193. }
  194. }
  195. }
  196. ]
  197. }
  198. ]
  199. }
  200. ]
  201. }