Harvest Bonus - DragonSurvivalTeam/DragonSurvival GitHub Wiki
Description
A harvest bonus is a tool level bonus to breaking specific types of blocks. For example, cave dragons have a harvest bonus to break various stone blocks, so they are able to break stone even without a tool and still collect blocks from it. You can also adjust the break speed of those blocks in a harvest bonus.
Dependencies
LevelBasedTier
A LevelBasedValue that returns a tool tier per level.
Schema
{
"tiers": [LevelBasedTierEntry] // [Mandatory] || The list of tier entries.
}
LevelBasedTierEntry
The entry for the LevelBasedTier
Schema
{
"tier": [Tier] // [Mandatory] || The tier for this entry (in vanilla this can be wood, stone, iron, diamond, gold, netherite).
"from_level": [number] // [Mandatory] || The level at which this tier first applies.
}
Schema
{
"base": [DurationInstanceBase] // [Mandatory] || Base data for the duration instance.
"blocks": [Block] // [Mandatory] || The list of blocks for the harvest bonus.
"base_speed": [LevelBasedTier] // [Optional] || The base speed for each tool tier for the harvest bonus
"harvest_bonus": [LevelBasedValue] // [Optional] || The harvest bonus to breaking the listed blocks.
"break_speed_multiplier": [LevelBasedValue] // [Optional] || The break speed multiplier for breaking the listed blocks.
}