
keybindjs
A Kubejs Addition
Обновлён 30 апреля 2025 г. · опубликован 3 марта 2025 г.
A mod that allows modpack creators to use KubeJS to register, modify, and remove key bindings.
Below is an example of changing the default accessory menu key to ALT+X (moved under vanilla's Misc category) and removing the jump key binding:
KeyBindEvents.modify(event => {
event.modifyKey('key.curios.open.desc', GLFM.GLFM_KEY_X)
event.modifyModifier('key.curios.open.desc', KeyModifier.ALT)
event.modifyCategory('key.curios.open.desc', 'key.categories.misc')
event.remove('key.jump')
})
Note: Do NOT install this mod on servers.
Центр версий
12 версийЧенджлог
2101-1.0Релиз1.21.1 · 16 апреля 2025 г.
English
All events are transferred to the client.
中文
所有事件都转移至client
2001-2.2Релиз1.20.4, 1.20.5, 1.20.6 · 16 апреля 2025 г.
English
Allow Extra to directly enter the keymapping name
中文
允许Extra直接填写keymapping name
2001-2.1.1Релиз1.20.4, 1.20.5, 1.20.6 · 8 апреля 2025 г.
add hidekey method in modiftevent
2001-2.1.0Бета1.20.4, 1.20.5, 1.20.6 · 2 апреля 2025 г.
Allowed to be installed on the server. If installed on the server, there is no need to delete the KeyBindEvents in startup. Added JSIO for reading and writing JS files (although this has little to do with the content of this mod).
2001-2.0.1Релиз1.20.4, 1.20.5, 1.20.6 · 16 марта 2025 г.
allow 1.19.2 use
2001-2.0Релиз1.20.4, 1.20.5, 1.20.6 · 9 марта 2025 г.
Fixed the issue where modifier keys couldn't be used (but still can't set modifier keys like ALT, CTRL, SHIFT as key bindings for monitoring).
2001-1.9Релиз1.20.1 · 9 марта 2025 г.
Add more monitoring methods
KeyBindEvents.keyRelease('customName', event => {})
KeyBindEvents.keyReleaseInGui('customName', event => {})
KeyBindEvents.firstKeyPress('customName', event => {})
KeyBindEvents.firstKeyPressInGui('customName', event => {})
2001-1.8Релиз1.20.1 · 5 марта 2025 г.
Added listener support for existing key bindings. Example usage:
KeyBindEvents.modify(event => {
event.addListener('www', 'key.forward')
event.addListener('sss', 'key.back')
})
Allows detecting key presses as if using self-registered key bindings.
Комментарии
Загружаем…