Edit

Share via


piglin barter

{
    "pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "item",
                    "name": "minecraft:book",
                    "weight": 5,
                    "functions": [
                        {
                            "function": "specific_enchants",
                            "enchants": [
                                {
                                    "id": "soul_speed",
                                    "level": [1, 3]
                                }
                            ]
                        }
                    ]
                },
                {
                  "type": "item",
                  "name": "minecraft:iron_boots",
                  "weight": 8,
                    "functions": [
                        {
                            "function": "specific_enchants",
                            "enchants": [
                                {
                                    "id": "soul_speed",
                                    "level": [1, 3]
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:potion",
                    "weight": 8,
                    "functions": [
                        {
                            "function": "set_data",
                            "data": 12
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:splash_potion",
                    "weight": 8,
                    "functions": [
                        {
                            "function": "set_data",
                            "data": 12
                        }
                    ]
                },                
                {
                    "type": "item",
                    "name": "minecraft:potion",
                    "weight": 10,
                    "functions": [
                        {
                            "function": "set_data",
                            "data": 0
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:iron_nugget",
                    "weight": 10,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 10,
                                "max": 36
                            }
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:ender_pearl",
                    "weight": 10,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 2,
                                "max": 4
                            }
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:string",
                    "weight": 20,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 3,
                                "max": 9
                            }
                        }
                    ]
                }, 
                {
                    "type": "item",
                    "name": "minecraft:quartz",
                    "weight": 20,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 5,
                                "max": 12
                            }
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:obsidian",
                    "weight": 40
                }, 
                {
                    "type": "item",
                    "name": "minecraft:crying_obsidian",
                    "weight": 40,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 1,
                                "max": 3
                            }
                        }
                    ]
                },   
                {
                    "type": "item",
                    "name": "minecraft:fireball",
                    "weight": 40
                },
                {
                    "type": "item",
                    "name": "minecraft:leather",
                    "weight": 40,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 2,
                                "max": 4
                            }
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:soul_sand",
                    "weight": 40,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 2,
                                "max": 8
                            }
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:netherbrick",
                    "weight": 40,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 2,
                                "max": 8
                            }
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:arrow",
                    "weight": 40,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 6,
                                "max": 12
                            }
                        }
                    ]
                },     
                {
                    "type": "item",
                    "name": "minecraft:gravel",
                    "weight": 40,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 8,
                                "max": 16
                            }
                        }
                    ]
                },
                {
                    "type": "item",
                    "name": "minecraft:blackstone",
                    "weight": 40,
                    "functions": [
                        {
                            "function": "set_count",
                            "count": {
                                "min": 8,
                                "max": 16
                            }
                        }
                    ]
                }
            ]
        }
    ]
}