Hit type
What players.on_click hands its callback: the button, the slot, and the player, entity, block and face the click met.
Fields 7
hit.button: "left" | "right""left" is an attack or swing, "right" is an interact or use.
hit.slot: numberThe hotbar slot in hand, 1..9.
hit.player: Player?Another player, when that is what was clicked.
hit.entity: (Display | Hitbox | Npc | Puppet)?The thing clicked, as the handle the script holds for it.
hit.entity_id: number?Its raw entity id, which is all there is for something the engine made itself, such as one of a screen's own frames.
hit.block: Vec3?The block, when the click hit one.
hit.face: Face?The face of the block that was clicked.