Copper hoe
This commit is contained in:
parent
cc5c7ad790
commit
9d04941b7f
5 changed files with 45 additions and 0 deletions
35
src/java/mmm/tech/tools/TTHoe.java
Normal file
35
src/java/mmm/tech/tools/TTHoe.java
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
package mmm.tech.tools;
|
||||||
|
|
||||||
|
|
||||||
|
import mmm.utils.I_URecipeRegistrar;
|
||||||
|
import mmm.utils.URegistry;
|
||||||
|
import net.minecraft.init.Items;
|
||||||
|
import net.minecraft.item.ItemHoe;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class TTHoe
|
||||||
|
extends ItemHoe
|
||||||
|
implements I_URecipeRegistrar
|
||||||
|
{
|
||||||
|
public TTHoe( final ToolMaterial material )
|
||||||
|
{
|
||||||
|
super( material );
|
||||||
|
URegistry.setIdentifiers( this , "tech" , "tools" , material.toString( ).toLowerCase( ) , "hoe" );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void registerRecipes( )
|
||||||
|
{
|
||||||
|
GameRegistry.addShapedRecipe( new ItemStack( this ) , //
|
||||||
|
"II" , //
|
||||||
|
" S" , //
|
||||||
|
" S" , //
|
||||||
|
'I' , this.theToolMaterial.getRepairItemStack( ) , //
|
||||||
|
'S' , new ItemStack( Items.STICK ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -5,6 +5,7 @@ import mmm.utils.URegistry;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.Item.ToolMaterial;
|
import net.minecraft.item.Item.ToolMaterial;
|
||||||
import net.minecraft.item.ItemAxe;
|
import net.minecraft.item.ItemAxe;
|
||||||
|
import net.minecraft.item.ItemHoe;
|
||||||
import net.minecraft.item.ItemPickaxe;
|
import net.minecraft.item.ItemPickaxe;
|
||||||
import net.minecraft.item.ItemSpade;
|
import net.minecraft.item.ItemSpade;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
@ -21,6 +22,7 @@ public class TTToolSet
|
||||||
public final ItemSpade SHOVEL;
|
public final ItemSpade SHOVEL;
|
||||||
public final ItemAxe AXE;
|
public final ItemAxe AXE;
|
||||||
public final ItemPickaxe PICKAXE;
|
public final ItemPickaxe PICKAXE;
|
||||||
|
public final ItemHoe HOE;
|
||||||
|
|
||||||
public final ItemSword SWORD;
|
public final ItemSword SWORD;
|
||||||
|
|
||||||
|
@ -36,6 +38,7 @@ public class TTToolSet
|
||||||
URegistry.addItem( this.SHOVEL = new TTShovel( this.TOOL_MATERIAL ) );
|
URegistry.addItem( this.SHOVEL = new TTShovel( this.TOOL_MATERIAL ) );
|
||||||
URegistry.addItem( this.AXE = new TTAxe( this.TOOL_MATERIAL , axeDamage , axeSpeed ) );
|
URegistry.addItem( this.AXE = new TTAxe( this.TOOL_MATERIAL , axeDamage , axeSpeed ) );
|
||||||
URegistry.addItem( this.PICKAXE = new TTPickaxe( this.TOOL_MATERIAL ) );
|
URegistry.addItem( this.PICKAXE = new TTPickaxe( this.TOOL_MATERIAL ) );
|
||||||
|
URegistry.addItem( this.HOE = new TTHoe( this.TOOL_MATERIAL ) );
|
||||||
|
|
||||||
URegistry.addItem( this.SWORD = new TTSword( this.TOOL_MATERIAL ) );
|
URegistry.addItem( this.SWORD = new TTSword( this.TOOL_MATERIAL ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ tile.mmm.materials.ore.cuprite.name=Cuprite Ore
|
||||||
item.mmm.tech.tools.copper.shovel.name=Copper Shovel
|
item.mmm.tech.tools.copper.shovel.name=Copper Shovel
|
||||||
item.mmm.tech.tools.copper.axe.name=Copper Axe
|
item.mmm.tech.tools.copper.axe.name=Copper Axe
|
||||||
item.mmm.tech.tools.copper.pickaxe.name=Copper Pickaxe
|
item.mmm.tech.tools.copper.pickaxe.name=Copper Pickaxe
|
||||||
|
item.mmm.tech.tools.copper.hoe.name=Copper Hoe
|
||||||
item.mmm.tech.tools.copper.sword.name=Copper Sword
|
item.mmm.tech.tools.copper.sword.name=Copper Sword
|
||||||
item.mmm.tech.tools.copper.armor.feet.name=Copper Boots
|
item.mmm.tech.tools.copper.armor.feet.name=Copper Boots
|
||||||
item.mmm.tech.tools.copper.armor.legs.name=Copper Leggings
|
item.mmm.tech.tools.copper.armor.legs.name=Copper Leggings
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "mmm:items/tech/tools/copper/hoe"
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 150 B |
Reference in a new issue