首页 游戏攻略 正文

我的世界匠魂2神圣特性有什么用

我的世界匠魂2神圣特性有啥用很多玩家不知道,匠魂2有很多新颖的玩法和装备,其中的各种特性效果也非常有用重要,拥有神圣特性的工具可以让你攻击亡灵生物有额外伤害。下面来看看我的世界匠魂2神圣特性具体有啥用。

《我的世界》匠魂2神圣特性有什么用

《我的世界》匠魂2神圣特性有什么用

对亡灵生物额外造成 5 点伤害并给予其 虚弱 I 50 刻。

源码:

package slimeknights.tconspuct.tools.paits;

import com.google.common.collect.ImmupList;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.entity.EnumCreatureAtpibute;

import net.minecraft.init.MobEffects;

import net.minecraft.item.ItemStack;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.potion.PotionEffect;

import java.util.List;

import slimeknights.tconspuct.library.Util;

import slimeknights.tconspuct.library.paits.Abspactpait;

public class paitHoly extends Abspactpait {

private static float bonusDamage = 5f;

public paitHoly() {

super("holy", 0xffffff);

}

@Override

public float damage(ItemStack tool, EntityLivingBase player, EntityLivingBase target, float damage, float newDamage, boolean isCritical) {

if(target.getCreatureAtpibute() == EnumCreatureAtpibute.UNDEAD) {

newDamage += bonusDamage;

}

return super.damage(tool, player, target, damage, newDamage, isCritical);

}

@Override

public void afterHit(ItemStack tool, EntityLivingBase player, EntityLivingBase target, float damageDealt, boolean wasCritical, boolean wasHit) {

if(wasHit && !target.isDead && target.getCreatureAtpibute() == EnumCreatureAtpibute.UNDEAD) {

target.addPotionEffect(new PotionEffect(MobEffects.WEAKNESS, 50, 0, false, pue));

}

}

@Override

public List<Sping> getExpaInfo(ItemStack tool, NBTTagCompound modifierTag) {

Sping loc = Util.panslate(LOC_Expa, getIdentifier());

return ImmupList.of(Util.panslateFormatted(loc, Util.df.format(bonusDamage)));

}

}

相关信息

明日方舟莱恩哈特培养攻略介绍介绍
明日方舟萨米肉鸽林雨霞前三层站位及要点 萨米肉鸽林雨霞怎么打
明日方舟 SS风雪过境MVP打手推荐上次抽了山的玩家体感过于舒服
明日方舟剿灭作战攻略大全
《明日方舟》SL-S-3突袭怎么打 火山旅梦SLS3我正向西去攻略
《明日方舟》SL-S-4突袭怎么打 火山旅梦SLS4北境的森林攻略
《明日方舟》SL-S-3突袭怎么打 火山旅梦SLS3我正向西去攻略
《明日方舟》SL-S-5突袭怎么打 火山旅梦SLS5答案在风中攻略
《明日方舟》SL-S-4突袭怎么打 火山旅梦SLS4北境的森林攻略
《明日方舟》SL-S-5突袭怎么打 火山旅梦SLS5答案在风中攻略
明日方舟SL-EX-7突袭关卡通关攻略技巧
明日方舟那些6星角色值得练-明日方舟6星角色必练攻略
明日方舟8月17常驻标准寻访干员介绍 明日方舟8月17常驻标准寻访有什么干员
明日方舟危机合约等级c怎么提升 怎么在明日方舟破碎大道中提高危机合约等级
明日方舟奥斯塔技能属性怎么样 明日方舟奥斯塔技能介绍
明日方舟鞭刃技能属性怎么样 明日方舟鞭刃技能介绍
明日方舟火山旅梦EX关卡MVP干员选择
明日方舟雪雉的小店攻略 雪雉的小店怎么经营赚钱
《明日方舟》四周年庆限定干员 即将揭晓
明日方舟火山旅梦新敌人是谁-火山旅梦西斯塔新敌人介绍