| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- {
- "type": "entity",
- "functions": [
- {
- "function": "set_nbt",
- "tag": "{TradeItem:1b,maxUses:1}"
- }
- ],
- "pools": [{"rolls": 1,"entries": [
- {
- "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
- "tag": "{buy:{id:\"stone_axe\",Count:1}}"
- }, { "function": "set_nbt",
- "tag":"{sell:{id:\"emerald\",Count:1}}"
- }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:stone_axe\"}}]}}"
- }}}]
- },
- {
- "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
- "tag": "{buy:{id:\"torch\",Count:4}}"
- }, { "function": "set_nbt",
- "tag":"{sell:{id:\"emerald\",Count:1}}"
- }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:torch\"}}]}}"
- }}}]
- },
- {
- "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
- "tag": "{buy:{id:\"stone\",Count:2}}"
- }, { "function": "set_nbt",
- "tag":"{sell:{id:\"emerald\",Count:1}}"
- }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:stone\"}}]}}"
- }}}]
- },
- {
- "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
- "tag": "{buy:{id:\"furnace\",Count:1}}"
- }, { "function": "set_nbt",
- "tag":"{sell:{id:\"emerald\",Count:1}}"
- }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:furnace\"}}]}}"
- }}}]
- },
- {
- "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
- "tag": "{buy:{id:\"coal\",Count:1}}"
- }, { "function": "set_nbt",
- "tag":"{sell:{id:\"emerald\",Count:1}}"
- }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:coal\"}}]}}"
- }}}]
- },
- {
- "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
- "tag": "{buy:{id:\"oak_stairs\",Count:8}}"
- }, { "function": "set_nbt",
- "tag":"{sell:{id:\"emerald\",Count:1}}"
- }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:oak_stairs\"}}]}}"
- }}}]
- },
- {
- "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
- "tag": "{buy:{id:\"oak_sapling\",Count:3}}"
- }, { "function": "set_nbt",
- "tag":"{sell:{id:\"emerald\",Count:2}}"
- }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:oak_sapling\"}}]}}"
- }}}]
- },
- {
- "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
- "tag": "{buy:{id:\"mossy_cobblestone\",Count:8}}"
- }, { "function": "set_nbt",
- "tag":"{sell:{id:\"emerald\",Count:2}}"
- }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:mossy_cobblestone\"}}]}}"
- }}}]
- }
- ]}]
- }
|