Minecraft Data Packs / Quality of Life

Attract Villagers - Make them follow your player or a track of emerald!

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • 31,225 views, 33 today
  • 9,263 downloads, 10 today
  • 193
  • 213
  • 41
KawaMood's Avatar KawaMood
Level 74 : Legendary Programmer
652
Attract Villagers - V.2.1.4

Two survival-friendly ways to easily relocate your villagers.
No more long temporary minecart tracks or troubles with boats on land!

The main download button is for MC 1.20.2 to 1.20.4 only. If you are on a lower version, see the "Download for other versions" section below.




Features :

  • Introduce two modes to move villagers: the Follow mode or the Pickup mode.
  • If you want to exclude specific villagers from this attractive mechanic, you can add those entities the tag "pk_vfpl_exclude".
  • Villagers with the data {NoAI:1b} will also be ignored by this mechanic.

Follow Mode:

The Follow mode is the one by default. If you have switched to the Pickup mode and want to get it back, you can still toggle it using the command:
function pk_vfpl:commands/mode_set_follow
How it works:
  • Hold an emerald blocks in main hand or off hand to make the villagers and wandering traders follow you instantly.
  • Those entities will be attracted in a radius of 10 blocks around the player, until it doesn't hold the emerald block anymore, or go too far from them (more than 10 blocks away).
  • You can easily add or remove items that attract villagers in the item's tag located in "data/pk_vfpl/tags/items/follow_mode_attractive.json".

Pickup Mode:

The Pickup mode is an alternative mode if you find that the Follow mode is to "free" to use (thanks to Blockimendious for the idea).
You can switch to this mode using the command:
function pk_vfpl:commands/mode_set_pickup
How it works:
  • Like Piglins with golden items, villagers and wandering traders will rush towards emeralds being on the ground in a radius of 10 blocks, and will eventually pick them up. In this way, you can set up a track of emeralds to attract them.
  • When a villager pick an emerald, it will admire its catch during two seconds before getting back to its business or searching another emerald around.
  • If you drop a stack of several emeralds (more than one emerald) the villagers will only pick them up one by one, waiting two seconds before picking up the next one. So don't worry if you missed and drop a full stack of emeralds at once!



Report an issue

Attract Villagers - Make them follow your player or a track of emerald! Minecraft Data Pack Preferably join our Discord Server and create a thread in the dedicated channel for data pack issues.
Otherwise, you can do it directly in the comments section.



License

This data packs is protected by the CC BY-NC-SA 4.0 license.

You're free to share and adapt this content under the following terms:
  • Attribution (BY) — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • NonCommercial (NC) — You may not use the material for commercial purposes.
  • ShareAlike (SA) — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.




Download for other versions

For MC 1.19: Download
For MC 1.20 to 1.20.1: Download
For MC 1.20.2 or more: Download




How to install?

Please refer to the Planet Minecraft tutorial to know how to install a data pack : How to Install Minecraft Data Packs.
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

5 Update Logs

V.2.1.3 - 23 Jan. 2023 : by KawaMood 01/23/2023 3:47:29 pmJan 23rd, 2023

- Make villagers having any vehicle (boat, minecart, or anything else) ignore attractive items.
- Prevent guiding entities to be stuck in vehicles, still not fixed on Paper : will be fixed with another data pack's update when the 1.19.4 version of Minecraft will be released.
- Score checks performances improvements.
LOAD MORE LOGS

Create an account or sign in to comment.

1
02/06/2024 4:24 pmhistory
Level 50 : Grandmaster Button Pusher
Igor Tio
Igor Tio's Avatar
Pretty useful datapack)

But I think it would be more interesting if the villagers only followed if you gave them a block. Otherwise, you can take away an entire village using only 9 emeralds. Just an idea ;-)
1
10/01/2023 2:37 am
Level 1 : New Crafter
AhmadGamer4_YT
AhmadGamer4_YT's Avatar
hi, is that datapack.. work at 1.19.2? pls reply fast because i have an server an i wanna end fast....
1
10/01/2023 10:10 am
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
Hi. There is a link the download section for 1.19.X versions.
1
09/08/2023 1:48 pm
Level 5 : Apprentice Miner
Lentejas Con Marichuelas
Lentejas Con Marichuelas's Avatar
Does it work with version 1.20? Update pls
1
09/08/2023 4:40 pm
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
Hi. Yes it does.
1
07/24/2023 11:21 am
Level 13 : Journeyman Miner
ForingLights
ForingLights's Avatar
Does it works with 1.19.4?
1
07/22/2023 8:00 pm
Level 2 : Apprentice Crafter
RainyPuddle
RainyPuddle's Avatar
whats up with the music? you reviewing datapacks or cows?
1
08/01/2023 1:15 pm
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
Data packows
1
06/25/2023 10:26 amhistory
Level 26 : Expert Engineer
Guris
Guris's Avatar
In pickup mode, villagers are not moving when an emerald is on the ground. They pickup the emerald when on the same block but when an emerald item is in the radius the village stops. In follow mode, when I hold an emerald block, the villager also stops moving. Can you check about this issue?
1
06/25/2023 10:33 amhistory
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
Hi, I can't reproduce this issue on vanilla 1.20.1.
It may be due to an external thing like a plugin / mod, or another data pack that locks wandering traders movements.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome