Minecraft Data Packs / Quality of Life

Villager Breeding mobGriefing Patch

  • check_circle Functions
  • 17,488 views, 8 today
  • 1,331 downloads, 0 today
  • 39
  • 35
  • 6
terezridax's Avatar terezridax
Level 39 : 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.

MrGrantuxa
12/23/2021 3:09 pm
Level 2 : Apprentice Architect
MrGrantuxa's Avatar
Everything works, you have to wait a lot.
Thank you.
1
MrGrantuxa
12/23/2021 12:27 pm
Level 2 : Apprentice Architect
history
MrGrantuxa's Avatar
Hey.
Not working in 1.17.1.
1
Kate1902019
12/21/2021 8:31 pm
Level 37 : Artisan Princess
Kate1902019's 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
Madmac82
12/21/2021 1:17 pm
Level 1 : New Miner
Madmac82's Avatar
Not working in 1.18 what can we do to fix it
1
terezridax
12/21/2021 7:05 pm
Level 39 : Artisan Mage
terezridax's Avatar
It should be fixed now, sorry about that!
1
RoY7x
04/03/2022 1:26 am
Level 2 : Apprentice Explorer
RoY7x's Avatar
Is this available for 1.18.2?
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome