使生物对全体玩家或特定玩家保持中立!

大多数会让中立生物变敌意的行为仍然有效,例如盯着末影人或破坏蜂巢。但是,不再穿戴金盔甲不会激怒猪灵,处于黑暗中也不会激怒蜘蛛。
中立模式默认禁用,必须通过命令激活。
命令
/neutron global - 检查是否全局启用了中立模式
/neutron global <enable | disable> - 全局启用或禁用中立模式
/neutron player <username> - 检查是否为某玩家启用了中立模式
/neutron player <username> <enable | disable> - 为某玩家启用或禁用中立模式
/neutron resetall - 重置两种模式下的玩家覆盖设置
配置
模组的配置文件位于 config/neutron.json。
exceptions: 忽略中立性的生物列表
preventEndermanEyeContact: 末影人是否应忽略来自已应用本模组玩家的视线接触,默认为 false
excludePatrollers: 即使其类型列在 exceptions 中,正在巡逻的生物是否应保持中立,默认为 true
默认情况下,Boss 生物和某些仅在特定结构中生成的生物不会被设为中立。这是为了保留某些 Boss、事件和结构的挑战性。
默认非中立生物
- Wither(凋灵)
- Evoker(唤魔者)
- Vindicator(卫道士)
- Pillagers(掠夺者)
- Ravager(劫掠兽)
- Vex(恼鬼)
- Piglin Brute(猪灵蛮兵)
- Blaze(烈焰人)
- Wither Skeleton(凋灵骷髅)
- Guardian(守卫者)
- Elder Guardian(远古守卫者)
- Warden(监守者)
- Breeze(旋风儿)
- Shulker(潜影贝)
- Endermite(末影螨)
注意:末影龙的行为不受此模组影响,因为它们不使用正常的目标锁定系统,也没有“中立”的概念。
API
ShouldBeNeutralCallback
每当检查某生物对特定实体的中立性时触发。
register(callback: (entity: LivingEntity, target: LivingEntity) -> Boolean): entity 是将会或不将会保持中立的生物,target 是该生物会攻击的实体。返回 true 将使该生物对目标保持中立。
registerPlayers(callback: (entity: LivingEntity, target: PlayerEntity) -> Boolean) 与 register 相同,但仅考虑玩家作为目标
如果任何监听器返回 true,则该生物将对目标保持中立。
注意:如果未在客户端安装,命令补全和结果消息将显示异常;但如果仅安装在服务器上,其他一切功能均正常运行
Make mobs neutral to all players or specific players!

Most actions that make neutral mobs angry will still be in effect, such as staring at enderman and breaking beehives. However, not wearing gold armor for piglins and darkness for spiders will no longer anger them.
Neutral mode is disabled by default and must be activated with commands.
Commands
/neutron global - Check if neutral mode is enabled globally
/neutron global <enable | disable> - Enable or disable neutral mode globally
/neutron player <username> - Check if neutral mode is enabled for a player
/neutron player <username> <enable | disable> - Enable or disable neutral mode for a player
/neutron resetall - Reset player overrides in both modes
Configuration
The mod's config file can be found in config/neutron.json.
exceptions: List of the mobs which ignore neutrality
preventEndermanEyeContact: If enderman should ignore eye contact from neutron'd players, default is false
excludePatrollers: If actively patrolling mobs should be neutral even if their types are listed in exceptions, default is true
By default, boss mobs and certain structure-exclusive mobs are not turned neutral. This is to retain the challenge of certain bosses, events, and structures.
Default non-neutral mobs
- Wither
- Evoker
- Vindicator
- Pillagers
- Ravager
- Vex
- Piglin Brute
- Blaze
- Wither Skeleton
- Guardian
- Elder Guardian
- Warden
- Breeze
- Shulker
- Endermite
Note: Ender Dragon behavior is not affected by this mod, as they do not use the normal targeting system and do not have a concept of being neutral.
API
ShouldBeNeutralCallback
Is triggered whenever a mob's neutrality towards a certain entity is checked.
register(callback: (entity: LivingEntity, target: LivingEntity) -> Boolean): entity is the mob which will or will not be neutral, target is the entity which the mob will aggro on. Returning true will make the mob be neutral towards the target.
registerPlayers(callback: (entity: LivingEntity, target: PlayerEntity) -> Boolean) Same as register but only considers player targets
The mob will be neutral towards the target if any listener returns true.
Note: Command completion and result messages will be broken if not installed on the client, but otherwise everything will work fine if only installed on the server
评论 0
登录后参与评分
还没有评论,来抢沙发吧