简谈格挡增伤和ArmorBreaker原理
-
格挡伤害计算代码
if (!damageSrc.isUnblockable() && this.isBlocking() && damageAmount > 0.0F) {
damageAmount = (1.0F + damageAmount) * 0.5F;
}mc可以在一个伤害周期内造成多段伤害,每造成一段伤害就会减少一次护甲耐久度
如果玩家在一个伤害周期内造成两段伤害为b和c,a=b+c
那么格挡后的伤害 (1 + b) * 0.5 + (1 + c) * 0.5 > (a + 1) * 0.5
格挡时 空手暴击 伤害为 1.25
格挡时 空手无暴击+空手暴击 伤害为1.75
详情请看视频 -
here is your "armour-breaker" in scriptapi:
module.on('attack', function (e){
target = e.gettargetentity()
mc.theplayer.sendqueue.addtosendqueue(new c02packetuseitem(target, c02packetuseitem.action_attack))
} -
here is your "armour-breaker" in scriptapi:
module.on('attack', function (e){
target = e.gettargetentity()
mc.theplayer.sendqueue.addtosendqueue(new c02packetuseitem(target, c02packetuseitem.action_attack))
}This post is deleted! -
This post is deleted!
This post is deleted! -
This post is deleted!
This post is deleted! -
This post is deleted!
-
here is your "armour-breaker" in scriptapi:
module.on('attack', function (e){
target = e.gettargetentity()
mc.theplayer.sendqueue.addtosendqueue(new c02packetuseitem(target, c02packetuseitem.action_attack))
}This post is deleted! -
This post is deleted!
This post is deleted! -
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
This post is deleted! -
This post is deleted!
-
here is your "armour-breaker" in scriptapi:
module.on('attack', function (e){
target = e.gettargetentity()
mc.theplayer.sendqueue.addtosendqueue(new c02packetuseitem(target, c02packetuseitem.action_attack))
}This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login