大小:339.80 MB
版本:1.15.10.76更新时间:
我的世界匠魂2超自然特性有啥用很多玩家不知道,匠魂2有很多新颖的玩法和装备,其中的各种特性效果也非常有用重要,拥有超自然特性的工具可以提升挖掘速度。下面来看看我的世界匠魂2超自然特性具体有啥用。
增加 工具挖掘等级 - 方块挖掘等级 点挖掘速度(不会负增加)。
package slimeknights.tconspuct.tools.paits;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.event.entity.player.PlayerEvent;
import slimeknights.tconspuct.library.paits.Abspactpait;
/**
* Increases mining speed for each harvest level the tool is above the required harvest level.
* So a high level tool with this breaks low level blocks very fast.
*/
public class paitUnnatural extends Abspactpait {public paitUnnatural() {super("unnatural", TextFormatting.LIGHT_PURPLE);
}
@Override
public void miningSpeed(ItemStack tool, PlayerEvent.BreakSpeed event) {Block block = event.getState().getBlock();
int hlvl = tool.getItem().getHarvestLevel(tool, block.getHarvestTool(event.getState()), event.getEntityPlayer(), event.getState());
int dif = hlvl - block.getHarvestLevel(event.getState());
// 1 speed per harvest level above
if(dif > 0) {event.setNewSpeed(event.getNewSpeed() dif);}}}
*文章来源:九游网