PerPlayerDifficulty 是一个 Bukkit 插件,允许 Minecraft 服务器上的每位玩家体验各自独立的实际难度等级,而不受服务器全局难度的限制。
服务器难度必须设置为困难(推荐)、普通或简单。如果服务器处于和平模式,此插件将无法正常工作。
功能
- 玩家可以选择和平、简单、普通或困难难度
- 默认情况下,玩家的难度将与服务器当前设置的难度保持一致
- 提供玩家和管理员命令来查看和修改难度
- 该插件基于服务器的全局难度运行,并修改以下内容:
- 敌对生物的生成
- 敌对生物的伤害缩放和行为
- 饥饿与 starvation(饥饿致死)行为
命令
所有命令均以 /playerdifficulty 为根命令。/ppd 和 /mydifficulty 是该命令的别名。
玩家命令
| 命令 |
描述 |
权限 |
/playerdifficulty |
显示你当前的难度 |
无 |
/playerdifficulty <难度> |
设置你自己的难度 |
无 |
/playerdifficulty reset |
将你的难度重置为默认值 |
无 |
/playerdifficulty help |
显示该插件的所有命令 |
无 |
管理员命令
| 命令 |
描述 |
权限 |
/playerdifficulty get <玩家> |
查看其他玩家的难度 |
perplayerdifficulty.admin |
/playerdifficulty set <难度> <玩家> |
设置其他玩家的难度 |
perplayerdifficulty.admin |
| /playerdifficulty reset <玩家> | 将其他玩家的难度重置为默认值 | perplayerdifficulty.admin |
生物生成
敌对生物(疣猪兽、潜影贝、猪灵和末影龙除外)无法在和平玩家 128 格范围内自然生成。
如果非和平玩家处于和平玩家 128 格范围内,则 prioritize-easier-difficulties(优先选择较低难度)设置将决定怪物是否会生成。默认情况下,非和平玩家将拥有优先权,怪物将会生成。
生物伤害
敌对生物不会攻击和平模式下的玩家,也无法对他们造成伤害。
对于非和平模式的玩家,敌对生物的伤害会根据玩家的难度等级进行调整。有关伤害缩放的详细信息,请参阅 Minecraft Wiki。
饥饿 / 饥饿伤害
饥饿造成的伤害会根据玩家所处的难度动态调整,以匹配预期的行为。有关饥饿在不同难度下的具体表现,请参阅 Minecraft Wiki。在和平难度下,饥饿值永远不会下降。
其他伤害来源
和平难度下的玩家不会受到爆炸产生的任何伤害。
僵尸破门
注意:如果服务器未设置为困难难度,无论玩家处于何种难度,僵尸都无法破门。
默认情况下,如果附近所有玩家都处于和平、简单或普通难度,则取消僵尸破门行为。请注意,僵尸仍会寻路前往玩家位置并尝试破门,但它们无法成功并在之后放弃。
此行为受 prioritize-easier-difficulties(优先选择较低难度)设置的影响。
本模组目前不涉及的功能
- 本模组不影响僵尸村民的转化
- 本模组不会杀死已存在的生物
- 本模组不影响掠夺者袭击
- 本模组不影响生物装备和掉落物
- 本模组不影响施加给玩家的负面状态效果(例如中毒)
- 本模组不影响闪电的行为机制
以上所有方面均遵循服务器的整体难度设置。
推荐的服务器难度
建议将服务器设置为【困难】难度。否则,部分功能对于处于困难难度的玩家可能无法按预期工作。不过,对于简单和普通难度的玩家而言,游戏会稍微更难一些,因为袭击强度会增加,且生物会拥有更好的装备。
简单和普通难度也可游玩,但对于困难难度的玩家来说,某些困难模式特有的功能将不可用,例如僵尸破门、更优质的生物掉落物,以及村民必定转化为僵尸等。
服务器绝对不可设置为【和平】难度,因为这会完全禁用敌对生物。如果你希望玩家默认处于和平难度,可以将 default-difficulty 设置项设为 PEACEFUL。
服务器配置
服务器配置文件位于 plugins/PerPlayerDifficulty/config.yml,首次运行插件时会自动生成该文件。以下是可用的配置选项:
default-difficulty:玩家被分配的难度。默认与服务器当前使用的难度相同。
prioritize-easier-difficulties:控制如何处理不同难度玩家之间的冲突。影响以下两种情况:
- 如果和平模式与非和平模式玩家彼此靠近,此选项决定是否生成敌对生物。若设为 true,则不会生成;若设为 false,则会生成。
- 如果困难模式与非困难模式玩家彼此靠近,此选项决定是否允许僵尸破坏木门。若设为 true,则不会破坏;若设为 false,则会破坏。
- 注意:如果玩家彼此相距较远,此选项将不起作用,每位玩家都将体验各自的难度设置。
PerPlayerDifficulty is a Bukkit plugin that allows each player on a Minecraft server to experience their own effective difficulty level, independent of the server's global difficulty.
The server difficulty must be set to hard (recommended), normal, or easy. This plugin will not work correctly if the server is on peaceful.
Features
- Players can select between peaceful, easy, normal, or hard difficulties
- By default, they will be set to the same difficulty as the server is in
- Player and admin commands to check and modify difficulties
- The plugin acts on top of the server's global difficulty, modifying:
- Hostile mob spawning
- Hostile mob damage scaling and behavior
- Hunger and starvation behavior
Commands
All commands are rooted at /playerdifficulty. /ppd and /mydifficulty are available as aliases of the same command.
Player Commands
| Command |
Description |
Permission |
/playerdifficulty |
Show your current difficulty |
none |
/playerdifficulty <difficulty> |
Set your own difficulty |
none |
/playerdifficulty reset |
Reset your difficulty to default |
none |
/playerdifficulty help |
Show all the plugin's commands |
none |
Admin Commands
| Command |
Description |
Permission |
/playerdifficulty get <player> |
View another player's difficulty |
perplayerdifficulty.admin |
/playerdifficulty set <difficulty> <player> |
Set another player's difficulty |
perplayerdifficulty.admin |
/playerdifficulty reset <player> |
Reset another player's difficulty to default |
perplayerdifficulty.admin |
Mob spawning
Hostile mobs (except hoglins, shulkers, piglins, and ender dragons) can't spawn naturally within 128 blocks of a peaceful player.
If a non-peaceful player is within 128 blocks of a peaceful player, then the prioritize-easier-difficulties setting will decide if monsters can spawn or not. By deafult, the non-peaceful player will have priority and monters will spawn.
Mob Damage
Hostile mobs don't target peaceful players and they can't inflict damage to them.
For non-peaceful players, hostile mob damage is scaled to match with the player's difficulty. See the Minecraft wiki for details on damage scaling.
Hunger / Starvation
The damage due to starvation is dynamically modified in order to match with the expected behavior of the player's difficulty. See the Minecraft wiki for details on how starvation acts on different difficulties. On peaceful, the hunger bar never decreases.
Other sources of damage
Peaceful players won't receive any damage from explosions.
Zombies Breaking Doors
NOTE: If the server is not on hard difficulty, zombies will not be able to break doors at all, independently of the player's difficulty.
By default, if all nearby players are on peaceful, easy, or normal, door breaking is cancelled. Note that zombies will still pathfind towards the player and try to break the door, but they won't succeed and give up afterwards.
This behavior is affected by the prioritize-easier-difficulties setting.
Things this mod does NOT do (at least for now)
- This mod doesn't affect zombie villager conversion
- It doesn't kill existing mobs
- It doesn't affect pillager raids
- It doesn't affect mob equipment and loot
- It doesn't affect status effects inflicted on the player (such as poison)
- It doesn't affect how lightning behaves
All of these things will behave following the server's difficulty setting.
Recommended server difficulty
It's recommended that the server is set to HARD difficulty. Otherwise some features will not work as expected for hard players. The game will be a bit more difficult for easy and normal players though, since raids will be stronger and mobs will have better equipment.
Easy and normal are also playable, but some features of hard difficulty won't be available for hard players, such as door-breaking, better mob loot, or villagers always converting to zombies.
The server must NOT be set to peaceful, since that disables hostile mobs entirely. If you want players to be on peaceful by default, you can set the default-difficulty setting to PEACEFUL.
Server configuration
The server configuration file is available at plugins/PerPlayerDifficulty/config.yml, it should be created automatically when the plugin is first run. These are the available options:
default-difficulty: default difficulty that players are assigned. It defaults to the same one the server is using.
prioritize-easier-difficulties: controls how conflicts between different-difficulty players are handled. Affects two cases:
- If a peaceful and a non-peaceful player are near each other, this controls whether hostile mobs spawn or not. They will NOT spawn if this is set to true. They will spawn if it's set to false.
- If a hard and a non-hard player are near each other, this controls whether zombies can break doors or not. They will NOT break doors if this is set to true. They will break doors if it's set to false.
- Note that if the players are far from each other this won't have any effect and each one will experience their own difficulty.
评论 0
登录后参与评分
还没有评论,来抢沙发吧