被注视的世界
每位玩家都有一个隐藏的业力值,世界会根据它做出反应。有益的行为会提升业力:种植、交易、驯服、繁殖、建造。残忍的行为会降低业力:杀害动物(尤其是幼崽)、伤害村民以及破坏自然景观。业力越高,世界对你的帮助就越多;业力越低,世界越会与你作对。
功能说明
每位玩家的初始业力值为 0,存储在玩家数据中,并限制在配置文件中设定的范围内。事件会使数值上升或下降。插件按计时器检查每位在线玩家的阶段,并应用相应的效果以匹配其阶段。
高业力:
- 被动生物会向你靠近。
- 偶尔会有礼物掉落在你脚边。
- 附近的怪物有时会失去对你的兴趣。
- 你在日光下会缓慢恢复生命值。
低业力:
- 怪物能从更远的距离发现你并向你移动。
- 黑暗烟雾粒子会跟随你移动。
- 你附近的作物生长速度变慢。
中立: 正常的原版行为,不施加任何效果。
当你进入新的阶段时,操作栏上会显示一条简短的消息。
命令
基础命令:/karma(别名:/kma、/ledger)
| 命令 |
适用对象 |
功能 |
/karma |
所有人 |
显示你自己的业力和当前阶段。 |
/karma get [player] |
自己免费;其他人需要管理员权限 |
显示某位玩家的业力和阶段。 |
/karma set <player> <n> |
管理员 |
将某位玩家的业力设置为 n。 |
/karma add <player> <n> |
管理员 |
向某位玩家的业力增加 n(可为负数)。 |
/karma top |
所有人 |
显示业力最高的在线玩家排行榜。 |
/karma reload |
管理员 |
重新加载 config.yml。 |
权限
| 节点 |
默认值 |
授予权限 |
karma.check |
所有人 |
查看自己的业力和阶段;使用 /karma、/karma top。 |
karma.admin |
op |
查看他人信息、使用 set/add、reload。包含 karma.check。 |
配置
首次运行时会自动创建 config.yml。你可以在此设置:
karma.min、karma.max、karma.default:业力的限制范围和初始值。
weights.*:每项行为给予或扣除的业力量(设为 0 可禁用该行为的影响)。
natural-blocks:破坏后会降低业力的方块列表。
tiers.high、tiers.low:阶段阈值(high 必须高于 low)。
judgment.interval-seconds、judgment.radius:检查频率以及每位玩家周围的效果半径。
effects.*:高业力和低业力各项效果的开关。
gifts.*:高业力礼物的掉落频率、物品和数量。
编辑配置文件后运行 /karma reload 即可应用更改,无需重启服务器。
兼容性
适用于 Minecraft 1.21.1 至 1.21.11 以及 26.1.x 系列(已在 26.1.2 上验证)的 Paper、Spigot、Bukkit 和 Purpur 服务端,Java 21。本插件仅使用 Bukkit/Spigot API,因此在这四种服务端类型上均可正常运行。
The Watching World
Every player has a hidden karma score, and the world reacts to it. Helpful
actions raise it: planting, trading, taming, breeding, building. Cruel ones
lower it: killing animals (babies especially), hurting villagers, and stripping
the landscape. The higher your karma, the more the world helps you. The lower it
gets, the more it works against you.
What it does
Each player starts at 0 karma, stored in their player data and clamped to a
range you set in the config. Events move the number up or down. On a timer the
plugin checks each online player's tier and applies effects to match it.
High karma:
- Passive animals drift toward you.
- Gifts occasionally drop at your feet.
- Nearby monsters sometimes lose interest in you.
- You slowly regenerate in daylight.
Low karma:
- Monsters spot you from farther away and head toward you.
- Dark smoke particles follow you around.
- Crops near you grow more slowly.
Neutral: normal vanilla behavior, no effects either way.
When you move into a new tier you get a short message on the action bar.
Commands
Base command: /karma (aliases: /kma, /ledger)
| Command |
Who |
What |
/karma |
everyone |
Show your own karma and standing. |
/karma get [player] |
self free; others need admin |
Show a player's karma and tier. |
/karma set <player> <n> |
admin |
Set a player's karma to n. |
/karma add <player> <n> |
admin |
Add n (may be negative) to a player's karma. |
/karma top |
everyone |
Leaderboard of the highest-karma online players. |
/karma reload |
admin |
Reload config.yml. |
Permissions
| Node |
Default |
Grants |
karma.check |
everyone |
View your own karma and tier; /karma, /karma top. |
karma.admin |
op |
View others, set/add, reload. Includes karma.check. |
Configuration
config.yml is created on first run. It lets you set:
karma.min, karma.max, karma.default: the clamp range and starting value.
weights.*: how much karma each action gives or takes (set any to 0 to turn it off).
natural-blocks: the blocks whose breaking lowers karma.
tiers.high, tiers.low: the tier thresholds (high must be above low).
judgment.interval-seconds, judgment.radius: how often the check runs and the effect radius around each player.
effects.*: an on/off toggle for each high and low effect.
gifts.*: high-karma gift frequency, item, and amount.
Edit it and run /karma reload to apply changes without restarting.
Compatibility
Paper, Spigot, Bukkit, and Purpur on Minecraft 1.21.1 through 1.21.11 and the
26.1.x line (verified on 26.1.2), Java 21. It only uses the Bukkit/Spigot API, so
it runs the same on all four server types.
评论 0
登录后参与评分
还没有评论,来抢沙发吧