Preface

The JSONs in the spawn_detail_presets folder create the presets that are used in Pokémon spawn files. Presets are simply a collection of conditions, anticonditions, and contexts that are bundled up into a new preset named after the JSON file name! They are a great way to make familiar scenes into a simple tag you can use when making spawns.

Preset Breakdown

You can make a preset as simple or complex as you like. The complexity of it depends on your understanding of spawn conditions, biomes, and your creativity. Almost all presets include one major condition. This condition is a list of blocks that the Pokémon can spawn on.

Here is a breakdown of the stronghold preset. Its conditions require you to be in a naturally generated stronghold with some block requirements. Hover over the underlined text to see more information.

{
   "condition": {
       "structures": [
           "minecraft:stronghold"
       ],
       "maxY": 62,
       "neededBaseBlocks": [
           "#minecraft:stone_bricks"
       ],
       "neededNearbyBlocks": [
           "minecraft:cracked_stone_bricks",
           "minecraft:mossy_stone_bricks"
       ]
   }
}


Preset Examples

Here are some simple examples of presets.

  • lava_surface - Allows Pokémon with this preset to spawn on top of lava
{
 "context": "surface",
 "condition": {
   "fluid": "#minecraft:lava"
 }
}


  • river - Allows Pokémon to spawn in river biomes that aren't covered in snow or ice.
{
 "condition": {
   "biomes": [ "#cobblemon:is_river" ]
 },
 "anticondition": {
   "biomes": [ "#cobblemon:is_freezing" ]
 }
}


  • redstone - Allows Pokémon to spawn near some redstone related blocks
{
   "condition": {
       "neededNearbyBlocks": [
           "minecraft:activator_rail",
           "minecraft:daylight_detector",
           "minecraft:detector_rail",
           "minecraft:dispenser",
           "minecraft:dropper",
           "minecraft:hopper",
           "minecraft:observer",
           "minecraft:piston",
           "minecraft:powered_comparator",
           "minecraft:powered_rail",
           "minecraft:powered_repeater",
           "minecraft:redstone_block",
           "minecraft:redstone_lamp",
           "minecraft:redstone_torch",
           "minecraft:redstone_wire",
           "minecraft:sticky_piston",
           "minecraft:unlit_redstone_torch",
           "minecraft:unpowered_comparator",
           "minecraft:unpowered_repeater",
           "#minecraft:redstone_ores",
           "#c:redstone_blocks",
           "#c:redstone_ores"
       ]
   }
}