Raft's Combat
一款旨在为玩家的基础攻击增加水平范围,并通过强制蓄力机制来改变攻击方式的模组。灵感来源于 SKADA 和 Better Combat:
该模组通过逐渐召唤与玩家视角向量水平平行的射线投射(raycasts)来实现功能。其最大射程由范围指示器表示,随着按住攻击键,指示器会变大,直到达到最大宽度。当达到最大宽度时,完整度指示器将在范围指示器的边缘完全显示。松开攻击键后,攻击将执行,并命中“区域”内检测到的所有实体(射线投射被设计为能“穿透”实体,因此不仅会击中你面前的第一个实体,还会击中其后的实体)。水平偏移是必要的,以便击中那些非常靠近玩家但位于范围指示器之外的目标:
-
如果范围内至少检测到一名实体,指示器将变为红色
-
被你驯服的实体不应被击中。同理,对于已驯服且未针对玩家的坐骑也是如此(因为出于某些原因它们没有所有者,感谢 Mojang)
-
类似于弓,通过在快捷栏中滚动切换到其他物品可以取消攻击
-
盾牌会有特殊的交互效果:当正在蓄力且举起盾牌时,无需同时按住攻击键即可继续蓄力。一旦放下盾牌,攻击就会立即发生。这是为了减轻管理鼠标的认知负担。目前仅盾牌具备此功能
-
暴击和马匹冲撞攻击也有特殊之处,即该模组将它们限制在第一次注册的攻击上,否则伤害会变得过于夸张。准星附近的射线投射应优先处理,因为它们是最先创建和处理的
-
该模组适用于所有具有
c:tools/melee_weapon标签的物品。如果该物品恰好是一种工具,并且在其对特定方块有效(例如斧头对木头),则模组会首先检查准星射线投射所指向的方块是否是从该工具中受益的方块。如果是,则该工具将进入采集模式,直到松开攻击按钮。如果没有检测到此类方块,则该工具将被视为武器,并开始蓄力
局限性
-
某些物品在使用时会阻碍开始蓄力或在蓄力期间使用,例如食物、药水、弓和弩。这是一个设计决策,如果在 Issues 中有足够的反馈,可以在未来的更新中将其转化为配置项
-
由于这作为(咳咳
更好)横扫之刃的实现方式,该模组禁用了横扫之刃的功能。你可以给武器附魔横扫之刃,但它不会有任何效果。同样,与第 1 点一样,如果有 Issue 提出,可以逆转这一行为
配置选项
我喜欢配置,所以如果你希望该模组处理任何相关特性,请随时提交 Issue。否则,以下是该模组允许你配置的内容:
客户端
- 当范围内至少有一个实体时,准星是否也应更改颜色
- 当没有目标和检测到目标时 GUI 元素的颜色
- 满蓄力时范围指示器的透明度值
- 完整度指示器的最小透明度值(无蓄力时)
- 范围指示器的高度(不会增加垂直范围,仅为视觉效果)
服务器端
- 默认情况下,如果蓄力进度低于 60%,攻击不会产生击退效果。这是为了避免低投入攻击导致的击退泛滥,但你可能喜欢这样,因此有一个选项可以指定产生击退所需的最小百分比
- 默认水平攻击范围的宽度比例(适用于配置中未指定的所有武器)
- 特定武器的自定义宽度。支持正则表达式和列表,但必须通过一种非常奇怪的字符串格式实现。请参阅配置文件中的示例
Raft's Combat
A mod that aims to give the player's basic attacks more reach horizontally and shake up the way attacks are performed by giving them a mandatory charging period. Inspired by SKADA and Better Combat:
It functions by progressively summoning raycasts which are horizontally parallel the player's view vector. Their max range is represented by the range indicator which grows larger as the attack key is held, until it reaches its maximum width. Upon reaching maximum width, the fullness indicator will fully appear at the edge of the range indicator. On release of the attack key, the attack will be performed and will hit all entities detected in the "area" (the raycasts were designed as such that they "pierce" entities and as such will not only hit the first entity in front of you but the ones behind it as well). The horizontal offset is necessary in order to hit targets which are very near the player but which are present outside the range indicator:
-
The indicator will switch to a red color if at least one entity is detected within range
-
Tamed entities which you own shouldn't be hittable. The same is true for mounts that are tamed and that aren't targeting the player (since for some reason they don't have owners, thanks Mojang)
-
Similar to bows, the attack can be cancelled by scrolling to another item in the hotbar
-
A special interaction happens with shields: When a charge is ongoing and a shield is held up, there is no need to also hold the attack key to continue the charge. The attack will happen as soon as the shield is lowered. This is to reduce the mental load of managing the mouse. For now, only the shield has this functionality
-
Critical Hits and Mace attacks are also special in the sense that the mod restricts them to the first attack which is registered, otherwise the damage would go too crazy. Raycasts near the crosshair should be prioritized since they are created and handled first.
-
The mod works on all items that have the
c:tools/melee_weapontag. If the item also happens to be a tool which has blocks on which it is effective on (such as axes on wood), then the mod will first check if the block being targeted by the crosshair raycast is a block which benefits from the tool. If it is, then the tool will enter its harvest mode until the attack button is released. If no such blocks are detected, then the tool will be treated as a weapon and the charge will initiate
Limitations
-
Certain items, when used, impede initiating a charge or being used during a charge, such as foods, potions, bows and crossbows. This is a design decision which could be turned into a config in a future update if there are enough voices for it in the Issues
-
Since this works as a(n) (cough
better) implementation of Sweeping Edge, the mod disables the functionality of Sweeping Edge. You can enchant a weapon with Sweeping Edge, but it won't do anything. Similarly with point 1, this can be overturned if an Issue is posted
Configanigans
I love configuration, so if there are relevant features which you would want to see this mod handle feel free to make an Issue about it. Otherwise, here is what the mod lets you configure:
Client
- Whether the crosshair should change color as well when at least one entity is in range
- Colors of the GUI elements when there are no targets and when there are targets detected
- The alpha value of the range indicators at max charge
- The minimum alpha value of the fullness indicators (at no charge)
- The height of the range indicators (doesn't increase the vertical range, it is only visual)
Server
- By default, attacks do not do knockback if the charge progression is below 60%. This is to avoid knockback spam with low-commital attacks, but you may be into that so there is an option to specify where the minimal % should be for knockback to be incurred
- The width ratio of the default horizontal attack range (for all weapons that aren't specified in the config)
- Custom widths for specific weapons. Regex and lists both are supported, but have to be implemented through a very cursed string format. See the config for an example
下载 Raft's Combat
下载 Raft's Combat
下载 Raft's Combat
下载 Raft's Combat
下载 Raft's Combat
下载 Raft's Combat
- 修复了自 1.0.4 版本以来关于攻击指示器选项默认状态的日志刷屏问题
- 水平范围不再基于交互范围(修复了该 bug)
- 默认情况下,充能进度指示器以低不透明度显示,以便玩家预判充能结束时间(可在配置文件中更改)
- 恢复了相机滚动效果,因为自 0.1.2 版本起我们已不再渲染世界内内容
- 在客户端配置中添加了颜色配置项
- 启动器中现在应能显示模组图标
- 攻击速度的增加与减少效果(如挖掘疲劳和急迫)现在会影响充能持续时间
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧