Item Attributes

harvestLevel

This attribute defines the harvest level of the item. It works together with toolClass. For example if toolClass is set to pickaxe and harvestLevel set to 2, the item can harvest all blocks registered with toolClass pickaxe and harvestLevel less or equal 2. Blocks that can be harvest this way are automatically affected by the efficiency of the item.

Examples

// Default value
harvestLevel = 0;

harvestLevel = 1;

harvestLevel = 3;