Combat+ Core
这是 Combat+ 系列模组的核心库模组和兼容性层,使该系列能够以极高的跨模组兼容水平运行。
在 Modrinth 上查看合集 此处。
API 信息
该库添加了许多实用方法和接口,使得向游戏中添加独特的武器和附魔变得更加容易。
任何使用这些接口的模组都将与 Combat+ 系列兼容。
接口
- Melee Weapon(近战武器)
- 用于所有近战武器。
- 提供触发完全蓄力攻击、暴击和击杀的回调。
- 必须实现一个伤害值。
- Dual Weapon(双持武器)
- 继承自 Melee Weapon,用于可以在任意手持握且可能支持改变游戏平衡的主手附魔的武器。
- 此外还包含一个用于计算副手伤害的方法。
- CPCEnchantment
- 为附魔提供钩子,使其能够对完全蓄力命中、暴击和击杀执行操作。
- 提供一种更高级的伤害版本,其中任意槽位的附魔都可以对伤害加成做出贡献。
附魔类型
物品只能拥有每个类别的一个附魔(不包括副手附魔)。
- Additional Damage(额外伤害)
- 原版伤害附魔的高级版本。
- 理论上任何附魔都能增加伤害,但除非有特殊情形,否则这应主要由 Additional Damage 附魔来完成。
- 此外,它与原版的 Damage Enchantments(伤害附魔)不兼容。
- Weapon Utility(武器功能)
- 为武器添加一些额外功能或增强其现有效果的附魔。
- Sweeping Edge(横扫之刃)属于此类。
- Aspect(属性)
- 修改用户或目标状态的附魔。
- Fire Aspect(火焰附加)显然属于此类。
- Offhand(副手)
- 一个杂项组,旨在应用于副手武器。
- 与其他组基本不兼容。
数据包信息
为了提高与 Combat+ 生态系统之外模组的兼容性,提供了一系列数据包标签。
这些标签会在 Combat+ 的各种特性中被考虑,例如附魔的资格判定。
物品标签
combat-plus:melee_weapon- 这些物品被视为未实现的 Melee Weapons(近战武器),将有资格获得针对近战武器的附魔。
combat-plus:dual_weapon- 此标签包含在 melee weapon 标签中。
- 这些物品将被视为未实现的双持武器,并有资格获得相关的附魔。
combat-plus:breaks_shields- 这些物品可以破坏盾牌。
附魔标签
每种附魔类型都有对应的标签。其他模组开发者或整合包制作者可以使用这些标签将其他附魔分类到这四个组中。
Combat+ 的附魔将与与其所属组相同标签的附魔不兼容。
例如,Weapon Utility(武器功能)附魔与 combat-plus:weapon_utility 标签中的任何附魔都不兼容。
游戏规则
Combat+ Core 添加了两个额外的游戏规则,用于修改原版武器机制。
keepLoyaltyTridents- 当为 true 时,忠诚三叉戟投掷后不会离开玩家的物品栏,也无法被捡起或返回投掷者。相反,三叉戟将进入冷却时间。更高的忠诚等级会减少冷却时间。
sweepingRequiresEnchantment- 当为 true 时,剑的横扫效果仅在剑拥有 Sweeping Edge(横扫之刃)附魔时才会发生。这允许玩家决定横扫是否应被视为剑的原生属性,还是附魔的效果。
pvpEnchantmentModifier- 伤害类附魔可以使用
combat-plus:gamerule_damage组件来代替原版的伤害组件。对此类伤害造成的伤害值将在针对玩家时乘以该游戏规则的数值。这是为了 PvP 平衡性调整。
- 伤害类附魔可以使用
lethalPoison- 当为 true 时,中毒效果将能够杀死玩家和生物,而不是让它们停留在半颗心的生命值。
展示视频
Combat+ Core
This is the core library mod and compatibility layer that allows the Combat+ series to function with an extremely high level of inter-mod compatibility.
View the collection on Modrinth here.
API Information
The library adds a number of utility methods and interfaces that make it easier to add unique weapons and enchantments to the game.
Any mod that makes use of these will be compatible with the Combat+ series.
Interfaces
- Melee Weapon
- Used for any melee weapon.
- Provides callbacks that trigger for fully charged attacks, critical attacks, and killing.
- Must implement a damage value.
- Dual Weapon
- Inherit from Melee Weapon, used for weapons which could be wielded in either hand and may support game-changing offhand enchantments.
- Additionally contains a method for offhand damage.
- CPCEnchantment
- Offers hooks for enchantments to perform actions for fully charged hits, critical hits, and killing.
- Offers a more advanced version of damage, where an enchantment of any slot can contribute to the damage bonus.
Enchantment Types
An item can only have one enchantment of each category (not including offhand enchantments).
- Additional Damage
- A more advanced version of vanilla damage enchantments.
- Any enchantment technically can increase damage, but this should mostly be done by Additional Damage enchantments unless there is a special circumstance.
- Additionally incompatible with vanilla's Damage Enchantments.
- Weapon Utility
- Enchantments that add some additional utility function to a weapon, or otherwise enhance its existing effects.
- Sweeping Edge would be a Weapon Utility.
- Aspect
- Enchantments that modify the state of the user or the target on hit.
- Fire Aspect would (obviously) be an Aspect.
- Offhand
- A misc group that is intended to apply to offhanded weapons.
- Largely incompatible with the other groups.
Datapack Information
To improve compatibility with mods outside of the Combat+ ecosystem, a series of datapack tags are available.
These tags are considered in various features of Combat+, such as eligibility for enchantments.
Item Tags
combat-plus:melee_weapon- These items are considered unimplemented Melee Weapons and will be eligible for enchantments that target Melee Weapons.
combat-plus:dual_weapon- This tag is included in the melee weapon tag.
- These items will be considered unimplemented dual weapons and will be eligble for relevant enchantments.
combat-plus:breaks_shields- These items can break shields.
Enchantment Tags
There is a corresponding tag for each enchantment type. This can be used by other modders or modpack makers to categorise other enchantments into the four groups.
Combat+ enchantments will be incompatible with enchantments that are in the same tag as their group.
For example a Weapon Utility enchantment is incompatible with any enchantment in the combat-plus:weapon_utility tag.
Game Rules
Combat+ Core adds two additional gamerules to modify vanilla weapon mechanics.
keepLoyaltyTridents- When true, loyalty tridents will not leave the inventory when thrown, nor can they be picked up or return to the thrower. Instead tridents will go on cooldown. Higher levels of loyalty will decrease the cooldown.
sweepingRequiresEnchantment- When true, the sweeping effect of a sword will only occur if the sword has the Sweeping Edge enchantment. This allows the player to decide whether sweeping should be considered a native property of the sword, or the product of an enchantment.
pvpEnchantmentModifier- Damaging enchantments can use the
combat-plus:gamerule_damagecomponent instead of vanilla's damage component. Damage of this type will be multiplied by this gamerule's value when dealt against players. This is for PvP balancing.
- Damaging enchantments can use the
lethalPoison- When true, poison will be able to kill players and mobs instead of leaving them on half a heart.
Showcase Video
下载 Combat+ Core
下载 Combat+ Core
下载 Combat+ Core
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Combat+ Core
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Combat+ Core
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Combat+ Core
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Combat+ Core
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Combat+ Core
下载 Combat+ Core
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Combat+ Core
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
重大更新,主要为内部调整,以适配 26.x 版本。
新增内容
combat-plus:magic_damage实体属性。combat-plus:projectile_damage实体属性。combat-plus:is_melee伤害类型标签(源自 Extended Enchanting)。combat-plus:is_magic伤害类型标签(源自 Additional Armoury)。- 用于元素伤害的新增伤害类型标签。
combat-plus:is_elementalcombat-plus:is_watercombat-plus:is_earthcombat-plus:is_windcombat-plus:is_lightcombat-plus:is_darkcombat-plus:is_lifecombat-plus:is_deathcombat-plus:is_spatialcombat-plus:is_temporalcombat-plus:is_void
- 客户端 API 初始化程序,便于实现模组兼容功能。
变更
- 将所有以
CPC为前缀的类名重命名为以CombatPlus为前缀。- 例如:
CPCEnchantmentTags->CombatPlusEnchantmentTags
- 例如:
- 将代码库的大部分模块移至新的 API 包中。
- 伤害类型标签重命名:
combat-plus:standard->combat-plus:is_standard
重大更新,主要为内部调整,以适配 26.x 版本。
新增内容
combat-plus:magic_damage实体属性。combat-plus:projectile_damage实体属性。combat-plus:is_melee伤害类型标签(源自 Extended Enchanting)。combat-plus:is_magic伤害类型标签(源自 Additional Armoury)。- 用于元素伤害的新增伤害类型标签。
combat-plus:is_elementalcombat-plus:is_watercombat-plus:is_earthcombat-plus:is_windcombat-plus:is_lightcombat-plus:is_darkcombat-plus:is_lifecombat-plus:is_deathcombat-plus:is_spatialcombat-plus:is_temporalcombat-plus:is_void
- 客户端 API 初始化程序,便于实现模组兼容功能。
变更
- 将所有以
CPC为前缀的类名重命名为以CombatPlus为前缀。- 例如:
CPCEnchantmentTags->CombatPlusEnchantmentTags
- 例如:
- 将代码库的大部分模块移至新的 API 包中。
- 伤害类型标签重命名:
combat-plus:standard->combat-plus:is_standard
修复了在 1.21.11 版本中进一步测试后发现导致崩溃的问题的热更新。
错误修复
- [LilyLib] 修复了由渲染 FlatParticles 引起的崩溃。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧