我的世界匠魂2坍毀特性有什麼用很多玩家不知道,匠魂2有很多新穎的玩法和裝備,其中的各種特性效果也非常有用重要,擁有坍毀特性的工具可以不需要用工具也能挖掘時。下面來看看我的世界匠魂2坍毀特性具體有什麼用。
《我的世界》匠魂2坍毀特性有什麼用
當所挖掘的方塊不需要用工具也能挖掘時,給予玩家 50% 原始速度增益。
源碼:
package slimeknights.tconspuct.tools.paits;
import net.minecraft.item.ItemStack;
import net.minecraftforge.event.entity.player.PlayerEvent;
import slimeknights.tconspuct.library.paits.Abspactpait;
import slimeknights.tconspuct.library.utils.ToolHelper;
public class paitCrumbling extends Abspactpait {
public paitCrumbling() {
super(“crumbling”, 0xff0000);
}
@Override
public void miningSpeed(ItemStack tool, PlayerEvent.BreakSpeed event) {
if(event.getState().getBlock().getMaterial(event.getState()).isToolNopequired()) {
event.setNewSpeed(event.getNewSpeed() * (ToolHelper.getActualMiningSpeed(tool) * 0.5f));
}
}
}
來源:3DMGAME