Minecraft Data Packs / Other

Repopulate - (Re)Spawns Animals in Custom Maps

  • check_circle Advancements
  • check_circle Functions
  • 1,816 views, 7 today
  • 147 downloads, 2 today
  • 20
  • 17
imalittlhigh's Avatar imalittlhigh
Level 61 : High Grandmaster Sweetheart
109
Want to play a Custom Map but there are no Animals spawning?

Normally Animals are spawned with world generation (doesnt happen with custom maps).
That means with Custom Maps you have to rely on natural respawning (very slow and mobcap affected).

This Datapack ensures that there are at least 6 Animals in a 160 Block radius of the player.
From my playtests you cant notice the animals being spawned in (fells like normal world generation spawning).


[​This Datapack uses Macros, so cant be used / ported in versions pre 1.20.3]



Use GitHub for different game versions if available
Repopulate - (Re)Spawns Animals in Custom Maps Minecraft Data Pack

main will always be the most up to date version.
If you want in dev versions, feel free to download the in_dev. (might not have this exact name)

If there are multiple versions, the older one will work up to the newer one.
[​If there is one "1.19.2" and one "1.20" the "1.19.2" will work from version 1.19.2 until version 1.20]




Technical Info
If you want debug notifications (see what the pack is doing) do /tag add @s repo.debug
The pack will tell you what it does if anything happens ^^

Repopulate - (Re)Spawns Animals in Custom Maps Minecraft Data Pack



How the spawning works:

It checks if there are at least 6 Animals in a 160 Block radius around the player.
If there arent enough, it will spreadplayer a marker, check what biome that marker is in, randomize what animal (of the ones that can spawn in that biome) will be spawned and how many (1-4) will be spawned.
These checks happen every 30 seconds for every player (altho the spawning execution is offset for every player, so if player 1 spawns enough animals, player 2 [​close to player 1] wont spawn any animals because there are at least 6 in the area already)

If a biome that is not vanilla or doesnt spawn mobs is detected, no mob will be spawned.
(Only Overworld biomes are supported)


Supported Biomes:
- Forest
- Plains
- Bamboo Jungle
- Beach
- Birch Forest
- Cherry Grove
- Dark Forest
- Desert
- Flower Forest
- Grove
- Ice Spikes
- Jagged Peaks
- Jungle
- Mangrove Swamp
- Meadow
- Mushroom Fields
- Old Growth Birch Forest- Old Growth Pine Taiga
- Old Growth Spruce Taiga
- Savanna Plateau
- Savanna
- Snowy Plains
- Snowy Slopes
- Snowy Taiga
- Sparse Jungle
- Sunflower Plains
- Swamp
- Taiga
- Windswept Forest
- Windswept Gravelly Hills
- Windswept Hills
- Windswept Savanna




All of my Datapacks are free to use, modify and rip apart.
If you add them to a pack or something of yours, please let me know so i can check it out.

I do not condone charging money for Datapacks.
You may not use any of my Datapacks for monetary gain.
(except if you are creating content with them [​like YouTube videos])
CompatibilityMinecraft 1.20
Tags

1 Update Logs

Update #1 : by imalittlhigh 01/21/2024 4:39:25 amJan 21st

added vanilla spawn weight to animals depending on biome

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome