
a plugin brings the type table in Blue Archive into minecraft combat
目前,这个项目80%以上的代码不是ai生成的,这个readme的中文版本也是
简单来说这是一个将游戏《Blue Archive》中的属性表移植到mc中的插件,尚未完工,未来计划将更多硬编码选项移动到配置文件

这个插件必须以下的项目才能工作:
- PacketEvents:显示攻击类型与防御类型
- BAEnchants:提供类型附魔占位符
这个插件软依赖OverEnchanted插件才能使用,如果不安装它,插件不会报错,但是玩家将无从下手(怪物仍然可以获得类型,但本质上和插件未启用一样),它的核心功能并不需要,只是需要其中的一个特殊物品,因此你可以通过自行修改代码来去除依赖(见开发者指南)
生成的生物可以带有攻击和防御属性,会像ba一样受到加成和克制,可以通过配置文件调整
基本上,安装这个插件后,不会有任何改变,除非玩家主动去获得这些攻击与防御类型
这是一个非侵入性的插件,考虑到它在某种程度上会深刻影响到PVE/PVP的格局,所以玩家可以完全无视这个系统,如果他们不想玩这个系统的话
配置过的 LivingEntity 实体会带有属性,但:
添加了两个命令:
/batype <check|set|reload> <item|entity> <selector> <atk|def> [type]
用于玩家检查实体或实体手中物品的类型,以及管理员设置类型,或重载配置
(玩家需要拥有原版目标选择器的使用权限才能查看其他实体的类型,权限节点:minecraft.command.selector)
/bamodifier <check|set> <selector> <atk|def> <type> [value]
用于玩家检查实体的某一项属性克制加成,以及管理员设置实体某类型的克制加成
玩家和所有物品默认不带有攻击和防御属性(即具有normal攻击和防御属性,对任何攻击和任何护甲都不具有增减,相当于不想玩这个系统可以完全无视)
注意:以上操作均不可逆,拥有属性的武器和防具无法去掉属性,只能更改
可以将带有属性的属性核心放在磨石上以重新获得无属性的属性核心
属性特效加成分为攻击力加成和防御力加成,和ba不一样的是,ba的加成是只针对weak时的伤害增加,但是在这里还有几点:
默认配置为了避免膨胀,WEAK为1.5倍伤害,EFFECTIVE为1.25倍伤害,RESIST为0.5倍伤害,当然,你也可以在代码中修改
属性特效可以通过特殊物品以及某些状态效果获得
这些物品会在Lore中带有明确的提示,例如使用后可获得多长时间的某种特效加成
护甲的属性特效可以理解为“对该属性的特质强化”,例如可以让原本就抵抗的属性造成的伤害更少,但是同样的,会对原本就克制的属性更加克制,造成更多的伤害
嗯,如果还是不能理解,那么也可以不使用,但是我觉得实战里面应该能理解的,光看我这么说可能确实不太好理解
举个例子
你的防御类型为轻装甲,攻击类型为贯穿,同时你带有 15% 的贯穿特效, 10% 的轻装甲特效
如果你攻击了一只攻击类型为爆发,防御类型为轻装甲的怪物,而怪物带有 5% 的爆发特效, 7% 的轻装甲特效:
如果此时怪物攻击了你:
在me.axiumyu.blueArchiveEffect.attribute.TypeDataStorage中有一个方法isTypeCore(item: ItemStack): Boolean,这个方法判定了某物品能否成为属性核心,玩家获得这个物品的方式需要OverEnchanted插件,你可以自行修改其中的条件(但不建议让这个方法永远返回true)
Currently, more than 80% code in this project is NOT generated by AI.
In short, this is a plugin that ports the attribute table from the game "Blue Archive" to Minecraft. It is not yet complete, and future plans include moving more hard-coded options to configuration files.

This plugin require these dependencies to work:
- PacketEvents: to display info on mobs
- BAEnchants: provide enchantments
This plugin also has a soft dependency on the OverEnchanted plugin to function. If this plugin is not installed, plugin can still run, but players can not obtain Types(mobs can still have types, but equals to pugin disabled), its core functionality doesn't require it, but it needs a special item from it. Therefore, you can remove the dependency by modifying the code yourself (see Developer Guide).
Generated mobs can have attack and defense attributes, receiving bonuses and penalties just like in Blue Archive. This can be adjusted via configuration files.
Generally, nothing will happen after you installed this plugin unless players take the initiative to obtain those types.
It's non-invasive. Considering its deep impact to PVE/PVP system, players who doesn't want to dive into this combat system can completely ignore it.
Configured LivingEntity entities will have attributes, but:
Added two commands:
/batype <check|set|reload> <item|entity> <selector> <atk|def> [type]
For players to check types of entity or item on its mainhand
(players need vanilla target selector permission to check other entity, permission node: minecraft.command.selector)
For admins to set types of entity or item on its mainhand, or to reload config.
/bamodifier <check|set> <selector> <atk|def> <type> [value]
For players to check value of certain type bonus of an entity
For admins to set value of certain type bonus of an entity
Players and all items have no attack or defense attributes by default (meaning they have the Normal attack and defense attribute, causing no increase or decrease against any attack or armor. This is equivalent to ignoring the system entirely if you don't want to engage with it).
Note: The above operations are irreversible. Weapons and armor that have attributes cannot have their attributes removed, only changed.
You can place an Attribute Core with an attribute on a grindstone to regain a non-attributed Attribute Core.
Attribute Effect Bonuses are divided into Attack Power bonuses and Defense Power bonuses. Unlike in Blue Archive, where bonuses only apply to WEAK damage increases, here are a few additional points:
To avoid power creep, the default configuration sets WEAK to 1.5x damage, EFFECTIVE to 1.25x damage, and RESIST to 0.5x damage, of course, you can modify it in code.
Attribute Effects can be obtained through special items and certain status effects.
These items will have clear hints in their Lore, such as indicating the duration of a specific effect bonus upon use.
The Armor Attribute Effect can be understood as "a special reinforcement for that attribute". For example, it can make damage from an already resisted attribute even less, but similarly, it will be even more effective against an attribute it already counters, causing more damage.
Well, if you still don't understand, you can choose not to use it. I think it will make sense in actual combat, but it might be hard to grasp just from reading this.
For example
Your defense type is Light Armor, and your attack type is Pierce. You also have a 15% Pierce effect bonus and a 10% Light Armor effect bonus.
If you attack a monster with an attack type of Explosive and a defense type of Light Armor, and the monster has a 5% Explosive effect bonus and a 7% Light Armor effect bonus:
If the monster attacks you:
In me.axiumyu.blueArchiveEffect.attribute.TypeDataStorage, there is a method isTypeCore(item: ItemStack): Boolean. This method determines whether an item can become an Attribute Core. The way players obtain this item requires the OverEnchanted plugin. You can modify the conditions yourself (but it is not recommended to make this method always return true).