使生物对全体玩家或特定玩家保持中立!
大多数会让中立生物变敌意的行为仍然有效,例如盯着末影人或破坏蜂巢。但是,不再穿戴金盔甲不会激怒猪灵,处于黑暗中也不会激怒蜘蛛。
中立模式默认禁用,必须通过命令激活。
命令
/neutron global- 检查是否全局启用了中立模式/neutron global <enable | disable>- 全局启用或禁用中立模式/neutron player <username>- 检查是否为某玩家启用了中立模式/neutron player <username> <enable | disable>- 为某玩家启用或禁用中立模式/neutron resetall- 重置两种模式下的玩家覆盖设置
配置
模组的配置文件位于 config/neutron.json。
exceptions: 忽略中立性的生物列表preventEndermanEyeContact: 末影人是否应忽略来自已应用本模组玩家的视线接触,默认为falseexcludePatrollers: 即使其类型列在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 neutralitypreventEndermanEyeContact: If enderman should ignore eye contact from neutron'd players, default isfalseexcludePatrollers: If actively patrolling mobs should be neutral even if their types are listed inexceptions, default istrue
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):entityis the mob which will or will not be neutral,targetis the entity which the mob will aggro on. Returningtruewill make the mob be neutral towards the target.registerPlayers(callback: (entity: LivingEntity, target: PlayerEntity) -> Boolean)Same asregisterbut 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
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Neutron
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 更新到 1.21.1
- 默认配置中,微风(Breeze)不再是中立生物
1.21.2 及以上版本可能可以运行,但官方并不提供支持。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧