首页 游戏攻略 正文

我的世界匠魂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)));

}

}

相关信息

团战经理忍者信息分享
团战经理僧人信信息分享
严阵以待C2炸弹具体效果介绍
喋血复仇打投掷者注意事项分享
迷走深空:碎舰师各类物品价格介绍
喋血复仇打呕吐者注意事项分享
喋血复仇打臭气者注意事项分享
严阵以待门后陷阱解除方法介绍
迷走深空:碎舰师直接用手拆卸方法介绍
严阵以待门楔及窥镜枪使用方法介绍
团战经理全英雄信息分享
严阵以待上锁的门打开方法介绍
严阵以待全门操作方法介绍
严阵以待快速移动方法介绍
迷走深空:碎舰师扫描器工具使用方法介绍
黑暗之魂3全NPC背景剧情分析
迷走深空:碎舰师切割器工具使用方法介绍
迷走深空:碎舰师抓钩枪工具使用方法介绍
团战经理幽灵信息分享
团战经理盾牌兵信息分享