Skip to main content

Mining API

This page is generated from a recorded Java binding inventory. Supported means an official script uses the member; it does not mean the member has passed focused and live acceptance testing.

MemberStabilityVerificationAI-runnableOfficial usePurpose
aim_tickExperimentalboundNoNoPerform one frame of aiming toward async mining target.
break_blockExperimentalboundNoNoBreak Block
cancel_precomputationExperimentalboundNoNoCancel any ongoing precomputation
check_current_reachExperimentalboundNoNoQuick check if we can reach block now Returns vantage point info for current position, or nil if not reachable
check_reachSupportedboundNoYesPre-filter unreachable blocks before mining - Custom reach scoring algorithms - Cache reach data for batch optimization - Filter by score threshold (e.g., only mine blocks with score > 0.7). IMPORTANT: Results are from CURRENT player position - cache invalidates when player moves!
end_sessionSupportedboundNoYesEnd multi-block mining session, release everything
find_ground_vantage_pointsExperimentalboundNoNoFind GROUND-LEVEL positions for mining overhead blocks. Only returns positions at/below player Y that can jump-reach the target.
find_immediate_targetExperimentalboundNoNoFind Immediate Target
find_nearest_reachableExperimentalboundNoNoFind Nearest Reachable
find_vantage_pointsExperimentalboundNoNoFind positions to mine from Returns array of vantage points sorted by quality
get_aim_pointExperimentalboundNoNoGet optimal aim angles
get_all_aim_pointsExperimentalboundNoNoGet all visible aim points on block Returns array of {x, y, z} for retry logic
get_blocks_minedSupportedboundNoYesGet count of blocks mined in current loop
get_crosshair_targetExperimentalboundNoNoGet the block the crosshair is currently targeting Returns {x, y, z, side} table or nil if not targeting a block CRITICAL:
get_distanceExperimentalboundNoNoGet distance to block
get_mining_progressExperimentalboundNoNoGet Mining Progress
get_precomputed_targetExperimentalboundNoNoGet and clear the precomputed next target Returns table with target info or nil if not ready
get_smart_aim_pointExperimentalboundNoNoGet best visible point on block Returns {x, y, z} aim coordinates (may be off-center!) or nil if no visible point
has_line_of_sightSupportedboundNoYesHas Line Of Sight
is_block_obstructedSupportedboundNoYesIs Block Obstructed
is_block_reachableExperimentalboundNoNoQuick check if block can be reached from anywhere Returns true if at least one good vantage point exists
is_breakableExperimentalboundNoNoCheck if block can be broken
is_entity_obstructingExperimentalboundNoNoIs Entity Obstructing
is_loop_activeExperimentalboundNoNoCheck if mining loop is running
is_miningExperimentalboundNoNoCheck if currently mining
is_mining_asyncExperimentalboundNoNoCheck if async mining is active
is_precomputingExperimentalboundNoNoCheck if precomputation is running
is_session_jump_activeExperimentalboundNoNoCheck if session jump is currently active
is_targeting_blockExperimentalboundNoNoCheck if crosshair is targeting specific block Returns true if the crosshair is currently aimed at the specified block
mine_blockSupportedboundNoYesMine Block
mine_nearestSupportedboundNoYesMine Nearest
peek_precomputed_targetExperimentalboundNoNoPeek at precomputed target without clearing Useful for visual highlighting of next target
precompute_next_targetExperimentalboundNoNoby the time you finish, the next target is ready.
recalculate_aimExperimentalboundNoNoRe-run aim point calculation from current eye position
select_target_smartExperimentalboundNoNoSelect Target Smart
set_session_jumpSupportedboundNoYesEnable/disable continuous jump during mining session When enabled, jump is held across multiple mine_block calls until disabled or session ends
start_loopExperimentalboundNoNoStart async mining loop
start_mining_asyncExperimentalboundNoNoStart mining a block (non-blocking). Lua must poll aim_tick() and call stop_mining_async when done.
start_mining_smartExperimentalboundNoNoStart async mining with smart aim Uses SmartAimPointFinder to target visible part of block Same as start_mining_async but auto-finds best aim point
start_sessionSupportedboundNoYesBegin multi-block mining session
stopExperimentalboundNoNoStop current mining
stop_loopExperimentalboundNoNoStop async mining loop
stop_mining_asyncSupportedboundNoYesStop non-blocking mining