trade_d.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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:\"lava_bucket\",Count:1}}"
  23. },
  24. {
  25. "function": "set_nbt",
  26. "tag":"{sell:{id:\"emerald\",Count:9}}"
  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:lava_bucket\"}}]}}"
  41. }
  42. }
  43. }
  44. ]
  45. },
  46. {
  47. "type": "item",
  48. "name": "stone",
  49. "functions": [
  50. {
  51. "function": "set_nbt",
  52. "tag": "{buy:{id:\"jukebox\",Count:1}}"
  53. },
  54. {
  55. "function": "set_nbt",
  56. "tag":"{sell:{id:\"emerald\",Count:11}}"
  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:jukebox\"}}]}}"
  71. }
  72. }
  73. }
  74. ]
  75. },
  76. {
  77. "type": "item",
  78. "name": "stone",
  79. "functions": [
  80. {
  81. "function": "set_nbt",
  82. "tag": "{buy:{id:\"flint_and_steel\",Count:1}}"
  83. },
  84. {
  85. "function": "set_nbt",
  86. "tag":"{sell:{id:\"emerald\",Count:9}}"
  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:flint_and_steel\"}}]}}"
  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:\"lantern\",Count:1}}"
  115. },
  116. {
  117. "function": "set_nbt",
  118. "tag":"{sell:{id:\"emerald\",Count:4}}"
  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:lantern\"}}]}}"
  133. }
  134. }
  135. }
  136. ]
  137. },
  138. {
  139. "type": "item",
  140. "name": "stone",
  141. "functions": [
  142. {
  143. "function": "set_nbt",
  144. "tag": "{buy:{id:\"mossy_stone_bricks\",Count:2}}"
  145. },
  146. {
  147. "function": "set_nbt",
  148. "tag":"{sell:{id:\"emerald\",Count:6}}"
  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:mossy_stone_bricks\"}}]}}"
  163. }
  164. }
  165. }
  166. ]
  167. },
  168. {
  169. "type": "item",
  170. "name": "stone",
  171. "functions": [
  172. {
  173. "function": "set_nbt",
  174. "tag": "{buy:{id:\"light_blue_dye\",Count:1}}"
  175. },
  176. {
  177. "function": "set_nbt",
  178. "tag":"{sell:{id:\"emerald\",Count:6}}"
  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:light_blue_dye\"}}]}}"
  193. }
  194. }
  195. },
  196. {
  197. "condition": "minecraft:entity_properties",
  198. "entity": "this",
  199. "predicate": {
  200. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:skeleton_spawn_egg\"}}]}}"
  201. }
  202. }
  203. ]
  204. },
  205. {
  206. "type": "item",
  207. "name": "stone",
  208. "functions": [
  209. {
  210. "function": "set_nbt",
  211. "tag": "{buy:{id:\"white_concrete_powder\",Count:4}}"
  212. },
  213. {
  214. "function": "set_nbt",
  215. "tag":"{sell:{id:\"emerald\",Count:10}}"
  216. },
  217. {
  218. "function": "set_nbt",
  219. "tag":"{maxUses:2}"
  220. }
  221. ],
  222. "conditions": [
  223. {
  224. "condition": "inverted",
  225. "term": {
  226. "condition": "minecraft:entity_properties",
  227. "entity": "this",
  228. "predicate": {
  229. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:white_concrete_powder\"}}]}}"
  230. }
  231. }
  232. },
  233. {
  234. "condition": "minecraft:entity_properties",
  235. "entity": "this",
  236. "predicate": {
  237. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:skeleton_spawn_egg\"}}]}}"
  238. }
  239. }
  240. ]
  241. }
  242. ]
  243. }
  244. ]
  245. }