From 0f1a2966b882f1732c3b34a516e4cf5a497fe587 Mon Sep 17 00:00:00 2001 From: lullaby6 Date: Fri, 10 Jan 2025 14:46:13 -0300 Subject: [PATCH] readme --- README.md | 66 ++++++++++++++++++++++++++++++++++++---------------- pack.mcmeta | 2 +- pack.png | Bin 0 -> 1261 bytes 3 files changed, 47 insertions(+), 21 deletions(-) create mode 100644 pack.png diff --git a/README.md b/README.md index 34d6444..cb4d6df 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,20 @@ -# Utils Data-Pack +# Utils Version: 2 -## Table of Contents - -- [Commands](#commands) -- [Predicates](#predicates) -- [Motion](#motion) -- [Player Score ID](#player_score_id) -- [Entitiy Tags](#entity_tags) - ## Commands ### Global Clear chat for all players: -``` +```mcfunction /function utils:global/clear_chat ``` Hide sidebar: -``` +```mcfunction /function utils:global/hide_sidebar ``` @@ -30,13 +22,13 @@ Hide sidebar: Despawn an entity/mob: -``` +```mcfunction /execute as @n[type=zombie] run function utils:entity/despawn ``` Reset entity/mob/player all attributes: -``` +```mcfunction /execute as @n[type=zombie] run function utils:entity/reset_all_attributes ``` @@ -44,19 +36,19 @@ Reset entity/mob/player all attributes: Clear chat for player: -``` +```mcfunction /function utils:player/clear_chat ``` Reset XP (points and levels): -``` +```mcfunction /function utils:player/reset_xp ``` Random TP for voids worlds: -``` +```mcfunction /function utils:player/random_tp ``` @@ -83,7 +75,7 @@ Random TP for voids worlds: Example: -``` +```mcfunction /execute as @s if predicate utils:is/on_fire run say I am on fire D: ``` @@ -109,7 +101,7 @@ tag @n[tag=fireball] remove fireball Get the player score ID: -``` +```mcfunction /scoreboard players get @s utils.player.id ``` @@ -119,6 +111,40 @@ Get the player score ID: Example: -``` +```mcfunction /effect give @e[type=#utils:team_player] glowing 1 0 -``` \ No newline at end of file +``` + +## Consts + +List of consts: +- 1000 +- 750 +- 500 +- 300 +- 250 +- 200 +- 100 +- 75 +- 50 +- 25 +- 20 +- 10 +- 9 +- 8 +- 7 +- 6 +- 5 +- 4 +- 2 +- 1 + +Usage example: + +```mcfunction +/scoreboard players get 1 utils.const +``` + +## License + +MIT \ No newline at end of file diff --git a/pack.mcmeta b/pack.mcmeta index 9d5bf19..c4b75ec 100644 --- a/pack.mcmeta +++ b/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { - "pack_format": 48, + "pack_format": 61, "description": "by github.com/lullaby6" } } diff --git a/pack.png b/pack.png new file mode 100644 index 0000000000000000000000000000000000000000..ad17466735c277a1649439afa16f7905bfb1f52a GIT binary patch literal 1261 zcmeAS@N?(olHy`uVBq!ia0y~yU{nBM4hA4FeDN`cfq`XH_h-q3%ea4> z{UEGWFt0~2Eq0Z_yWlkwtU?*59(y9`B&YmD^b=Fw_TUZo5^g#zot|o#cVmBi@!2l66O#Z;;<^rwn4sh_j`N3+m2s7 zel2AvU48ZKv)`+)pZE7`>Tqf>>*l}S&;I#z_w}WVUruMdqWdrEzs0V5_x5!Qo~oF< z@73=u+x}GtnokQ9bhvxAsv>Fcn^nh*^q4ZXOV0nfWtHT~EgTD;9)BhHr(Dn>{@Uc= zcyG2%%Q+Tg-qydWT%jSNq28zfgbO$pOrLD*emU6Hm0|A;fB&gGDgJ^E>+ktMS?!av zzi&P~Yobp#gO$ZRUjH-w$$2wf8Mc1D&+fE&^XFX~drs|0Ec>vp_J&=|gtL8m_mBH5 z_;z{wE5SS4BX!=#@8#X~P>SVB)azS%Z}X)h9VVvk@nlyQP@xi>^3nJAZaFjIj$g}4 zcmlRZ-@CK7>ffigiG6`w0p(kN{P?lq*vq4pJpm`o-|k**|7$k)nSXz_78o=;-CI)L z{qUQ9_sKlD&{l@t^7lW!?95Vm?9^~&uIoJ{{^QPaEdUR%yL*R?kKFmm|=WpL+!ul zbM6sr7e3AZck#`q>AM!bSt++-_s)0n^Wv`XrpAADSbdOXmV0jFbcQRj-_o-1pA32VF#KeD^4G3@j`#|KQS*e_rxG)@Id* z$lko~J8N_GZ>?UCUcIc<=FFt%uYVW(U}+kx@E