悦灵始终跟随
悦灵将始终跟随向其提供物品的玩家,即使穿过传送门也是如此。
安装
要安装此插件 fabric,需要 fabric API。
此模组在 modrinth 上可用,slug 为 allay-follow-always。
项目源代码可在 github/michiruf 找到,最新的
自述文件 在此处。
使用说明
使用以下命令来设置模组的选项值。 如果不指定特定选项的新值,则可以查询实际值。
所有可用选项将通过命令 /allayfollowalways options 显示。
命令需要权限级别 4。
配置选项
通过将此值与原版悦灵的跟随范围相乘,来配置悦灵的跟随范围系数。
截至 minecraft 1.19,该范围为 64。
rangeFactor 默认为 1。
/allayfollowalways rangeFactor [double]
配置悦灵移动速度系数,该系数将与悦灵的原版移动速度相乘。
movementSpeedFactor 默认为 1。
/allayfollowalways movementSpeedFactor [float]
如果距离超过 teleportDistance,则启用传送。这种行为在原版的游戏中不存在。
teleportEnabled 默认为 true。
/allayfollowalways teleportEnabled [boolean]
设置悦灵传送到玩家的最小距离。
teleportDistance 默认为 65。
/allayfollowalways teleportDistance [float]
如果设置为 true,则将使用原版的传送门传送冷却时间,同时也用于悦灵的传送。
副作用是,区块可能需要加载更长的时间,因为悦灵在切换维度后可能不会立即跟随玩家。
将其设置为 true 的原因可能是可以将悦灵推过传送门。如果设置为 false,它们将被立即传送回来。
considerEntityTeleportationCooldown 默认为 false。
/allayfollowalways considerEntityTeleportationCooldown [boolean]
如果设置,当悦灵正在跳舞时,它将不会传送。
teleportWhenDancing 默认为 true。
/allayfollowalways teleportWhenDancing [boolean]
如果设置,当玩家接触水时,悦灵将不会传送到该玩家身边。
avoidTeleportingIntoWater 默认为 true。
/allayfollowalways avoidTeleportingIntoWater [boolean]
如果设置,当玩家在熔岩中时,悦灵将不会传送到该玩家身边。
avoidTeleportingIntoLava 默认为 true。
/allayfollowalways avoidTeleportingIntoLava [boolean]
如果设置,当玩家在墙壁内时,悦灵将不会传送到该玩家身边。
avoidTeleportingIntoWalls 默认为 true。
/allayfollowalways avoidTeleportingIntoWalls [boolean]
如果设置,只要悦灵处于其喜欢音符盒的听觉范围内(noteblockHearingRange),它就会保持对该音符盒的喜爱。
如果悦灵超过 30 秒没有听到音符盒的声音,原版游戏会使其忘记该音符盒,这会导致用于音符盒农场的悦灵偶尔传送到玩家身边。
keepNoteblockInHearingRange 默认为 true。
/allayfollowalways keepNoteblockInHearingRange [boolean]
音符盒听觉范围是悦灵保持对其喜欢音符盒的喜爱的距离,前提是启用了 keepNoteblockInHearingRange。
默认值匹配原版悦灵的听觉范围。
noteblockHearingRange 默认为 16。
/allayfollowalways noteblockHearingRange [double]
玩家牵引模式配置悦灵的行为方式:
NONE- 原版行为FOLLOW- 悦灵将跟随玩家(例如像狗一样)DIRECTIONAL_SLOW_DOWN- 如果悦灵正在远离玩家且距离超过leashSlowDownDistanceStart,它将减速
playerLeashMode 默认为 NONE
实现此牵引模式的原因是,悦灵有时会移出拴绳的范围从而断开拴绳。
这非常令人烦恼,因此引入了 generalLeashMode。悦灵将表现为上述玩家牵引模式中描述的那样。
generalLeashMode 默认为 DIRECTIONAL_SLOW_DOWN
牵引减速起始距离是开始应用方向性减速的距离。在恰好 6 的距离时,不应用任何减速,然后随着距离增加到 leashSlowDownDistanceEnd,减速效果逐渐增强。
leashSlowDownDistanceStart 默认为 6
牵引减速结束距离是如果悦灵未面向它所拴系的实体,其移动速度将为 0 的距离。
leashSlowDownDistanceEnd 默认为 8
配置按类别记录日志。每个类别接受 OFF、INFO 或 DEBUG。
logMod 控制模组生命周期日志,默认为 INFO。
logTeleport 控制传送日志,默认为 OFF。
logLeash 控制拴绳行为日志,默认为 OFF。
/allayfollowalways logMod [OFF|INFO|DEBUG]
/allayfollowalways logTeleport [OFF|INFO|DEBUG]
/allayfollowalways logLeash [OFF|INFO|DEBUG]
更新日志
每个发布周期的更新日志可以在 此处 找到。 此更新日志包含从一个版本到下一个版本的信息。
许可证
后续步骤
实现测试运行器?
其他阅读(针对开发者)
- Fabric 维基
- Fabric 事件列表
- TODO 查看此项目:
- 使用
gradle ideaSyncTask设置你的 IDE 以生成 IDEA 运行配置
Allay Follow Always
Allays will follow the player that gave them an item always, even through portals.
Installation
To install this plugin fabric, fabric API is required.
This mod is available on modrinth with slug allay-follow-always.
The project source is available on github/michiruf with the latest
readme here.
Usage instructions
Use the commands below to set values for the options of the mod. The actual value can get queried by not specifying a new value for a specific option.
All available options will be displayed with the command /allayfollowalways options.
Commands require a permission level of 4.
Configuration options
Configure the follow range factor of the allay by multiplying this value with the vanilla follow range of allays.
As of minecraft 1.19 this range is 64.
rangeFactor defaults to 1.
/allayfollowalways rangeFactor [double]
Configure the allays movement speed factor, which gets multiplied by the allays vanilla movement speed.
movementSpeedFactor defaults to 1.
/allayfollowalways movementSpeedFactor [float]
Enable teleportation if further away than teleportDistance. This behaviour does not exist in vanilla.
teleportEnabled defaults to true.
/allayfollowalways teleportEnabled [boolean]
Set the minimum distance for the allay to teleport to the player.
teleportDistance defaults to 65.
/allayfollowalways teleportDistance [float]
If this is set to true, the default minecraft teleportation cooldown for portals will be used also for the teleportation of the allay.
A side effect is, that chunks may have to be loaded a little bit longer because the allay may not follow the player immediately after
switching dimensions.
Reasons to set this to true might be, that it is possible to push allays through portals. If set to false, they will be teleported back immediately.
considerEntityTeleportationCooldown defaults to false.
/allayfollowalways considerEntityTeleportationCooldown [boolean]
If set, the allay will not teleport when it is dancing.
teleportWhenDancing defaults to true.
/allayfollowalways teleportWhenDancing [boolean]
If set, the allay will not teleport to a player that is touching water.
avoidTeleportingIntoWater defaults to true.
/allayfollowalways avoidTeleportingIntoWater [boolean]
If set, the allay will not teleport to a player that is in lava.
avoidTeleportingIntoLava defaults to true.
/allayfollowalways avoidTeleportingIntoLava [boolean]
If set, the allay will not teleport to a player that inside a wall.
avoidTeleportingIntoWalls defaults to true.
/allayfollowalways avoidTeleportingIntoWalls [boolean]
If set, the allay will keep its liked noteblock while it is in hearing range (noteblockHearingRange) of it.
Vanilla forgets the noteblock when the allay did not hear it for 30 seconds, which would cause allays used in noteblock
farms to teleport to the player occasionally.
keepNoteblockInHearingRange defaults to true.
/allayfollowalways keepNoteblockInHearingRange [boolean]
The noteblock hearing range is the distance in which an allay keeps its liked noteblock, if keepNoteblockInHearingRange
is enabled. The default matches the vanilla hearing range of allays.
noteblockHearingRange defaults to 16.
/allayfollowalways noteblockHearingRange [double]
The player leash mode configures how the allay will behave:
NONE- vanilla behaviourFOLLOW- the allay will follow the player (like dogs do e.g.)DIRECTIONAL_SLOW_DOWN- the allay will slow down if it is moving away from the player and being further away thanleashSlowDownDistanceStart
playerLeashMode defaults to NONE
The reason this leash mode got implemented for, is that allays sometimes move out of the range of a leash and so break
that leash. This can be very annoying and so the generalLeashMode got introduced. The allay will behave like described
for the player leash mode above.
generalLeashMode defaults to DIRECTIONAL_SLOW_DOWN
The leash slow down distance start is the distance to start applying directional slow down. At exactly 6 distance, no
slow down is applied and then the more distance until leashSlowDownDistanceEnd the slowness increases.
leashSlowDownDistanceStart defaults to 6
The leash slow down distance end is the distance where the allay will have 0 movement speed if not facing the entity
that it is leashed to.
leashSlowDownDistanceEnd defaults to 8
Configure per-category logging. Each accepts OFF, INFO, or DEBUG.
logMod controls mod lifecycle logging, defaults to INFO.
logTeleport controls teleportation logging, defaults to OFF.
logLeash controls leash behaviour logging, defaults to OFF.
/allayfollowalways logMod [OFF|INFO|DEBUG]
/allayfollowalways logTeleport [OFF|INFO|DEBUG]
/allayfollowalways logLeash [OFF|INFO|DEBUG]
Changelog
Changelog per release cycle can be found here. This changelog contains information from one release to the next one.
License
Next steps
Implement a test runner?
Additional reading (for devs)
- Fabric wiki
- List of fabric events
- TODO Check this out:
- Set up your IDE using
gradle ideaSyncTaskto generate IDEA run configs
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allay Follow Always
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allay Follow Always
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
支持 MC 1.21.5 - 1.21.11 添加游戏测试以确保功能正常 更改模组结构,使用切石机作为版本控制工具 适应新的 API 以处理区块票(1.21.5+ 使用 ChunkTicketType.Use,1.21.9+ 使用 int 标志) 修复服务器关闭时的区块票序列化错误(1.21.5+) 修复游戏测试中跨维度实体查找的可靠性
支持 MC 1.21.5 - 1.21.11
添加游戏测试以确保功能正常
更改模组结构以使用石砧作为版本控制工具
适配新 API 的分块票处理(1.21.5+ 使用 ChunkTicketType.Use,1.21.9+ 使用 int 标志)
修复服务器关闭时的分块票序列化错误(1.21.5+)
修复游戏测试中跨维度实体查找的可靠性
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧