Minecraft Data Packs / Quality of Life

Villager Breeding mobGriefing Patch

  • check_circle Functions
  • 16,309 views, 14 today
  • 1,252 downloads, 1 today
  • 37
  • 34
  • 6
terezridax avatar terezridax
Level 38 : Artisan Mage
30
This is a very simple datapack that allows villagers to breed even if mobGriefing is disabled on the world or server. By default, villagers are not allowed to pick up items when mobGriefing is disabled, which prevents them from breeding. This pack fixes that by giving villagers the items on the ground, rather than relying on the villager itself to pick them up.
To be given the items, the villager must be within 1 block of them, and the stack must be the exact amount required to induce willingness in the villager. While mobGriefing is disabled, villagers will still attempt to pick up their breeding items, which puts them in range automatically.
The amount of crops / breeding items of a type needed to induce willingness are listed below:
  • Bread: 3
  • Carrots: 12
  • Potatoes: 12
  • Beetroots: 12
A stack of 4 bread, as an example, will not be picked up, nor will a stack of 2 bread.
If a villager has already picked up the necessary amount of an item type, they will not pick up any more of that type, however, they will pick up a set of a different item type. For example, if a villager already has 12 carrots, they will be willing to breed and will no longer pick up any more carrots, though they will pick up 3 bread and/or 12 potatoes/beetroot.

For more information on how villager breeding works, see the wiki page. This datapack only slightly alters the last paragraph of the willingness section, all other information is completely unchanged.
CompatibilityMinecraft 1.17
toMinecraft 1.18
Tags

1 Update Logs

Update #1 : by terezridax 12/21/2021 7:04:49 pmDec 21st, 2021

Updated for 1.17 and 1.18. Will no longer work with 1.16 and below.

Create an account or sign in to comment.

1
12/23/2021 3:09 pm
Level 2 : Apprentice Architect
MrGrantuxa
MrGrantuxa avatar
Everything works, you have to wait a lot.
Thank you.
1
12/23/2021 12:27 pmhistory
Level 2 : Apprentice Architect
MrGrantuxa
MrGrantuxa avatar
Hey.
Not working in 1.17.1.
1
12/21/2021 8:31 pm
Level 35 : Artisan Princess
Kate1902019
Kate1902019 avatar
Mobs picking up items doesn't count as mob griefing, you stupid Mojang!

I wish there's a datapack that prevents mobs from accidently breaking crops. That's why I hate slimes in superflat world because they don't care when they break crops and village crops!
1
12/21/2021 1:17 pm
Level 1 : New Miner
Madmac82
Madmac82 avatar
Not working in 1.18 what can we do to fix it
1
12/21/2021 7:05 pm
Level 38 : Artisan Mage
terezridax
terezridax avatar
It should be fixed now, sorry about that!
1
04/03/2022 1:26 am
Level 2 : Apprentice Explorer
RoY7x
RoY7x avatar
Is this available for 1.18.2?
Planet Minecraft

Website

© 2010 - 2023
www.planetminecraft.com

Welcome