trade_b.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:\"stone_axe\",Count:1}}"
  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:stone_axe\"}}]}}"
  17. }}}]
  18. },
  19. {
  20. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  21. "tag": "{buy:{id:\"torch\",Count:4}}"
  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:torch\"}}]}}"
  26. }}}]
  27. },
  28. {
  29. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  30. "tag": "{buy:{id:\"stone\",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:stone\"}}]}}"
  35. }}}]
  36. },
  37. {
  38. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  39. "tag": "{buy:{id:\"furnace\",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:furnace\"}}]}}"
  44. }}}]
  45. },
  46. {
  47. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  48. "tag": "{buy:{id:\"coal\",Count:1}}"
  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:coal\"}}]}}"
  53. }}}]
  54. },
  55. {
  56. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  57. "tag": "{buy:{id:\"oak_stairs\",Count:8}}"
  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:oak_stairs\"}}]}}"
  62. }}}]
  63. },
  64. {
  65. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  66. "tag": "{buy:{id:\"oak_sapling\",Count:3}}"
  67. }, { "function": "set_nbt",
  68. "tag":"{sell:{id:\"emerald\",Count:2}}"
  69. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  70. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:oak_sapling\"}}]}}"
  71. }}}]
  72. },
  73. {
  74. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  75. "tag": "{buy:{id:\"mossy_cobblestone\",Count:8}}"
  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:mossy_cobblestone\"}}]}}"
  80. }}}]
  81. }
  82. ]}]
  83. }