▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/TotomRegister
TotomRegister

TotomRegister

This is a mod that allows you to register totem events for specified items.

Оцените первым
145
1

This is a mod that allows you to register totem events for specified items, and it has been open-sourced on GitHub.

You can register items using TotemRegister.register(Item item). In addition, you can set the event to trigger after activation and whether to overwrite the original event for specified items:

TotemRegister.register(Item totem, BiConsumer<ServerPlayer, ItemStack> runnable);
TotemRegister.register(Item totem, BiConsumer<ServerPlayer, ItemStack> runnable, boolean overwrite);

If you want to register multiple items at once, you can use TotemRegister.register(Class<?> clazz) to register all variables of type Item within a specified class, for example:

TotemRegister.register(Items.class);

Note: This function may throw InstantiationException and IllegalAccessException exceptions. Please use try-catch blocks to catch these exceptions.

Партнёрский материал

Как поиграть с друзьями с модом TotomRegister?

Мод TotomRegister куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода TotomRegister будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.20.x

Платформы

Поддерживаемые окружения

Клиент

Ссылки

Детали

Лицензия:
Опубликован:1 год назад
Обновлён:1 год назад
Главная