module Rosegold::Spectate::SneakCamera

Direct including types

Defined in:

rosegold/spectate/sneak_camera.cr

Constant Summary

SCALE_ATTRIBUTE_IDS = {772_u32 => 25_u32, 773_u32 => 25_u32, 774_u32 => 25_u32, 775_u32 => 25_u32, 776_u32 => 30_u32}

minecraft:scale registry index per protocol, from Attributes.java registration order (shifted in 26.2).

SNEAK_EYE_SCALE = 1.27 / 1.62

Client eye height is 1.62 * scale, so this lands the camera at the bot's 1.27 sneaking eye.