trade_s.json 4.4 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:\"emerald\",Count:1}}"
  13. }, { "function": "set_nbt",
  14. "tag":"{sell:{id:\"coal_block\",Count:3}}"
  15. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  16. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:coal_block\"}}]}}"
  17. }}}]
  18. },
  19. {
  20. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  21. "tag": "{buy:{id:\"emerald\",Count:1}}"
  22. }, { "function": "set_nbt",
  23. "tag":"{sell:{id:\"oak_log\",Count:16}}"
  24. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  25. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:oak_log\"}}]}}"
  26. }}}]
  27. },
  28. {
  29. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  30. "tag": "{buy:{id:\"emerald\",Count:1}}"
  31. }, { "function": "set_nbt",
  32. "tag":"{sell:{id:\"cobblestone\",Count:32}}"
  33. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  34. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:cobblestone\"}}]}}"
  35. }}}]
  36. },
  37. {
  38. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  39. "tag": "{buy:{id:\"emerald\",Count:1}}"
  40. }, { "function": "set_nbt",
  41. "tag":"{sell:{id:\"raw_iron\",Count:8}}"
  42. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  43. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:raw_iron\"}}]}}"
  44. }}}]
  45. },
  46. {
  47. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  48. "tag": "{buy:{id:\"emerald\",Count:1}}"
  49. }, { "function": "set_nbt",
  50. "tag":"{sell:{id:\"iron_ingot\",Count:4}}"
  51. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  52. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:iron_ingot\"}}]}}"
  53. }}}]
  54. },
  55. {
  56. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  57. "tag": "{buy:{id:\"emerald\",Count:1}}"
  58. }, { "function": "set_nbt",
  59. "tag":"{sell:{id:\"diamond_ore\",Count:4}}"
  60. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  61. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:diamond_ore\"}}]}}"
  62. }}}]
  63. },
  64. {
  65. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  66. "tag": "{buy:{id:\"emerald\",Count:2}}"
  67. }, { "function": "set_nbt",
  68. "tag":"{sell:{id:\"nether_star\",Count:1,tag:{display:{Name:'{\"text\":\"1 积分\",\"color\":\"white\",\"italic\":false}'}}}}"
  69. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  70. "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:emerald\"},sell:{id:\"minecraft:nether_star\"}}]}}"
  71. }}}]
  72. },
  73. {
  74. "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
  75. "tag": "{buy:{id:\"emerald\",Count:3}}"
  76. }, { "function": "set_nbt",
  77. "tag":"{sell:{id:\"chest\",Count:1,tag:{BlockEntityTag:{LootTable:\"mini:diamond\",id:\"minecraft:chest\"},display:{Name:'{\"text\":\"地牢箱子\",\"color\":\"aqua\",\"italic\":false}'}}}}"
  78. }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
  79. "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:chest\"}}]}}"
  80. }}}]
  81. }
  82. ]}]
  83. }