Skip to content

Instantly share code, notes, and snippets.

@MoeBoy76
Created December 3, 2016 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MoeBoy76/854b59814218c4ee61f7efa609b4bbc8 to your computer and use it in GitHub Desktop.
Save MoeBoy76/854b59814218c4ee61f7efa609b4bbc8 to your computer and use it in GitHub Desktop.
example pokeball loot_table roll
{
"rolls": 2,
"entries": [
{
"type": "item",
"name": "pixelmon:poke_ball",
"weight": 10,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1,
"max": 5
}
}
]
}
]
}
@upinout
Copy link

upinout commented Dec 3, 2016

{

"pools": [

    {

        "conditions": [

            {

                "condition": "random_chance",

                "chance": 0.5

            }

        ],

        "rolls": {

            "min": 1,

            "max": 2

        },

        "entries": [

            {

                "type": "item",

                "name": "pixelmon:great_ball",

                "weight": 2,

                "functions": [

                    {

                        "function": "minecraft:set_count",

                        "count": {

                            "min": 1,

                            "max": 8

                        }

                    }

                ]

            },

            {

                "type": "item",

                "name": "pixelmon:super_potion",

                "weight": 1

            },

            {

                "type": "item",

                "name": "pixelmon:hyper_potion",

                "weight": 1

            }

        ]

    }

]

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment