trade_s.json 8.9 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:\"emerald\",Count:3}}"
  23. },
  24. {
  25. "function": "set_nbt",
  26. "tag":"{sell:{id:\"spider_spawn_egg\",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:[{sell:{id:\"minecraft:spider_spawn_egg\"}}]}}"
  41. }
  42. }
  43. }
  44. ]
  45. },
  46. {
  47. "type": "item",
  48. "name": "stone",
  49. "functions": [
  50. {
  51. "function": "set_nbt",
  52. "tag": "{buy:{id:\"emerald\",Count:3}}"
  53. },
  54. {
  55. "function": "set_nbt",
  56. "tag":"{sell:{id:\"skeleton_spawn_egg\",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:[{sell:{id:\"minecraft:skeleton_spawn_egg\"}}]}}"
  71. }
  72. }
  73. }
  74. ]
  75. },
  76. {
  77. "type": "item",
  78. "name": "stone",
  79. "functions": [
  80. {
  81. "function": "set_nbt",
  82. "tag": "{buy:{id:\"emerald\",Count:4}}"
  83. },
  84. {
  85. "function": "set_nbt",
  86. "tag":"{sell:{id:\"iron_ingot\",Count:3}}"
  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:[{sell:{id:\"minecraft:iron_ingot\"}}]}}"
  101. }
  102. }
  103. }
  104. ]
  105. },
  106. {
  107. "type": "item",
  108. "name": "stone",
  109. "functions": [
  110. {
  111. "function": "set_nbt",
  112. "tag": "{buy:{id:\"emerald\",Count:3}}"
  113. },
  114. {
  115. "function": "set_nbt",
  116. "tag":"{sell:{id:\"stone\",Count:5}}"
  117. },
  118. {
  119. "function": "set_nbt",
  120. "tag":"{maxUses:2}"
  121. }
  122. ],
  123. "conditions": [
  124. {
  125. "condition": "inverted",
  126. "term": {
  127. "condition": "minecraft:entity_properties",
  128. "entity": "this",
  129. "predicate": {
  130. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:stone\"}}]}}"
  131. }
  132. }
  133. }
  134. ]
  135. },
  136. {
  137. "type": "item",
  138. "name": "stone",
  139. "functions": [
  140. {
  141. "function": "set_nbt",
  142. "tag": "{buy:{id:\"emerald\",Count:3}}"
  143. },
  144. {
  145. "function": "set_nbt",
  146. "tag":"{sell:{id:\"oak_log\",Count:5}}"
  147. },
  148. {
  149. "function": "set_nbt",
  150. "tag":"{maxUses:2}"
  151. }
  152. ],
  153. "conditions": [
  154. {
  155. "condition": "inverted",
  156. "term": {
  157. "condition": "minecraft:entity_properties",
  158. "entity": "this",
  159. "predicate": {
  160. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:oak_log\"}}]}}"
  161. }
  162. }
  163. }
  164. ]
  165. },
  166. {
  167. "type": "item",
  168. "name": "stone",
  169. "functions": [
  170. {
  171. "function": "set_nbt",
  172. "tag": "{buy:{id:\"emerald\",Count:3}}"
  173. },
  174. {
  175. "function": "set_nbt",
  176. "tag":"{sell:{id:\"cobblestone\",Count:10}}"
  177. },
  178. {
  179. "function": "set_nbt",
  180. "tag":"{maxUses:2}"
  181. }
  182. ],
  183. "conditions": [
  184. {
  185. "condition": "inverted",
  186. "term": {
  187. "condition": "minecraft:entity_properties",
  188. "entity": "this",
  189. "predicate": {
  190. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:cobblestone\"}}]}}"
  191. }
  192. }
  193. }
  194. ]
  195. }
  196. ]
  197. }
  198. ]
  199. }
  200. ]
  201. }