|
|
@@ -3,220 +3,81 @@
|
|
|
"functions": [
|
|
|
{
|
|
|
"function": "set_nbt",
|
|
|
- "tag": "{TradeItem:1b}"
|
|
|
+ "tag": "{TradeItem:1b,maxUses:1}"
|
|
|
}
|
|
|
],
|
|
|
- "pools": [
|
|
|
+ "pools": [{"rolls": 1,"entries": [
|
|
|
{
|
|
|
- "rolls": 1,
|
|
|
- "entries": [
|
|
|
- {
|
|
|
- "type": "group",
|
|
|
- "children": [
|
|
|
- {
|
|
|
- "type": "item",
|
|
|
- "name": "stone",
|
|
|
- "functions": [
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag": "{buy:{id:\"diamond_hoe\",Count:1}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{sell:{id:\"emerald\",Count:14}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{maxUses:2}"
|
|
|
- }
|
|
|
- ],
|
|
|
- "conditions": [
|
|
|
- {
|
|
|
- "condition": "inverted",
|
|
|
- "term": {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:diamond_hoe\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "item",
|
|
|
- "name": "stone",
|
|
|
- "functions": [
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag": "{buy:{id:\"blast_furnace\",Count:1}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{sell:{id:\"nether_star\",Count:1,tag:{display:{Name:'{\"text\":\"得分 +1\",\"color\":\"white\",\"italic\":false}'}}}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{maxUses:2}"
|
|
|
- }
|
|
|
- ],
|
|
|
- "conditions": [
|
|
|
- {
|
|
|
- "condition": "inverted",
|
|
|
- "term": {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:blast_furnace\"},sell:{id:\"minecraft:nether_star\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "item",
|
|
|
- "name": "stone",
|
|
|
- "functions": [
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag": "{buy:{id:\"furnace_minecart\",Count:1}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{sell:{id:\"emerald\",Count:14}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{maxUses:2}"
|
|
|
- }
|
|
|
- ],
|
|
|
- "conditions": [
|
|
|
- {
|
|
|
- "condition": "inverted",
|
|
|
- "term": {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:furnace_minecart\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "item",
|
|
|
- "name": "stone",
|
|
|
- "functions": [
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag": "{buy:{id:\"wheat\",Count:1}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{sell:{id:\"emerald\",Count:13}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{maxUses:2}"
|
|
|
- }
|
|
|
- ],
|
|
|
- "conditions": [
|
|
|
- {
|
|
|
- "condition": "inverted",
|
|
|
- "term": {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:wheat\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:skeleton_spawn_egg\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "item",
|
|
|
- "name": "stone",
|
|
|
- "functions": [
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag": "{buy:{id:\"pufferfish\",Count:1}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{sell:{id:\"nether_star\",Count:2,tag:{display:{Name:'{\"text\":\"得分 +2\",\"color\":\"white\",\"italic\":false}'}}}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{maxUses:2}"
|
|
|
- }
|
|
|
- ],
|
|
|
- "conditions": [
|
|
|
- {
|
|
|
- "condition": "inverted",
|
|
|
- "term": {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:pufferfish\"},sell:{id:\"minecraft:nether_star\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:spider_spawn_egg\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "item",
|
|
|
- "name": "stone",
|
|
|
- "functions": [
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag": "{buy:{id:\"loom\",Count:1}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{sell:{id:\"emerald\",Count:15}}"
|
|
|
- },
|
|
|
- {
|
|
|
- "function": "set_nbt",
|
|
|
- "tag":"{maxUses:2}"
|
|
|
- }
|
|
|
- ],
|
|
|
- "conditions": [
|
|
|
- {
|
|
|
- "condition": "inverted",
|
|
|
- "term": {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:loom\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "condition": "minecraft:entity_properties",
|
|
|
- "entity": "this",
|
|
|
- "predicate": {
|
|
|
- "nbt": "{Offers:{Recipes:[{sell:{id:\"minecraft:spider_spawn_egg\"}}]}}"
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
+ "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"iron_chestplate\",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:iron_chestplate\"}}]}}"
|
|
|
+ }}}]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"vine\",Count:12}}"
|
|
|
+ }, { "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:vine\"}}]}}"
|
|
|
+ }}}]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"furnace_minecart\",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_minecart\"}}]}}"
|
|
|
+ }}}]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"diamond_boots\",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:diamond_boots\"}}]}}"
|
|
|
+ }}}]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"stone\",Count:64}}"
|
|
|
+ }, { "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"nether_star\",Count:1,tag:{display:{Name:'{\"text\":\"积分 +1\",\"color\":\"white\",\"italic\":false}'}}}}"
|
|
|
+ }], "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:\"diamond_leggings\",Count:1}}"
|
|
|
+ }, { "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"nether_star\",Count:1,tag:{display:{Name:'{\"text\":\"积分 +1\",\"color\":\"white\",\"italic\":false}'}}}}"
|
|
|
+ }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
|
|
|
+ "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:diamond_leggings\"}}]}}"
|
|
|
+ }}}]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"mossy_cobblestone\",Count:32}}"
|
|
|
+ }, { "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"nether_star\",Count:1,tag:{display:{Name:'{\"text\":\"积分 +1\",\"color\":\"white\",\"italic\":false}'}}}}"
|
|
|
+ }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
|
|
|
+ "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:mossy_cobblestone\"}}]}}"
|
|
|
+ }}}]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item", "name": "stone", "functions": [{ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"obsidian\",Count:1}}"
|
|
|
+ }, { "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"nether_star\",Count:1,tag:{display:{Name:'{\"text\":\"积分 +1\",\"color\":\"white\",\"italic\":false}'}}}}"
|
|
|
+ }], "conditions": [{ "condition": "inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": {
|
|
|
+ "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:obsidian\"}}]}}"
|
|
|
+ }}}]
|
|
|
}
|
|
|
- ]
|
|
|
+ ]}]
|
|
|
}
|