Skip to main content

Module eat_block_goal

Module eat_block_goal 

Source
Expand description

Vanilla EatBlockGoal: a mob stops moving and chews for a fixed duration before eating an edible block and running Mob.ate.

StructsΒ§

EatBlockGoal
A goal where a mob stands still and chews before eating an edible block.

ConstantsΒ§

ADULT_EAT_CHECK_TICKS πŸ”’
BABY_EAT_CHECK_TICKS πŸ”’
Vanilla EatBlockGoal.canUse rolls nextInt(adjustedTickDelay(baby ? 50 : 1000)); babies check far more often so they regrow wool quickly.
EAT_ANIMATION_TICKS πŸ”’
Constant mirroring vanilla EatBlockGoal.EAT_ANIMATION_TICKS, the full animation length before the goal’s tick reaches the block-eating step.
EAT_BLOCK_TICK πŸ”’
Constant mirroring vanilla EatBlockGoal’s check point (adjustedTickDelay(4)).