KeyboardJS
A simplified Minecraft mod that provides convenient keyboard operation functionality through KubeJS. This modification allows you to monitor various keyboard key operations from the user.
Key Features
With KeyboardJS, you can monitor keyboard key states in real-time - tracking both key press and release moments. The system operates through returning boolean values (true/false), making integration with KubeJS extremely simple and efficient.
Usage Examples
Press Event
ItemEvents.rightClicked("emerald", event => {
event.player.tell(Keyboard.pressed(Keys.F3))
})
Release Event
PlayerEvents.tick(event => {
event.player.tell(Keyboard.released(Keys.X))
})
These examples demonstrate how easily you can integrate key tracking functionality into your KubeJS scripts, creating more responsive and interactive game mechanics.