Home›Java›Datapacks›Legendary Timed Spawner [Cobblemon]
Legendary Timed Spawner [Cobblemon]
DatapacksJava

Legendary Timed Spawner [Cobblemon]

Java data pack listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

by Quim201 · on Modrinth

⬇ Download on Modrinth
Legendary Timed Spawner [Cobblemon] — screenshot 1Legendary Timed Spawner [Cobblemon] — screenshot 2
Cobblemon Origins

Discord YouTube


⭐ Legendary Timed Spawner ⭐

Legendary Timed Spawner is a datapack for Cobblemon that adds a chance for Legendary Pokémon to spawn around you while you're exploring your world! The spawns are based on a timer and the biome you're in, so different Pokémon can spawn depending on where you are.

The spawn list also includes Mythical Pokémon, Ultra Beasts and some regional forms. Pokémon can spawn in the Overworld, Nether and End!

Warning (⚠️) This datapack does not add Pokémon to your game! It only makes Pokémon that are already available in Cobblemon or your installed add-ons spawn. If a Pokémon or form isn't available in your game, you'll need an add-on that adds it.

🎲 How does it work? 🎲

By default, the timer is set to 60 minutes and there is a 2% chance of a Pokémon spawning each time the timer rolls. Pokémon spawn at level 70. Keep in mind that the timer rolling doesn't mean a Pokémon will always spawn!

⚙️ Settings and commands ⚙️

The datapack is configurable meaning you can change some settings! Use /trigger lts_config to open the settings menu and click the buttons in chat:

You can also use these commands if you have permission to run functions:

Note: Players who can use the settings menu can change its settings and use the Force Spawn button. The settings apply to the whole world.

🌍 Biomes and spawning 🌍

The spawn list has 100 Pokémon entries, including Legendary Pokémon, Mythical Pokémon, Ultra Beasts and Galarian forms. Each Pokémon uses Cobblemon biome tags to determine where it can spawn.

The biome is checked at the selected player's position. The Pokémon is placed nearby, so it may appear across a biome boundary. Some modded biomes can display as Unknown in the spawn announcement.

📦 Installation 📦

  1. Install Cobblemon for Minecraft Java 1.21.1.
  2. Place the datapack ZIP in your world's datapacks folder.
  3. Enter the world and use /reload, or restart the world.
  4. Use /trigger lts_config to open the menu and adjust the settings.

📝 Change the Pokémon and Biomes 📝

Important Note: Modifying datapacks can be challenging for beginners. Make a backup before changing files! ⚠️

To customize the Pokémon, you'll need to have the datapack folder unzipped and placed in your world's datapacks folder. Use either the unzipped folder or the ZIP, not both. Once unzipped, navigate to the following location:

LegendaryTimedSpawner/data/lts/function/select_biome.mcfunction

Each Pokémon has a group of commands. For example, Articuno's entry looks like this:

scoreboard players set #eligible lts_data 0
execute if biome ~ ~ ~ #lts:reference/is_glacial run scoreboard players set #eligible lts_data 1
execute if biome ~ ~ ~ #lts:reference/is_snowy_taiga run scoreboard players set #eligible lts_data 1
execute if biome ~ ~ ~ #lts:reference/is_snowy_forest run scoreboard players set #eligible lts_data 1
execute if score #eligible lts_data matches 1 run data modify storage lts:data pool append value {"id":"articuno","n":"Articuno"}

The first line starts the check for that Pokémon. Each execute if biome line adds a biome group where it can be selected. Only one of those biome groups needs to match. The last line adds the Pokémon to the list of possible spawns.

For example, to add a Pokémon called Mew to the existing forest group, add these three lines as a separate group:

scoreboard players set #eligible lts_data 0
execute if biome ~ ~ ~ #lts:reference/is_forest run scoreboard players set #eligible lts_data 1
execute if score #eligible lts_data matches 1 run data modify storage lts:data pool append value {"id":"mew","n":"Mew"}

The available reference tags are in data/lts/tags/worldgen/biome/reference/. They refer to Cobblemon's biome tags, which may include modded biomes. After making changes, save the file and use /reload. If a Pokémon does not appear, check the ID, the tag spelling and that its whole group is intact.

Note: This datapack checks the biome, but it does not currently apply time, weather, underground, underwater or individual weight conditions.

⏰ Change the Default Timer and Chance ⏰

You can change the active timer and chance in-game using /trigger lts_config. The interval can be adjusted from 1 minute to 24 hours, and the chance can be adjusted from 0% to 100%.

To change the defaults used when these settings have not yet been saved, open:

LegendaryTimedSpawner/data/lts/function/load.mcfunction

Find these lines:

execute unless score #interval lts_data matches 1200..1728000 run scoreboard players set #interval lts_data 72000
execute unless score #chance lts_data matches 0..1000 run scoreboard players set #chance lts_data 20

Change the last number of the interval line to the number of ticks you want. There are normally 1,200 ticks per minute, so 36,000 is 30 minutes and 72,000 is 60 minutes. The chance is stored in tenths of a percent: 20 is 2%, 50 is 5%, and 1000 is 100%.

These defaults do not overwrite valid settings already saved in a world. Use the in-game menu to change an existing world's settings.

🎚️ Change the Pokémon Level 🎚️

To change the level of spawned Pokémon, open:

LegendaryTimedSpawner/data/lts/function/do_spawn.mcfunction

Find level=70 in the first line and replace 70 with the level you want, from 1 to 100. Save the file and use /reload.

💬 Change the Spawn Message 💬

The announcement is also in data/lts/function/do_spawn.mcfunction. Its text and colors are in the tellraw command on the second line. You can edit the text and color values, keeping the JSON punctuation intact.

Keep $(n) for the Pokémon's name and $(biome) for the biome. The selector containing lts_target shows the selected player's name. The first $ on each line is required for these function macros, so leave it in place. Save and use /reload after editing.

📍 Change the Spawn Distance 📍

To change how far away the datapack searches for a spawn position, open:

LegendaryTimedSpawner/data/lts/function/spawn_at_player.mcfunction

Find the two spreadplayers commands. In both commands, the 24 after ~ ~ 0 is the maximum search range. Change it in both lines to keep the Nether and other dimensions consistent. The Nether line also has under 128 to keep the search below the Nether roof. A suitable position may not always be found, especially on difficult terrain or near the End void.

Have some issues? You can join the Official Cobblemon discord server, search for 'Legendary Timed Spawner' and ask your questions there, or alternatively, you can DM me on discord.

JoaquimPedro201 project graphic Visit Quim201's Modrinth profile

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more