trade_e.json 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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:\"diamond_hoe\",Count:1}}"
  23. },
  24. {
  25. "function": "set_nbt",
  26. "tag":"{sell:{id:\"emerald\",Count:14}}"
  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:diamond_hoe\"}}]}}"
  41. }
  42. }
  43. }
  44. ]
  45. },
  46. {
  47. "type": "item",
  48. "name": "stone",
  49. "functions": [
  50. {
  51. "function": "set_nbt",
  52. "tag": "{buy:{id:\"blast_furnace\",Count:1}}"
  53. },
  54. {
  55. "function": "set_nbt",
  56. "tag":"{sell:{id:\"nether_star\",Count:1,tag:{display:{Name:'{\"text\":\"得分 +1\",\"color\":\"white\",\"italic\":false}'}}}}"
  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:blast_furnace\"},sell:{id:\"minecraft:nether_star\"}}]}}"
  71. }
  72. }
  73. }
  74. ]
  75. },
  76. {
  77. "type": "item",
  78. "name": "stone",
  79. "functions": [
  80. {
  81. "function": "set_nbt",
  82. "tag": "{buy:{id:\"furnace_minecart\",Count:1}}"
  83. },
  84. {
  85. "function": "set_nbt",
  86. "tag":"{sell:{id:\"emerald\",Count:14}}"
  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:furnace_minecart\"}}]}}"
  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:\"wheat\",Count:1}}"
  115. },
  116. {
  117. "function": "set_nbt",
  118. "tag":"{sell:{id:\"emerald\",Count:13}}"
  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:wheat\"}}]}}"
  133. }
  134. }
  135. },
  136. {
  137. "condition": "minecraft:entity_properties",
  138. "entity": "this",
  139. "predicate": {
  140. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:skeleton_spawn_egg\"}}]}}"
  141. }
  142. }
  143. ]
  144. },
  145. {
  146. "type": "item",
  147. "name": "stone",
  148. "functions": [
  149. {
  150. "function": "set_nbt",
  151. "tag": "{buy:{id:\"pufferfish\",Count:1}}"
  152. },
  153. {
  154. "function": "set_nbt",
  155. "tag":"{sell:{id:\"nether_star\",Count:2,tag:{display:{Name:'{\"text\":\"得分 +2\",\"color\":\"white\",\"italic\":false}'}}}}"
  156. },
  157. {
  158. "function": "set_nbt",
  159. "tag":"{maxUses:2}"
  160. }
  161. ],
  162. "conditions": [
  163. {
  164. "condition": "inverted",
  165. "term": {
  166. "condition": "minecraft:entity_properties",
  167. "entity": "this",
  168. "predicate": {
  169. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:pufferfish\"},sell:{id:\"minecraft:nether_star\"}}]}}"
  170. }
  171. }
  172. },
  173. {
  174. "condition": "minecraft:entity_properties",
  175. "entity": "this",
  176. "predicate": {
  177. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:spider_spawn_egg\"}}]}}"
  178. }
  179. }
  180. ]
  181. },
  182. {
  183. "type": "item",
  184. "name": "stone",
  185. "functions": [
  186. {
  187. "function": "set_nbt",
  188. "tag": "{buy:{id:\"loom\",Count:1}}"
  189. },
  190. {
  191. "function": "set_nbt",
  192. "tag":"{sell:{id:\"emerald\",Count:15}}"
  193. },
  194. {
  195. "function": "set_nbt",
  196. "tag":"{maxUses:2}"
  197. }
  198. ],
  199. "conditions": [
  200. {
  201. "condition": "inverted",
  202. "term": {
  203. "condition": "minecraft:entity_properties",
  204. "entity": "this",
  205. "predicate": {
  206. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:loom\"}}]}}"
  207. }
  208. }
  209. },
  210. {
  211. "condition": "minecraft:entity_properties",
  212. "entity": "this",
  213. "predicate": {
  214. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:spider_spawn_egg\"}}]}}"
  215. }
  216. }
  217. ]
  218. }
  219. ]
  220. }
  221. ]
  222. }