No Villager Price Increase
作者:zampinomatti
A datapack that prevents villager prices from ever going up
介绍
中文介绍正在准备中,下面暂时显示原文。
What it does
In MC 26.1, the old Offers.Recipes NBT structure was removed as part of the new data-driven trading system. Price changes now come entirely from the Gossip system (reputation).
This datapack removes only the gossip entries that raise prices, every 3 seconds, on all loaded villagers — using the Gossips[{Type:"..."}] NBT path to target and delete matching entries directly, with no loop or index guessing required.
| Gossip type | Cause | Effect on price | Action |
|---|---|---|---|
minor_negative |
Hitting the villager | Increase | Removed |
major_negative |
Killing a villager nearby | Increase | Removed |
minor_positive |
Curing a zombie villager | Decrease | Kept |
major_positive |
Curing, permanent bonus | Decrease | Kept |
trading |
Frequent trading | Decrease | Kept |
Only price increases are blocked. Discounts you’ve earned are never touched.
Installation
- Drop the
no-villager-price-increasefolder (or the.zip) into:saves/<world-name>/datapacks/ - In-game:
/reload - You will see a green confirmation message in chat.
Commands
| Command | Effect |
|---|---|
/function no_vp:reset_all |
Immediate manual reset of all villagers |
/function no_vp:uninstall |
Clean uninstallation (run before removing files) |
Uninstalling
- Run
/function no_vp:uninstallin-game - The cycle stops automatically within 3 seconds
- Remove the datapack folder and run
/reload
Technical notes
- Runs every 60 ticks (3 seconds) via a self-scheduling function
- Uses an
#activescoreboard flag: whenuninstallremoves the scoreboard, the cycle stops on its own - In 26.1,
Offers.RecipesNBT no longer exists on villager entities — the gossip system is the only accessible data that drives price changes
常见问题
No Villager Price Increase 支持哪些 Minecraft 版本?
No Villager Price Increase 支持 Minecraft Java 版 26.1–26.2,共 4 个版本。下载时注意选择和你游戏版本一致的文件。
No Villager Price Increase 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
评论
登录后评论和评分