数据包
它的作用
在 Minecraft 26.1 中,旧的 Offers.Recipes NBT 结构作为新的数据驱动交易系统的组成部分被移除。价格变动现在完全由 声望系统(Gossip)决定。
此数据包仅移除那些提高价格的声望条目。每 3 秒在所有已加载村民上执行一次操作——通过 Gossips[{Type:"..."}] NBT 路径直接定位并删除匹配的条目,无需循环或猜测索引。
| 流言类型 |
触发原因 |
对价格的影响 |
操作 |
minor_negative(轻微负面) |
攻击村民 |
价格上涨 |
已移除 |
major_negative(严重负面) |
在附近杀死村民 |
价格上涨 |
已移除 |
minor_positive(轻微正面) |
治愈僵尸村民 |
价格下降 |
保留 |
major_positive(严重正面) |
治愈,永久加成 |
价格下降 |
保留 |
trading(交易) |
频繁交易 |
价格下降 |
保留 |
仅阻止价格上涨。你已获得的折扣不会受到影响。
安装
- 将
no-villager-price-increase 文件夹(或 .zip 文件)放入:
saves/<世界名称>/datapacks/
- 在游戏中执行
/reload
- 聊天栏会显示一条绿色的确认消息。
命令
| 指令 |
效果 |
/function no_vp:reset_all |
立即手动重置所有村民的交易价格 |
/function no_vp:uninstall |
彻底卸载(在删除文件前运行) |
卸载方法
- 在游戏中执行
/function no_vp:uninstall
- 该循环将在 3 秒内自动停止
- 删除数据包文件夹并执行
/reload
技术说明
- 通过自调度函数每 60 刻(3 秒) 运行一次
- 使用
#active 记分板标签:当 uninstall 移除记分板后,循环会自动停止
- 在 26.1 版本中,村民实体上不再存在
Offers.Recipes NBT 数据——只有 gossip(流言/传闻)系统是可访问的数据源,它驱动着价格变化
Mod
防止因声誉不佳而导致村民交易价格上涨。
保留治愈僵尸村民和“村庄英雄”所带来的折扣优惠。
工作原理
每隔 3 秒,该模组会扫描所有已加载的村民,并移除导致声誉相关价格上涨的负面 gossip(流言),同时保留正面的 gossip(如治愈奖励、交易折扣)。
| 已移除 |
保留 |
minor_negative |
minor_positive |
major_negative |
major_positive(僵尸治愈) |
|
trading |
Datapack
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-increase folder (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:uninstall in-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
#active scoreboard flag: when uninstall removes the scoreboard, the cycle stops on its own
- In 26.1,
Offers.Recipes NBT no longer exists on villager entities — the gossip system is the only accessible data that drives price changes
Mod
Prevents villager prices from increasing due to bad reputation.
Preserves discounts from curing zombie villagers and Hero of the Village.
How it works
Every 3 seconds, the mod scans all loaded villagers and removes
negative gossips (the data that drives reputation-based price increases)
while keeping positive ones (curing bonuses, trading discounts).
| Removed |
Kept |
minor_negative |
minor_positive |
major_negative |
major_positive (zombie curing) |
|
trading |
评论 0
登录后参与评分
还没有评论,来抢沙发吧