-
Notifications
You must be signed in to change notification settings - Fork 5
Using SimpleAxe
AleXndrTheGr8st edited this page Dec 14, 2014
·
1 revision
Using SimpleAxe
Creates a axe item, such as the Copper Axe. Note that this won't include any methods that are already detailed in the SimpleItem wiki page.
Usage:
yourAxeItem = new SimpleAxe(ToolMaterial material);Customising Methods:
You can customise your item using the below methods. In most cases, they will be appended to your initialization code (above, see the example below).
- setEffect(Enchantment enchantment, int level):
Adds an enchantment to the item when it is created.
yourAxeItem = new SimpleAxe(yourToolMaterial).modId("yourModId").setEffect(Enchantment.efficiency, 1);Example:
yourAxeItem = new SimpleAxe(yourToolMaterial).modId("yourModId").setEffect(Enchantment.efficiency, 1).setUnlocalizedName("your_axe_item");