Utils

Utility library

Редакция NLZONE · 2 мин чтения · 1 просмотр
Utils
Скачать Utils1.21 – 1.21.8 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Utility library

  • Тип: мод
  • Загрузчик: datapack, fabric, forge, neoforge, quilt
  • Версии Minecraft: 1.21 – 1.21.8
  • Скачиваний на Modrinth: 4 143

Подробно

- Global, Entity and Player Functions - Motion Entity in Facing Direction - Data Storage by Entity - Consts Scores - Player Score ID - Predicates - Item Modifiers - Entity Tags - Macro Functions - Custom Use Remainder

mcfunction /function utils:global/clearchat

mcfunction /function utils:global/hidesidebar

mcfunction /execute as @n[type=zombie] run function utils:entity/despawn

mcfunction /execute as @n[type=zombie] run function utils:entity/resetallattributes

mcfunction /execute as @n[type=irongolem] run function utils:entity/healfull

mcfunction /function utils:player/clearchat

mcfunction /function utils:player/xp/reset

mcfunction /function utils:player/xp/getallpoints

The function return the all xp points and they are saved in the score utils.player.xp.totalpoints

mcfunction /function utils:player/randomtp

execute store result entity @n[type=fireball] Motion[0] double -0.00025 run scoreboard players get @s utils.motion.mx execute store result entity @n[type=fireball] Motion[1] double -0.00025 run scoreboard players get @s utils.motion.my execute store result entity @n[type=fireball] Motion[2] double -0.00025 run scoreboard players get @s utils.motion.mz

or you can use the Storage and Macro method:

mcfunction function utils:motion/storage {"value":"-0.00025"}

data modify entity @n[type=fireball] Motion set from storage utils:motion motion

Exist two ways to create or add data to a path, set and append, when you use set, the absolute value of the path will be the data arg, and for append, the path will be an array, and will append the data arg.

mcfunction absolute /function utils:entity/storage/set {"path":"lives","data":3} /function utils:entity/storage/set {"path":"name","data":'"lullaby6"'}

array /function utils:entity/storage/append {"path":"deaths","data":1} /function utils:entity/storage/append {"path":"deaths","data":2} /function utils:entity/storage/append {"path":"deaths","data":3}

When you use the entity/storage/function all data/args from entity's storage will be received to the function like macro args.

mcfunction /function utils:entity/storage/function {"function":"

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также