Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lullaby6 committed Jan 10, 2025
1 parent 57ab599 commit 0f1a296
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 21 deletions.
66 changes: 46 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,54 @@
# 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
```

### Entity

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
```

### Player

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
```

Expand All @@ -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:
```

Expand All @@ -109,7 +101,7 @@ tag @n[tag=fireball] remove fireball

Get the player score ID:

```
```mcfunction
/scoreboard players get @s utils.player.id
```

Expand All @@ -119,6 +111,40 @@ Get the player score ID:

Example:

```
```mcfunction
/effect give @e[type=#utils:team_player] glowing 1 0
```
```

## 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
2 changes: 1 addition & 1 deletion pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"pack_format": 48,
"pack_format": 61,
"description": "by github.com/lullaby6"
}
}
Binary file added pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0f1a296

Please sign in to comment.