Перейти к содержимому
Mineforgian

Ponder Overrides

Allows overriding the shown ponder via KubeJS Event

Загрузки
1K
Подписчики
2
Обновлён
3 октября 2024 г.
Лицензия
MIT

Опубликован 3 октября 2024 г.

Ponder Overrides

KubeJS extension that allows overriding which ponder gets loaded based on an Event.

Example usage:

client_scripts/ponder.js

onEvent("ponder.override", event => {
    // Access the item and determine the ponder you want to show
    const item = event.getItem();
    // Access the tag of the ponder (This is optional and only present when opened via the Ponder UI)
    const tag = event.getTag();
    // Override the ponder id to show a different ponder. Not calling this results in the default ponder
    event.override("create:super_glue");
})

Комментарии

Загружаем…