|
|
@@ -0,0 +1,201 @@
|
|
|
+{
|
|
|
+ "type": "entity",
|
|
|
+ "functions": [
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag": "{TradeItem:1b}"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "pools": [
|
|
|
+ {
|
|
|
+ "rolls": 1,
|
|
|
+ "entries": [
|
|
|
+ {
|
|
|
+ "type": "group",
|
|
|
+ "children": [
|
|
|
+ {
|
|
|
+ "type": "item",
|
|
|
+ "name": "stone",
|
|
|
+ "functions": [
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"bowl\",Count:2}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"emerald\",Count:1}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{maxUses:2}"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "conditions": [
|
|
|
+ {
|
|
|
+ "condition": "inverted",
|
|
|
+ "term": {
|
|
|
+ "condition": "minecraft:entity_properties",
|
|
|
+ "entity": "this",
|
|
|
+ "predicate": {
|
|
|
+ "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:bowl\"}}]}}"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item",
|
|
|
+ "name": "stone",
|
|
|
+ "functions": [
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"wheat_seeds\",Count:1}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"emerald\",Count:1}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{maxUses:2}"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "conditions": [
|
|
|
+ {
|
|
|
+ "condition": "inverted",
|
|
|
+ "term": {
|
|
|
+ "condition": "minecraft:entity_properties",
|
|
|
+ "entity": "this",
|
|
|
+ "predicate": {
|
|
|
+ "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:wheat_seeds\"}}]}}"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item",
|
|
|
+ "name": "stone",
|
|
|
+ "functions": [
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"light_gray_dye\",Count:1}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"emerald\",Count:1}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{maxUses:2}"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "conditions": [
|
|
|
+ {
|
|
|
+ "condition": "inverted",
|
|
|
+ "term": {
|
|
|
+ "condition": "minecraft:entity_properties",
|
|
|
+ "entity": "this",
|
|
|
+ "predicate": {
|
|
|
+ "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:light_gray_dye\"}}]}}"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item",
|
|
|
+ "name": "stone",
|
|
|
+ "functions": [
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"oak_boat\",Count:1}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"emerald\",Count:3}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{maxUses:2}"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "conditions": [
|
|
|
+ {
|
|
|
+ "condition": "inverted",
|
|
|
+ "term": {
|
|
|
+ "condition": "minecraft:entity_properties",
|
|
|
+ "entity": "this",
|
|
|
+ "predicate": {
|
|
|
+ "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:oak_boat\"}}]}}"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "item",
|
|
|
+ "name": "stone",
|
|
|
+ "functions": [
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag": "{buy:{id:\"oak_sapling\",Count:1}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"emerald\",Count:2}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{maxUses: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:\"stripped_oak_log\",Count:1}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{sell:{id:\"emerald\",Count:2}}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "function": "set_nbt",
|
|
|
+ "tag":"{maxUses:2}"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "conditions": [
|
|
|
+ {
|
|
|
+ "condition": "inverted",
|
|
|
+ "term": {
|
|
|
+ "condition": "minecraft:entity_properties",
|
|
|
+ "entity": "this",
|
|
|
+ "predicate": {
|
|
|
+ "nbt": "{Offers:{Recipes:[{buy:{id:\"minecraft:stripped_oak_log\"}}]}}"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}
|