Data Packs Mob

Stillagers

  • 17.6k views 0 today
  • save_alt 838 downloads
Compatibility
Minecraft 1.14
to version
Minecraft 26.2
Changes include
  • Advancements
  • Functions
Added CreditVanillaTweaks
  • 27
  • 24
  • 17
surfrock66
Lvl 30Artisan System
4
I created a datapack which helps with villager lag in trading halls.

Previous versions for different minecraft versions are available here: www.teh3l3m3nts.com/stillagers-datapack/

If you name tag a villager with “Stillager” or “stillager” they will stop moving and path finding altogether. This is done by setting the “NoAI” tag of the villager to 1. This typically eliminates restocks, so I have a function to manually restock all trades at 8:00 AM and 2:00 PM. This is mostly consistent with vanilla behavior, villagers restock twice a day at slightly random times, but their 4 phases of the day (work, gather, wander, and sleep) can be divided into 4 segments which is the logic behind the restock times.

If you want to disable this, you tag the villager with “Moveager” or “moveager” and the name disappears and their AI is restored.

This is particularly useful for trading halls where villagers are locked in 1×1 spaces. In my test world where I have a trading hall with ~150 villagers, it took the tps from 15 to 20, the MSPT from ~65 to ~50, and the FPS to ~30 to ~60 (where I have it capped). This has tremendous lag reduction impacts without the headache of doing double-carpet tricks, and is completely optional so villagers in mob farms or those that are naturally spawned are completely unaffected; this is opt-in.

The only mobs impacted by this are villagers. If you name another mob "Stillager" or "Moveager" it will be unaffected.

Special thanks to the VanillaTweaks team; this was made using their “SilenceMe” and “Track Raw Statistics” datapacks as templates.

This is my first datapack, so feedback is welcome.

-- UPDATE 2021.12.11 -- This has been tested in 1.18 and 1.18.1 and still works as expected.

-- UPDATE 2022.06.17 -- Updated the "pack format" tag marking it as compatible with 1.19, fully tested and working.

-- UPDATE 2023.06.08 -- Updated the "pack format" tag marking it as compatible with 1.20 and 1.20.1, fully tested and working.

-- UPDATE 2023.12.25 -- Updated the "pack format" tag marking it as compatible with 1.20.2, fully tested and working

-- UPDATE 2023.12.25 -- Updated the "pack format" tag marking it as compatible with 1.20.3 and 1.20.4, fully tested and working

-- UPDATE 2024.04.23 -- Updated the "pack format" tag marking it as compatible with 1.20.5 and 1.20.6, fully tested and working

-- UPDATE 2024.06.18 -- Updated the "pack format" tag marking it as compatible with 1.21 fully tested and working

-- UPDATE 2024.11.06 -- Updated the "pack format" tag marking it as compatible with 1.21.2-1.21.3 fully tested and working

-- UPDATE 2024.12.04 -- Updated the entire datapack using overlays so the single most recent zip works in ALL minecraft versions from 1.14-1.21.4.

-- UPDATE 2025.03.26 -- Updated the entire datapack using overlays so the single most recent zip works in ALL minecraft versions from 1.14-1.21.5.

-- UPDATE 2025.06.17 -- Updated the entire datapack using overlays so the single most recent zip works in ALL minecraft versions from 1.14-1.21.6.

-- UPDATE 2025.07.02 -- Updated the entire datapack using overlays so the single most recent zip works in ALL minecraft versions from 1.14-1.21.8.

-- UPDATE 2025.10.04 -- Updated the entire datapack using overlays so the single most recent zip works in ALL minecraft versions from 1.14-1.21.9.

-- UPDATE 2025.12.11 -- Updated the entire datapack using overlays so the single most recent zip works in ALL minecraft versions from 1.14-1.21.11.

-- UPDATE 2026.03.25 -- Updated the entire datapack using overlays so the single most recent zip works in ALL minecraft versions from 1.14-26.1.

-- UPDATE 2026.06.17 -- Updated the entire datapack using overlays so the single most recent zip works in ALL minecraft versions from 1.14-26.2.

18 Update Logs

Stillagers.v1.1.8 : by surfrock66 06/17/2026 7:14:15 pmJune 17 @ 11:14 pm UTC

Updated version for 1.14-26.2
LOAD MORE LOGS

More like this

  Have something to say?

tollcraft
10/05/2025 4:04 am
He/Him • Level 50 : Grandmaster Steve Demolitionist
Nice
Alrho blacklaggers would be funnier
Or slaveaggers
1
User3772514G
09/05/2024 5:00 pm
Level 1 : New Miner
Any chance this will update to 1.21? It says it is but it doesn't work. It was working in 1.20.
1
surfrock66
11/07/2024 1:20 am
Level 30 : Artisan System
history
Man PlanetMinecraft doesn't notify me on comments so I'm sorry I missed this. It's been working for me on 1.21, can yous end me console logs?



Also I find PlanetMinecraft is a pain to manage multiple versions, check the specific version here: www.teh3l3m3nts.com/stillagers-datapack/
1
DrDerp04
07/07/2024 12:25 pm
Level 1 : New Miner
It says its been updated for 1.21, and I might just be stupid, but I've installed the datapack on my 1.21 paper server and named the villager "stillager" (tried with both uppercase and lowercase S) but it still behaves like normal and walks around. I was able to give it a job as well after renaming. It doesnt seem like the datapack is working properly.
1
surfrock66
11/07/2024 1:20 am
Level 30 : Artisan System
history
Man PlanetMinecraft doesn't notify me on comments so I'm sorry I missed this. It's been working for me on 1.21, can yous end me console logs?



Also I find PlanetMinecraft is a pain to manage multiple versions, check the specific version here: www.teh3l3m3nts.com/stillagers-datapack/
1
allanonmage
08/27/2023 8:13 pm
Level 1 : New Miner
I used this datapack on my server for my villager trading hall. I did not see a measurable decrease in MSPT. I was ad 20 MSPT the other day, and then all of a sudden it went to 50 and hovers around there. Using the stillager nametags didn't seem to change much of anything tick wise.

I'm on 1.19.2 fabric, and with many mods, including performance ones. I have about 60 - 80 villagers in my hall in minecarts. Minihud says I have ~900 entities in my base, which I presume are chests*, item frames, banners, etc. I have Enhanced Block entities running, so the chests shouldn't be causing lag.

I've got basically maxed out Ryzen 9's for client and server, so I can't add more hardware to the problem.

Aside from adding more performance mods, I can't find any advice on how to reduce MSPT besides remove entities. Given the hardware that I have, I suspect there's something I'm missing though.
1
SirJoeDoe
12/15/2021 6:55 am
Level 2 : Apprentice Explorer
Have noticed an issue with applying this to villagers before you have them fully set up. While restocks work, if you are attempting to unlock new trades for the villager, they don't
1
surfrock66
06/07/2022 4:53 pm
Level 30 : Artisan System
I only saw this now because I guess I'm not getting email notifications?



The NoAI tag will stop leveling up. You need to trade them up BEFORE applying the stillager tag, or, use a "moveager" tag to re-enable their AI, trade them up, and then re-apply the "stillager" nametag.
1
probablypablito
10/30/2021 3:28 pm
Level 1 : New Miner
Would it be possible to only disable Movement AI? I want to use this for villagers inside of an iron farm, which due to being in the spawn chunks causes a long of lag.
1
Kate1902019
10/18/2021 9:46 pm
Level 39 : Artisan Princess
Can you make it work with other mobs too?(since I don't want zombies to chase and kill my villagers, I don't want wolves to chase and kill my sheeps, I don't want skeletons to shoot my iron golems that is hard for them to reach and tied to a lead(because that's cheating! BLAME MOJANG!!!!!) & I don't want iron golems to attack Players when they are about to attack the others Players and me)
1

Welcome