Skip to main content

try_drop_experience

Function try_drop_experience 

Source
pub(crate) fn try_drop_experience(
    world: &Arc<World>,
    pos: BlockPos,
    tool: &ItemStack,
    experience: &IntProvider,
)
Expand description

Samples and applies enchantment effects to a block experience drop.

Mirrors vanilla Block.tryDropExperience. Mining experience is incidental live-gameplay randomness, so Steel samples it from an unseeded runtime source.