Minecraft Data Packs / Farming and Food

Respawning passive mobs

  • check_circle Functions
  • check_circle Predicates
  • 3,555 views, 3 today
  • 261 downloads, 0 today
  • 18
  • 9
  • 3
Spicyfiction's Avatar Spicyfiction
Level 19 : Journeyman Explorer
4
What this does :

This datapack makes changes to Pigs, Cows, Sheep and Chickens mimicking beta's animal mechanics

Horses, Rabbits, Polar bears, Fish , Foxes, Goats and Frogs aren't affected

Breeding for Pigs, Cows, Sheep and Chickens is disabled, feeding them will instead heal them

These mobs will also now despawn when 128 blocks away from a player unless they are named

The passive mob cap is set by default at 30 and increases for every player on the server up to a maximum of 128
The passive mob count isn't increased by named mobs


Spawning work like this :

Chooses a random spot withing a 257x257 square surrounding a random player
Goes to the highest block at that position
Checks if the block below is a grass block
Checks if the the block is between light levels 9 to 15
Chooses a mob from a list of 4
Checks if the the amount of passive mobs that exist is below the cap
Spawns the mob

Installation guide :

During world creation :

Download the datapack
During world creation, press the datapacks button
Drag the zip from your downloads folder to the minecraft window
Click on the datapack to move it from available to selected
Press done
Start your world

After world creation :

Navigate to your saves folder in .minecraft
Open the world folder of the world you want to install it in
Open the datapacks folder
Place the zip in said folder
Restart the world
CompatibilityMinecraft 1.17
toMinecraft 1.19
Tags

2 Update Logs

Update #2 : by Spicyfiction 08/14/2022 9:14:58 amAug 14th, 2022

Update 1.0.2 :

-Fixed an issue that caused the marker entity used to spawn mobs to not spawn when reloading away from x0 z0
-Fixed an issue that caused sheep to never spawn
LOAD MORE LOGS

Create an account or sign in to comment.

ThatCatWanderingTheGalaxy
08/16/2022 12:06 pm
Level 41 : Master Kitten
ThatCatWanderingTheGalaxy's Avatar
What about cats and wolves? Make them respawn?
1
Kate1902019
08/08/2022 4:38 am
Level 37 : Artisan Princess
Kate1902019's Avatar
Can you make a datapack that makes zombies and skeletons doesn't burn in the sun?
Since I want one for 1.18 - 1.19. Which is the ones I found are only up to 1.17.
1
Comradeee
08/07/2022 1:52 pm
Level 37 : Artisan Engineer
Comradeee's Avatar
This is one of the best things I have ever seen at PMC!
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome