trade_a.json 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "type": "entity",
  3. "functions": [
  4. {
  5. "function": "set_nbt",
  6. "tag": "{TradeItem:1b,maxUses:1}"
  7. }
  8. ],
  9. "pools": [{"rolls": 1,"entries": [
  10. {
  11. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  12. "tag": "{buy:{id:\"bowl\",Count:4}}"
  13. }, { "function": "set_nbt",
  14. "tag":"{sell:{id:\"emerald\",Count:1}}"
  15. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  16. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:bowl\"}}]}}"
  17. }}}]
  18. },
  19. {
  20. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  21. "tag": "{buy:{id:\"wheat_seeds\",Count:2}}"
  22. }, { "function": "set_nbt",
  23. "tag":"{sell:{id:\"emerald\",Count:1}}"
  24. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  25. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:wheat_seeds\"}}]}}"
  26. }}}]
  27. },
  28. {
  29. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  30. "tag": "{buy:{id:\"light_gray_dye\",Count:2}}"
  31. }, { "function": "set_nbt",
  32. "tag":"{sell:{id:\"emerald\",Count:1}}"
  33. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  34. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:light_gray_dye\"}}]}}"
  35. }}}]
  36. },
  37. {
  38. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  39. "tag": "{buy:{id:\"oak_boat\",Count:1}}"
  40. }, { "function": "set_nbt",
  41. "tag":"{sell:{id:\"emerald\",Count:1}}"
  42. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  43. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:oak_boat\"}}]}}"
  44. }}}]
  45. },
  46. {
  47. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  48. "tag": "{buy:{id:\"oak_fence\",Count:3}}"
  49. }, { "function": "set_nbt",
  50. "tag":"{sell:{id:\"emerald\",Count:1}}"
  51. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  52. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:oak_fence\"}}]}}"
  53. }}}]
  54. },
  55. {
  56. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  57. "tag": "{buy:{id:\"dirt\",Count:6}}"
  58. }, { "function": "set_nbt",
  59. "tag":"{sell:{id:\"emerald\",Count:1}}"
  60. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  61. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:dirt\"}}]}}"
  62. }}}]
  63. },
  64. {
  65. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  66. "tag": "{buy:{id:\"flint\",Count:1}}"
  67. }, { "function": "set_nbt",
  68. "tag":"{sell:{id:\"emerald\",Count:1}}"
  69. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  70. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:flint\"}}]}}"
  71. }}}]
  72. },
  73. {
  74. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  75. "tag": "{buy:{id:\"gravel\",Count:6}}"
  76. }, { "function": "set_nbt",
  77. "tag":"{sell:{id:\"emerald\",Count:2}}"
  78. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  79. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:gravel\"}}]}}"
  80. }}}]
  81. }
  82. ]}]
  83. }