Spawn Detail Presets

Revision as of 10:15, 26 July 2023 by Frank The Farmer (talk | contribs) (Created page with "{{TOC|right}} == Preface == The JSONs in the <code>spawn_detail_presets</code> folder create the <code>presets</code> that are used in Pokémon spawn files. Presets are simply a collection of <code>conditions</code>, <code>anticonditions</code>, and <code>contexts</code> that are bundled up into a new <code>preset</code> 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 ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 ruined_structure preset. Its conditions are very similar to being in a Stronghold. Hover over the underlined text to see more information.

{
   "condition": {
       "canSeeSky": false,
       "neededBaseBlocks": [
           "minecraft:cracked_stone_bricks",
           "minecraft:mossy_stone_bricks",
           "minecraft:chiseled_stone_bricks",
           "minecraft:mossy_cobblestone",
           "minecraft:iron_bars"
       ],
       "biomes": [
           "#cobblemon:is_overworld"
       ]
   },
   "anticondition": {
       "biomes": [
           "#cobblemon:is_abyss"
       ]
   }
}

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"
       ]
   }
}