|
|
战斗+ 核心 (Combat+ Core)Github |相关wiki |源站链接支持: fabric , quilt这是战斗+系列的核心库模组和兼容性层,允许战斗+系列具有极高水平的模组间兼容性。

API 信息
该库添加了许多实用方法和接口,使得向游戏中添加独特的武器和附魔变得更加容易。
任何使用这些接口的模组都将与战斗+系列兼容。
接口
- 近战武器
- 用于任何近战武器。
- 提供完全充能攻击、暴击攻击和击杀时触发的回调。
- 必须实现一个伤害数值。
- 双持武器
- 继承自近战武器,用于可以在任一手中使用的武器,并且可能支持改变游戏的副手附魔。
- 还包含了一个副手伤害的方法。
- CPC附魔
- 提供了附魔执行完全充能命中、暴击命中和击杀操作的钩子。
- 提供了更高级的伤害版本,其中任何插槽的附魔都可以贡献到伤害加成中。
附魔类型
一个物品只能拥有每种类别的一个附魔(不包括副手附魔)。
- 附加伤害
- 进阶版的基础伤害附魔。
- 任何附魔理论上都可以增加伤害,但除非有特殊情况,否则应该主要使用附加伤害附魔。
- 与基础的伤害附魔不兼容。
- 武器效用
- 为武器添加一些额外实用功能的附魔,或者增强其现有效果。
- 如扫荡之刃即为武器效用。
- 视角
- 修改使用者或目标击中状态的附魔。
- 如火焰视角显然属于视角附魔。
- 副手
- 一个杂项组,旨在适用于副手武器。
- 与其他组大部分不兼容。
数据包信息
为了提高与战斗+生态系统之外的模组的兼容性,提供了一系列数据包标签。
这些标签会影响战斗+的各种功能,比如附魔的资格。
物品标签
- `combat-plus:melee_weapon`
- 这些物品被视为未实现的近战武器,并且将有资格获得针对近战武器的附魔。
- `combat-plus:dual_weapon`
- 这个标签包含在近战武器标签中。
- 这些物品将被视为未实现的双持武器,并且有资格获得相关附魔。
- `combat-plus:breaks_shields`
- 这些物品可以打破盾牌。
附魔标签
每种附魔类型都有相应的标签。其他模组开发者或模组包制作者可以使用这些标签将其他附魔分类为四个组。
与同一标签组内的附魔不兼容的战斗+附魔。
例如,武器效用附魔与任何在`combat-plus:weapon_utility`标签中的附魔不兼容。
游戏规则
战斗+核心添加了两个额外的游戏规则来修改原版武器机制。
- `keepLoyaltyTridents`
- 当为true时,忠诚三叉戟投掷后不会离开物品栏,也无法被拾取或返回给投掷者。相反,三叉戟会进入冷却状态。更高级别的忠诚将减少冷却时间。
- `sweepingRequiresEnchantment`
- 当为true时,剑的扫击效果只会在剑具有扫荡之刃附魔时发生。这使得玩家可以决定扫击是否应被视为剑的本机属性,还是附魔的产物。
来自Modrinth所有游戏版本1.21.51.21.61.21.71.21.81.21.41.21.21.21.31.211.21.11.20.31.20.41.201.20.11.20.21.20.51.20.6所有类型fabricquilt4.0.0+1.21.5combatplus-core-4.0.0+1.21.5.jar下载4.0.0+1.21.5#Releasecombatplus-core-4.0.0+1.21.5-sources.jar下载4.0.0+1.21.5#ReleaseMajor update to make the library compatible with 1.21.5## Additions- New item data components:- `combat-plus:melee_weapon`- Holds two floats, weapon damage and offhand damage.- All Melee and Dual weapons are expected to use this data component.- Combat+ mods can use this component to acquire damage values for callbacks (interface values from MeleeWeapon should always be preferred).- `combat-plus:cooldown_group`- Takes an identifier and sets what group the item should use when on cooldown.- `combat-plus:max_use_time`- Determines how many ticks an item can be used for.- This component was moved from Dual Swords.- New enchantment component type: data component enchantment effects!- Enchantments can grant temporary data components to items.- The component is added when the item is enchanted and lost when the enchantment is removed.- Currently supports:- Cooldown Group- Max Use Time- Blocks Attacks- New attribute: Protection Effectiveness- Treated as a multiplier, this determines how effective protection enchantments are on the entity.- Default value of 1 (normal effectiveness).## Changes- Callbacks for blocking attacks now accept a damage source instead of the attacking entity.## Bugfixes- Tridents are no longer unbreakable with KeepLoyaltyTridents.- When using `KeepLoyaltyTridents`, only tridents with Loyalty will go on cooldown.展开版本: 4.0.0+1.21.5支持游戏: 1.21.5, 1.21.6, 1.21.7, 1.21.8类型:FabricQuiltRelease下载次数: 6,9073.2.0+1.21.4combatplus-core-3.2.0+1.21.4.jar下载3.2.0+1.21.4#Releasecombatplus-core-3.2.0+1.21.4-sources.jar下载3.2.0+1.21.4#ReleaseMinor update to add the groundwork for a shield-related features.## Additions- Added new class for easily executing callbacks from an item.- Added new interface, BlockingItem.- Items with the ability to block attacks should implement this interface.- It contains methods that allow the item to configure the nature of its blocking.- Cooldown duration when disabled.- How many ticks the item must be used for until it is actively blocking attacks.- Callbacks- Damaging the shield.- Post-block actions.- Added enchantment callback for post-block actions.- Added enchantment context (for conditions) for post-block actions.- In this context, the target is the owner of the enchanted item, the one who blocked the attack.- Added debug shield item and debug blocking enchantment for developers.- **[LilyLib]** Enchantment descriptions now also generate a `.description` key as well as the existing `.desc` key.展开版本: 3.2.0+1.21.4支持游戏: 1.21.4类型:FabricQuiltRelease下载次数: 5,4323.2.0+1.21.3combatplus-core-3.2.0+1.21.3.jar下载3.2.0+1.21.3#Releasecombatplus-core-3.2.0+1.21.3-sources.jar下载3.2.0+1.21.3#ReleaseMinor update to add the groundwork for a shield-related features.## Additions- Added new class for easily executing callbacks from an item.- Added new interface, BlockingItem.- Items with the ability to block attacks should implement this interface.- It contains methods that allow the item to configure the nature of its blocking.- Cooldown duration when disabled.- How many ticks the item must be used for until it is actively blocking attacks.- Callbacks- Damaging the shield.- Post-block actions.- Added enchantment callback for post-block actions.- Added enchantment context (for conditions) for post-block actions.- In this context, the target is the owner of the enchanted item, the one who blocked the attack.- Added debug shield item and debug blocking enchantment for developers.- **[LilyLib]** Enchantment descriptions now also generate a `.description` key as well as the existing `.desc` key.展开版本: 3.2.0+1.21.3支持游戏: 1.21.2, 1.21.3类型:FabricQuiltRelease下载次数: 3503.2.0+1.21combatplus-core-3.2.0+1.21.jar下载3.2.0+1.21#Releasecombatplus-core-3.2.0+1.21-sources.jar下载3.2.0+1.21#ReleaseMinor update to add the groundwork for a shield-related features.## Additions- Added new class for easily executing callbacks from an item.- Added new interface, BlockingItem.- Items with the ability to block attacks should implement this interface.- It contains methods that allow the item to configure the nature of its blocking.- Cooldown duration when disabled.- How many ticks the item must be used for until it is actively blocking attacks.- Callbacks- Damaging the shield.- Post-block actions.- Added enchantment callback for post-block actions.- Added enchantment context (for conditions) for post-block actions.- In this context, the target is the owner of the enchanted item, the one who blocked the attack.- Added debug shield item and debug blocking enchantment for developers.- **[LilyLib]** Enchantment descriptions now also generate a `.description` key as well as the existing `.desc` key.展开版本: 3.2.0+1.21支持游戏: 1.21, 1.21.1类型:FabricQuiltRelease下载次数: 5,5463.1.0+1.21.4combatplus-core-3.1.0+1.21.4.jar下载3.1.0+1.21.4#Releasecombatplus-core-3.1.0+1.21.4-sources.jar下载3.1.0+1.21.4#Release## Changes- Updated to 1.21.4 Minecraft.展开版本: 3.1.0+1.21.4支持游戏: 1.21.4类型:FabricQuiltRelease下载次数: 2,6833.1.0+1.21.3combatplus-core-3.1.0+1.21.3.jar下载3.1.0+1.21.3#Releasecombatplus-core-3.1.0+1.21.3-sources.jar下载3.1.0+1.21.3#Release## Additions- **[LilyLib]** Added an equipment model datagen provider.## Changes- Updated to 1.21.3 Minecraft.- **[LilyLib]** Enchantment containers require a entity registry lookup.展开版本: 3.1.0+1.21.3支持游戏: 1.21.2, 1.21.3类型:FabricQuiltRelease下载次数: 4661.1.0+1.20.4combatplus-core-1.1.0+1.20.4.jar下载1.1.0+1.20.4#Releasecombatplus-core-1.1.0+1.20.4-sources.jar下载1.1.0+1.20.4#ReleaseMinor patch to enable a fix for a niche compatibility issue in Dual Swords.## Additions- Melee weapons now have a stack-aware version of `getWeaponDamage`.- Dual weapons now have a stack-aware version of `getOffhandDamage`.展开版本: 1.1.0+1.20.4支持游戏: 1.20.3, 1.20.4类型:FabricQuiltRelease下载次数: 2,8971.1.0+1.20.1combatplus-core-1.1.0+1.20.1.jar下载1.1.0+1.20.1#Releasecombatplus-core-1.1.0+1.20.1-sources.jar下载1.1.0+1.20.1#ReleaseMinor patch to enable a fix for a niche compatibility issue in Dual Swords.## Additions- Melee weapons now have a stack-aware version of `getWeaponDamage`.- Dual weapons now have a stack-aware version of `getOffhandDamage`.展开版本: 1.1.0+1.20.1支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricQuiltRelease下载次数: 9,7333.1.0+1.21combatplus-core-3.1.0+1.21.jar下载3.1.0+1.21#Releasecombatplus-core-3.1.0+1.21-sources.jar下载3.1.0+1.21#Release## Additions- Added gamerule (`lethalPoison`) to toggle whether poison can be lethal.- Includes new related damage type.- Sweeping attacks now apply Combat+ post-charged hit effects to all affected entities.- Enchanted Numerals now grants translation keys for 0 to 10.- **[LilyLib]** Added datagen provider for `assets/.../sounds.json`- **[LilyLib]** Added datagen provider for particle textures.- **[LilyLib]** Added wrapper provider for the Fabric language datagen provider.- This provides common useful functions: adding enchantments with their descriptions (for inter-mod compatibility), and adding simple death translations.## Changes- `pvpEnchantmentModifier` now has a minimum value of 0.- `#combat-plus:standard_attack` tag includes the vanilla `is_player_attack` tag instead of the individual player attack.展开版本: 3.1.0+1.21支持游戏: 1.21, 1.21.1类型:FabricQuiltRelease下载次数: 11,8943.0.0+1.21combatplus-core-3.0.0+1.21.jar下载3.0.0+1.21#Releasecombatplus-core-3.0.0+1.21-sources.jar下载3.0.0+1.21#ReleaseMajor patch to finally bring Combat+ into the world of 1.21, this update completely rewrites literally everything that even remotely interacted with enchantments.For obvious reasons, version 3.0.0 contains breaking changes for almost everything.# Brief OverviewYes, this is the *brief* version...Check [Github](https://github.com/Provismet/CombatPlus-Core/releases/tag/3.0.0-mc1.21) for the full details.## Additions- Combat+ Core now reveals LilyLib to dependent mods.- LilyLib was already bundled in the jar, it\'s just made available now.- LilyLib patch notes will be included in Combat+ patch notes.- Added several new enchantment components types:- `combat-plus:post_charged_attack`- `combat-plus:post_critical_attack`- `combat-plus:post_kill`- `combat-plus:bonus_damage`- So items that are not the primary weapon can increase damage too.- `combat-plus:gamerule_damage`- Damage dealt against players is modified by the new gamerule.- This allows for world-based PvP balancing.- New gamerule that modifies enchantment damage effectiveness against players.- Extra Damage Enchantments and Extended Enchanting both had their seperate versions of this gamerule before. They have been moved into Combat+ now.- Added a small library of common effects and conditions for enchantments.- Added a new type of enchantment effect: Double Entity Effect- This is used by the Combat+ components and allows for effects for consider two entities at once.- Added two built-in resource packs:- One provides Roman Numerals for enchantments with a level over 10 (up to 255).- One replaces Roman Numerals for enchantment levels with plain numbers (up to 255).- Vanilla Maces are considered melee weapons by Combat+.- Added two new loot functions.## Changes- Sharpness, Smite, Bane of Arthropods, and Fire Aspect are now overriden entirely by Combat+ Core to change their supported item tags.- Previously a mixin was used to change the tags instead.- Smite and Bane of Arthropods use the new `combat-plus:gamerule_damage` component.- The enchantment types of Combat+ (Additional Damage, Offhand, Weapon Utility, Aspect) have been converted into enchantment tags.- Combat+ Enchantment Helper methods have different parameters.## Removals- The entire old enchanting system. :(## New Features From LilyLib- Enchantment datagen provider- DamageType datagen provider- DamageType tag datagen provider- Enchantment Containers- Combines a registry key with an enchantment builder. Highly useful for eliminating code duplication if you need to bootstrap your enchantments.- Also contains useful utility for getting registry entries of the enchantment.- DamageType Containers- Combines a registry key with a damage type. Highly useful for eliminating code duplication.- Also has utility methods for generating damage sources.- Fabric resource condition to only load certain things when in dev mode.展开版本: 3.0.0+1.21支持游戏: 1.21类型:FabricQuiltRelease下载次数: 1,2612.0.1+1.20.6combatplus-core-2.0.1+1.20.6.jar下载2.0.1+1.20.6#Releasecombatplus-core-2.0.1+1.20.6-sources.jar下载2.0.1+1.20.6#ReleasePatch update to add some little features before updating to the gauntlet that is 1.21.## Additions- Development environments now have access to a debug enchantment and item, these use their callbacks for console logs. This is to help developers assess when callbacks are workings.- Enchantments that use the Combat+ enchantability tags will now appear in the Creative Mode inventory.展开版本: 2.0.1+1.20.6支持游戏: 1.20.5, 1.20.6类型:FabricQuiltRelease下载次数: 1,0332.0.0+1.20.6combatplus-core-2.0.0+1.20.6.jar下载2.0.0+1.20.6#Releasecombatplus-core-2.0.0+1.20.6-sources.jar下载2.0.0+1.20.6#ReleaseMajor release that includes some breaking changes to account for Mojang\'s own breaking changes in 1.20.5/6.## Additions- Added abstract class for melee weapons.- Added enchantability item tags for the 4 new item groups + primary versions of these tags.- Vanilla enchantments now use Combat+ item tags for when appropriate.- The Combat+ tags extend the vanilla ones.- Added tag translations.## Changes- MeleeWeapon.getWeaponDamage now requires an ItemStack parameter.- Combat+ enchantment classes can no longer use the vanilla damage method, the Combat+ version should be used instead.- CombatTags has been renamed to CPCItemTags.## Removals- FabricASM is no longer used or included by Combat+. (Hurray!)展开版本: 2.0.0+1.20.6支持游戏: 1.20.5, 1.20.6类型:FabricQuiltRelease下载次数: 1,0581.0.0+1.20.4combatplus-core-1.0.0+1.20.4.jar下载1.0.0+1.20.4#Releasecombatplus-core-1.0.0+1.20.4-sources.jar下载1.0.0+1.20.4#Release展开版本: 1.0.0+1.20.4支持游戏: 1.20.3, 1.20.4类型:FabricQuiltRelease下载次数: 4,2231.0.0+1.20.1combatplus-core-1.0.0+1.20.1.jar下载1.0.0+1.20.1#Releasecombatplus-core-1.0.0+1.20.1-sources.jar下载1.0.0+1.20.1#Release展开版本: 1.0.0+1.20.1支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricQuiltRelease下载次数: 6,947全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
战斗+ 核心 |
|