▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
lib

lib

More functions for datapack creators

Оцените первым
188
0

A basic library mod for datapack creators. This does nothing on its own!

To create your own datapack simply download the included template file for easy access to all of the features.

As of the latest version this library includes the following features:

Predicates

Sneaking

If the targeted player is pressing the crouch key, lib:sneaking will be true

Wand

If the player is holding a wooden axe and is in creative mode, lib:can_wield_wand will be true

Callbacks

On join

When a player joins the world or server, functions in the #lib:on_join tag will be called as the player that joined

On first join

When a player joins the world or server for the first time, functions in the #lib:on_first_join tag will be called as the player that joined

Functions

Raycasting

To start a raycast, run the lib:raycast function as the entity from which to cast the ray with the following arguments:

ArgumentData typeDescription
max_distanceintA positive integer representing the max distance in tenths of a block
anchoreyes | feetHow to anchor the raycast
callbackstringThe callback function

Example:

/execute as @p run function lib:raycast {"max_distance":200,"anchor":"eyes","callback":"example:raycast_callback"}
Партнёрский материал

Как запустить датапак lib на сервере?

Датапак lib удобнее всего раскрывается на общем сервере: установили один раз - и вся компания играет с новыми механиками. Создать сервер Майнкрафт с датапаком lib можно за пару минут вместе с BungeeHost.

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

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

Minecraft: Java Edition

1.21.x1.20.x1.19.x

Платформы

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

Клиент и сервер

Создатели

Детали

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