• 0

    posted a message on Updating Pixelmon GO Pokemon Egg Pools, could use some help with formatting the code

     I'm upgrading from 12.2 to 16.5 and the format for the pokemon egg pool config is confusing me a bit. For 12.2 I made long lists like:

     

    {

     

    data: [

     

    {

     

    key: "2 km",

     

    pokemon: [

     

     

    Caterpie:1-20,

     

    Pidgey:1-20,

     

    Rattata:1-20,

     

    Spearow:1-20,

     

    Ekans:1-20,

     

    Sandshrew:1-20,

     

    Nidoran:1-20,

     

    Zubat:1-20,

    ]

    },

     

    but with the new format I keep getting errors.

     

    If this is the original code:

     

    [

    {

    "name": "fire",

    "pokemon": [

    {

    "name": "vulpix",

    "min": 1,

    "max": 50,

    "exactLevel": false,

    "shinyChance": 2.44140625E-4

    }

    ],

    "commands": [

    {

    "commands": [

    "give @p minecraft:apple",

    "give @p minecraft:diamond"

    ],

    "weight": 1

    },

    {

    "commands": [

    "effect give @p minecraft:haste"

    ],

    "weight": 5

    }

    ],

    "singlePool": false,

    "pokemonWeight": 1,

    "commandWeight": 1

    },

     

    Would the updated code then be:

     

    [

    {

    "name": "2km",

    "pokemon": [

    {

    "name": "vulpix",

    "min": 1,

    "max": 20,

    "exactLevel": false,

    "shinyChance": 2.44140625E-4,

     

    "name": "caterpie",

    "min": 1,

    "max": 20,

    "exactLevel": false,

    "shinyChance": 2.44140625E-4,

     

    "name": "metapod",

    "min": 1,

    "max": 20,

    "exactLevel": false,

    "shinyChance": 2.44140625E-4,

    }

    ],

    "commands": [

    {

    "commands": [

    "give @p minecraft:apple",

    "give @p minecraft:diamond"

    ],

    "weight": 1

    },

    {

    "commands": [

    "effect give @p minecraft:haste"

    ],

    "weight": 5

    }

    ],

    "singlePool": false,

    "pokemonWeight": 1,

    "commandWeight": 1

    },

    Posted in: Java Mods
  • To post a comment, please or register a new account.