//Ваша папка
package cheshirX.highEnergetics.items.tools;
import cheshirX.highEnergetics.HighEnergetics;
import net.minecraft.item.ItemSpade;
public class BSpade extends ItemSpade{//ItemSpade это лопата, может быть ItemSpade, ItemSword, ItemPickaxe, ItemHoe.
public BSpade(ToolMaterial material) {
super( material );//material
this.setUnlocalizedName("bronze_spade");//имя в виртуальной машине
this.setCreativeTab(HighEnergetics.tabHEI);//Вкладка в креативе
}
}
//Ваша папка
package cheshirX.highEnergetics.items.tools;
import java.util.Set;
import com.google.common.collect.Sets;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemAxe;
import net.minecraft.item.ItemSpade;
import net.minecraft.item.ItemTool;
import cheshirX.highEnergetics.HighEnergetics;
public class BAxe extends ItemTool{//Инструмент
//то что после этого это объявление переменной-массива, будет необходим при эффективности топора[топор добывает дерево быстрее, например...].
private static final Set EFFECTIVE_ON = Sets.newHashSet(new Block[] {Blocks.oak_door, Blocks.oak_fence, Blocks.oak_fence_gate, Blocks.oak_stairs,Blocks.acacia_door, Blocks.acacia_fence, Blocks.acacia_fence_gate, Blocks.acacia_stairs,Blocks.bed, Blocks.birch_door, Blocks.birch_fence, Blocks.birch_fence_gate, Blocks.birch_stairs, Blocks.brown_mushroom_block, Blocks.cactus, Blocks.dark_oak_door, Blocks.dark_oak_fence, Blocks.dark_oak_fence_gate, Blocks.dark_oak_stairs, Blocks.double_wooden_slab, Blocks.jukebox, Blocks.jungle_door, Blocks.jungle_fence, Blocks.jungle_fence_gate, Blocks.jungle_stairs, Blocks.red_mushroom_block, Blocks.planks, Blocks.bookshelf, Blocks.log, Blocks.log2, Blocks.chest, Blocks.pumpkin, Blocks.lit_pumpkin, Blocks.melon_block, Blocks.ladder, Blocks.wooden_button, Blocks.wooden_pressure_plate, Blocks.crafting_table, Blocks.piston, Blocks.piston_extension, Blocks.piston_head, Blocks.sticky_piston, Blocks.trapdoor, Blocks.spruce_door, Blocks.spruce_fence, Blocks.spruce_fence_gate, Blocks.spruce_stairs, Blocks.trapped_chest, Blocks.wooden_slab});
public BAxe(Item.ToolMaterial material) {
super(material, EFFECTIVE_ON);//Даёт инструменту материал и эффективность над блоками.
this.setUnlocalizedName("bronze_axe");//Виртуальное имя
this.setCreativeTab(HighEnergetics.tabHEI);//Вкладка в креативе
}
}
GameRegistry.registerItem(tutorialPickaxe = new BPickaxe(TUTORIAL), "tutorial_pickaxe");
GameRegistry.registerItem(tutorialAxe = new BAxe(TUTORIAL), "tutorial_axe");
GameRegistry.registerItem(tutorialSpade = new BSpade(TUTORIAL), "tutorial_spade");
GameRegistry.registerItem(tutorialHoe = new BHoe(TUTORIAL), "tutorial_hoe");
GameRegistry.registerItem(tutorialSword = new BSword( TUTORIAL), "tutorial_sword");