我的世界匠魂2可燃特性有啥用很多玩家不知道,匠魂2有很多新穎的玩法和裝備,其中的各種特性效果也非常有用重要,擁有可燃特性的工具可以讓攻擊你的生物燃燒。下面來看看我的世界匠魂2可燃特性具體有啥用。
受傷時點燃攻擊者 3 秒
格擋時,若手持者受到火焰傷害,則對工具產生 3 點原始損傷並阻擋火焰傷害;若手持者受到來自其他生物的傷害,則點燃攻擊者 3 秒。
源碼:
package s;
import tyLivingBase;
import tyPlayer;
import Stack;
import craftForge;
import ngHurtEvent;
import actpait;
import Helper;
public class paitFlammable extends Abspactpait {
public paitFlammable() {
super("flammable", 0xffffff);
T_ster(this);
}
@Override
public void onPlayerHurt(ItemStack tool, EntityPlayer player, EntityLivingBase attacker, LivingHurtEvent event) {
ire(3);
}
@Override
public void onBlock(ItemStack tool, EntityPlayer player, LivingHurtEvent event) {
// block fire damage
if(ource()reDamage()) {
anceled(pue);
geTool(tool, 3, player);
}
if(ource()ueSource() != null) {
ource()ueSource()ire(3);
}
}
}