{"id":96814,"date":"2026-06-05T16:12:02","date_gmt":"2026-06-05T13:12:02","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/"},"modified":"2026-06-05T16:12:02","modified_gmt":"2026-06-05T13:12:02","slug":"ly-utils","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/","title":{"rendered":"Utils"},"content":{"rendered":"<p># Utils<\/p>\n<p>Version: `5`<\/p>\n<p>## Features<\/p>\n<p>&#8211; Global, Entity and Player Functions<br \/>\n&#8211; Motion Entity in Facing Direction<br \/>\n&#8211; Data Storage by Entity<br \/>\n&#8211; Consts Scores<br \/>\n&#8211; Player Score ID<br \/>\n&#8211; Predicates<br \/>\n&#8211; Item Modifiers<br \/>\n&#8211; Entity Tags<br \/>\n&#8211; Macro Functions<br \/>\n&#8211; Custom Use Remainder<\/p>\n<p>## Commands<\/p>\n<p>### Global<\/p>\n<p>Clear chat for all players:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/function utils:global\/clear_chat<br \/>\n&#8220;`<\/p>\n<p>Hide sidebar:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/function utils:global\/hide_sidebar<br \/>\n&#8220;`<\/p>\n<p>### Entity<\/p>\n<p>Despawn an entity\/mob:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/execute as @n[type=zombie] run function utils:entity\/despawn<br \/>\n&#8220;`<\/p>\n<p>Reset entity\/mob\/player all attributes:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/execute as @n[type=zombie] run function utils:entity\/reset_all_attributes<br \/>\n&#8220;`<\/p>\n<p>Heal full:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/execute as @n[type=iron_golem] run function utils:entity\/heal_full<br \/>\n&#8220;`<\/p>\n<p>### Player<\/p>\n<p>Clear chat for player:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/function utils:player\/clear_chat<br \/>\n&#8220;`<\/p>\n<p>Reset XP (points and levels):<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/function utils:player\/xp\/reset<br \/>\n&#8220;`<\/p>\n<p>Get all XP Points:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/function utils:player\/xp\/get_all_points<br \/>\n&#8220;`<\/p>\n<p>The function return the all xp points and they are saved in the score `utils.player.xp.total_points`<\/p>\n<p>Random TP for voids worlds:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/function utils:player\/random_tp<br \/>\n&#8220;`<\/p>\n<p>## Motion<\/p>\n<p>&#8220;`mcfunction<br \/>\nfunction utils:motion\/calc<\/p>\n<p>summon fireball ^ ^ ^.5<\/p>\n<p>execute store result entity @n[type=fireball] Motion[0] double -0.00025 run scoreboard players get @s utils.motion.mx<br \/>\nexecute store result entity @n[type=fireball] Motion[1] double -0.00025 run scoreboard players get @s utils.motion.my<br \/>\nexecute store result entity @n[type=fireball] Motion[2] double -0.00025 run scoreboard players get @s utils.motion.mz<br \/>\n&#8220;`<\/p>\n<p>or you can use the Storage and Macro method:<\/p>\n<p>&#8220;`mcfunction<br \/>\nfunction utils:motion\/storage {&#8220;value&#8221;:&#8221;-0.00025&#8243;}<\/p>\n<p>summon fireball ^ ^ ^.5<\/p>\n<p>data modify entity @n[type=fireball] Motion set from storage utils:motion motion<br \/>\n&#8220;`<\/p>\n<p>## Data Storage by Entity<\/p>\n<p>### Create data<\/p>\n<p>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,<br \/>\nand for `append`, the path will be an array, and will append the data arg.<\/p>\n<p>&#8220;`mcfunction<br \/>\n# absolute<br \/>\n\/function utils:entity\/storage\/set {&#8220;path&#8221;:&#8221;lives&#8221;,&#8221;data&#8221;:3}<br \/>\n\/function utils:entity\/storage\/set {&#8220;path&#8221;:&#8221;name&#8221;,&#8221;data&#8221;:'&#8221;lullaby6&#8243;&#8216;}<\/p>\n<p># array<br \/>\n\/function utils:entity\/storage\/append {&#8220;path&#8221;:&#8221;deaths&#8221;,&#8221;data&#8221;:1}<br \/>\n\/function utils:entity\/storage\/append {&#8220;path&#8221;:&#8221;deaths&#8221;,&#8221;data&#8221;:2}<br \/>\n\/function utils:entity\/storage\/append {&#8220;path&#8221;:&#8221;deaths&#8221;,&#8221;data&#8221;:3}<br \/>\n&#8220;`<\/p>\n<p>### Run function with Entity&#8217;s data<\/p>\n<p>When you use the `entity\/storage\/function` all data\/args from entity&#8217;s storage will be received to the function like macro args.<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/function utils:entity\/storage\/function {&#8220;function&#8221;:&#8221;namespace:say_lives&#8221;}<br \/>\n&#8220;`<\/p>\n<p>`say_lives.mcfunction` file:<\/p>\n<p>&#8220;`mcfunction<br \/>\n$say $(lives)<br \/>\n&#8220;`<\/p>\n<p>### Remove data<\/p>\n<p>&#8220;`mcfunction<br \/>\n# absolute<br \/>\n\/function utils:entity\/storage\/remove\/data {&#8220;path&#8221;:&#8221;lives&#8221;}<br \/>\n\/function utils:entity\/storage\/remove\/data {&#8220;path&#8221;:&#8221;name&#8221;}<\/p>\n<p># array<br \/>\n\/function utils:entity\/storage\/remove\/first {&#8220;path&#8221;:&#8221;deaths&#8221;}<br \/>\n\/function utils:entity\/storage\/remove\/index {&#8220;path&#8221;:&#8221;deaths&#8221;,&#8221;index&#8221;:1}<br \/>\n&#8220;`<\/p>\n<p>## Consts<\/p>\n<p>There are constants from 0 to 1000.<\/p>\n<p>You can check and get the const value running this command:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/scoreboard players get <number> utils.const<br \/>\n&#8220;`<\/p>\n<p>Usage example:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/scoreboard players get 1 utils.const<br \/>\n&#8220;`<\/p>\n<p>## Player Score ID<\/p>\n<p>Get the player score ID:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/scoreboard players get @s utils.player.id<br \/>\n&#8220;`<\/p>\n<p>## Predicates<\/p>\n<p>&#8211; can\/see_sky<br \/>\n&#8211; has\/effect\/`<effect_name>` (speed, regeneration, &#8230;)<br \/>\n&#8211; has\/passenger<br \/>\n&#8211; in\/biome\/`<biome_name>`<br \/>\n&#8211; in\/structure\/`<structure_name>` (village, desert_pyramid, trial_chambers, &#8230;)<br \/>\n&#8211; in\/dimension\/`<dimension_name>` (overworld, the_nether, the_end)<br \/>\n&#8211; in\/light\/`<level>` (0, 5, 10, 15, 0-5, 5-10, &#8230;)<br \/>\n&#8211; is\/raining<br \/>\n&#8211; is\/thundering<br \/>\n&#8211; is\/baby<br \/>\n&#8211; is\/falling<br \/>\n&#8211; is\/flying<br \/>\n&#8211; is\/ground<br \/>\n&#8211; is\/on_fire<br \/>\n&#8211; is\/riding<br \/>\n&#8211; is\/sneaking<br \/>\n&#8211; is\/sprinting<br \/>\n&#8211; is\/swimming<br \/>\n&#8211; random\/`<chance>` <0.1 (10%), 0.5 (50%), ...><\/p>\n<p>Example:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/execute as @s if predicate utils:is\/on_fire run say I am on fire D:<br \/>\n&#8220;`<\/p>\n<p>## Item Modifiers<\/p>\n<p>&#8211; count<br \/>\n    &#8211; count\/add\/`<number>`<br \/>\n    &#8211; count\/remove\/`<number>`<br \/>\n    &#8211; count\/set\/`<number>`<br \/>\n&#8211; enchantment_glint_override\/`<boolean>`<br \/>\n&#8211; max_stack_size\/`<number>`<br \/>\n&#8211; rarity\/`<rarity_name>`<br \/>\n&#8211; remove_component\/`<item_component_name>` (use_cooldown, enchantments, max_stack_size, &#8230;)<br \/>\n&#8211; repair_cost\/`<number>`<br \/>\n&#8211; tooltip\/`<tooltip_name>`\/`<show | hide>`<br \/>\n&#8211; use_cooldown\/`<time>` (1s, 2s, 1m, 1h, &#8230;)<br \/>\n&#8211; damage<br \/>\n    &#8211; damage\/add\/0.`<number>`<br \/>\n    &#8211; damage\/set\/0.`<number>`<br \/>\n&#8211; clear_bundle<br \/>\n&#8211; clear_container<br \/>\n&#8211; death_protection<br \/>\n&#8211; enchant_randomly_compatible<br \/>\n&#8211; enchant_randomly<br \/>\n&#8211; furnace_smelt<br \/>\n&#8211; glider<br \/>\n&#8211; hide_additional_tooltip<br \/>\n&#8211; hide_tooltip<br \/>\n&#8211; non_consumable<br \/>\n&#8211; one_use<br \/>\n&#8211; remove_container_loot<br \/>\n&#8211; repair<br \/>\n&#8211; unbrekeable<\/p>\n<p>Example:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/execute if items entity @s weapon.mainhand minecraft:raw_iron run item modify entity @s weapon.mainhand utils:furnace_smelt<br \/>\n&#8220;`<\/p>\n<p>## Entity Tags<\/p>\n<p>&#8211; all_boats<br \/>\n&#8211; animals<br \/>\n&#8211; aquatics_animals<br \/>\n&#8211; aquatics_real_animals<br \/>\n&#8211; aquatics<br \/>\n&#8211; arthropods<br \/>\n&#8211; boats_with_chest<br \/>\n&#8211; boats<br \/>\n&#8211; bosses<br \/>\n&#8211; cows<br \/>\n&#8211; end<br \/>\n&#8211; fishs<br \/>\n&#8211; flyers_hostiles<br \/>\n&#8211; flyers<br \/>\n&#8211; horses<br \/>\n&#8211; hostiles<br \/>\n&#8211; humanoids<br \/>\n&#8211; illagers<br \/>\n&#8211; monsters<br \/>\n&#8211; nether<br \/>\n&#8211; neutrals<br \/>\n&#8211; passives<br \/>\n&#8211; piglins<br \/>\n&#8211; proyectiles<br \/>\n&#8211; real_animals<br \/>\n&#8211; rideables_animals<br \/>\n&#8211; rideables<br \/>\n&#8211; slimes<br \/>\n&#8211; spiders<br \/>\n&#8211; tameables<br \/>\n&#8211; undead<br \/>\n&#8211; villagers_hostiles<br \/>\n&#8211; villagers<br \/>\n&#8211; zombiess<br \/>\n&#8211; team_player<\/p>\n<p>Example:<\/p>\n<p>&#8220;`mcfunction<br \/>\n\/effect give @e[type=#utils:team_player] glowing 1 0<br \/>\n&#8220;`<\/p>\n<p>## License<\/p>\n<p>MIT<\/p>\n<p>## \ud83c\udf81 Server Hosting<\/p>\n<p>Creating your own server can be a very lengthy, tedious and costly process.<\/p>\n<p>But with BisectHosting, you get your own server in just a couple of clicks! With their 24\/7 support and fast-response time, no issues shall stand in your way!<br \/>\nInterested? Then we&#8217;ve got a deal for you!<\/p>\n<p>https:\/\/bisecthosting.com\/lullaby<\/p>\n<p>![Server Hosting](https:\/\/www.bisecthosting.com\/partners\/custom-banners\/e840cd99-59f6-4b27-b542-3023cd08bdfe.webp)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Utility library<\/p>\n","protected":false},"featured_media":96815,"template":"","meta":{"_minecraft_slug":"ly-utils","_minecraft_project_id":"zVxHjHmA","_minecraft_author":"lullaby","_minecraft_license":"MIT","_minecraft_downloads":3693,"_minecraft_follows":11,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"ly-utils.zip","_minecraft_size_bytes":3244740,"_minecraft_version_count":13,"_minecraft_updated_at":"2026-05-16T01:50:54.561506Z","_minecraft_date_created":"2025-01-13T09:47:30.706658Z","_minecraft_date_modified":"2025-03-26T21:15:49.844828Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/ly-utils","_minecraft_icon_attachment_id":96815,"_minecraft_imported_at":"2026-06-05T13:12:04+00:00","_minecraft_import_hash":"466c721e6217ca65fd315b9f2d65ebae","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[84,97,104,873,158,98,92],"mod_loader":[86,99,106,160,100],"minecraft_version":[62,37,73,74,38,78,79,80,81],"class_list":["post-96814","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-datapack","mod_category-fabric","mod_category-forge","mod_category-library","mod_category-neoforge","mod_category-quilt","mod_category-utility","mod_loader-datapack","mod_loader-fabric","mod_loader-forge","mod_loader-neoforge","mod_loader-quilt","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Utils - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Utils - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Utility library\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/ly-utils\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/ly-utils\\\/\",\"name\":\"Utils - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/ly-utils\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/ly-utils\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/ly-utils-icon-8ee5b0b8b1c77f540c4194be849dd4bdae0b3410_96.webp\",\"datePublished\":\"2026-06-05T13:12:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/ly-utils\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/ly-utils\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/ly-utils\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/ly-utils-icon-8ee5b0b8b1c77f540c4194be849dd4bdae0b3410_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/ly-utils-icon-8ee5b0b8b1c77f540c4194be849dd4bdae0b3410_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/ly-utils\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Utils\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Utils - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/","og_locale":"en_US","og_type":"article","og_title":"Utils - Minecraft","og_description":"Utility library","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/","name":"Utils - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/ly-utils-icon-8ee5b0b8b1c77f540c4194be849dd4bdae0b3410_96.webp","datePublished":"2026-06-05T13:12:02+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/ly-utils-icon-8ee5b0b8b1c77f540c4194be849dd4bdae0b3410_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/ly-utils-icon-8ee5b0b8b1c77f540c4194be849dd4bdae0b3410_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/ly-utils\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Utils"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/96814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/96815"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=96814"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=96814"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=96814"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=96814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}