Skip to content

Commit 5b8ba2d

Browse files
committed
refactor(pulse): update to 1.7.2 version
1 parent 812c5d3 commit 5b8ba2d

File tree

30 files changed

+796
-358
lines changed

30 files changed

+796
-358
lines changed

pulse/en/api/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FlectonePulse is available on Maven Central. Below are configurations for includ
1818
<dependency>
1919
<groupId>net.flectone.pulse</groupId>
2020
<artifactId>core</artifactId>
21-
<version>1.7.1</version> <!-- Replace with latest version -->
21+
<version>1.7.2</version> <!-- Replace with latest version -->
2222
<scope>provided</scope>
2323
</dependency>
2424
```
@@ -29,7 +29,7 @@ repositories {
2929
}
3030
3131
dependencies {
32-
compileOnly 'net.flectone.pulse:core:1.7.1' // Replace with latest version
32+
compileOnly 'net.flectone.pulse:core:1.7.2' // Replace with latest version
3333
}
3434
```
3535

@@ -39,7 +39,7 @@ repositories {
3939
}
4040

4141
dependencies {
42-
compileOnly("net.flectone.pulse:core:1.7.1") // Replace with latest version
42+
compileOnly("net.flectone.pulse:core:1.7.2") // Replace with latest version
4343
}
4444
```
4545

@@ -53,7 +53,7 @@ For snapshot versions:
5353
<dependency>
5454
<groupId>net.flectone.pulse</groupId>
5555
<artifactId>core</artifactId>
56-
<version>1.7.2-SNAPSHOT</version> <!-- Replace with latest version -->
56+
<version>1.7.3-SNAPSHOT</version> <!-- Replace with latest version -->
5757
<scope>provided</scope>
5858
</dependency>
5959
```
@@ -64,7 +64,7 @@ repositories {
6464
}
6565
6666
dependencies {
67-
compileOnly 'net.flectone.pulse:core:1.7.2-SNAPSHOT' // Replace with latest version
67+
compileOnly 'net.flectone.pulse:core:1.7.3-SNAPSHOT' // Replace with latest version
6868
}
6969
```
7070

@@ -74,7 +74,7 @@ repositories {
7474
}
7575

7676
dependencies {
77-
compileOnly("net.flectone.pulse:core:1.7.2-SNAPSHOT") // Replace with latest version
77+
compileOnly("net.flectone.pulse:core:1.7.3-SNAPSHOT") // Replace with latest version
7878
}
7979
```
8080

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
authors:
3+
- TheFaser
4+
---
5+
6+
# `/sprite`
7+
8+
Command for searching sprites from Minecraft atlases
9+
![sprite](/commandsprite.png)
10+
11+
[//]: # (localization)
12+
<!--@include: @/parts/words.md#localization-->
13+
<!--@include: @/parts/words.md#path--> `localizations → language.yml → command.sprite`
14+
15+
<!--@include: @/parts/words.md#default-->
16+
17+
::: code-group
18+
<<< @/files/localizations/ru_ru.yml#sprite
19+
<<< @/files/localizations/en_us.yml#sprite
20+
:::
21+
22+
### `null_atlas`
23+
24+
Message if the entered atlas does not exist
25+
26+
### `null_page`
27+
28+
Message if the entered page does not exist
29+
30+
### `download_error`
31+
32+
Message when downloading an atlas file from the internet fails. Atlases may differ or not exist across different versions, so this error should be considered normal
33+
34+
### `atlas_downloading`
35+
36+
Message when starting to download an atlas file from the internet
37+
38+
### `header`
39+
40+
The top part of the list message
41+
42+
### `line_element`
43+
44+
Format for each component, they will be added one after another
45+
46+
#### `footer`
47+
48+
The bottom part of the list message
49+
50+
[//]: # (command.yml)
51+
<!--@include: @/parts/words.md#setting-->
52+
<!--@include: @/parts/words.md#path--> `command.yml → sprite`
53+
54+
<!--@include: @/parts/words.md#default-->
55+
<<< @/files/command.yml#sprite
56+
57+
<!--@include: @/parts/enable.md-->
58+
<!--@include: @/parts/perPage.md-->
59+
<!--@include: @/parts/aliases.md-->
60+
61+
### `categories`
62+
63+
List of categories, i.e., available atlases
64+
65+
::: info INFO
66+
- Each atlas is downloaded only once if it does not exist in the folder `FlectonePulse/minecraft/<version>/atlases/`
67+
- Each atlas has the final format `minecraft_textures_atlas_<atlas>.png.txt`
68+
- Each atlas is downloaded from Flectone's own web server via the link `https://flectone.net/files/r/minecraft/<version>/atlases/minecraft_textures_atlas_<atlas>.png.txt`
69+
- Atlases do not necessarily need to be downloaded from the web server; you can place them manually in advance in the folder `FlectonePulse/minecraft/<version>/atlases/` by obtaining them using the `F3 + S` combination in Minecraft
70+
:::
71+
72+
<!--@include: @/parts/cooldown.md-->
73+
<!--@include: @/parts/sound.md-->
74+
75+
[//]: # (permission.yml)
76+
<!--@include: @/parts/words.md#permission-->
77+
<!--@include: @/parts/words.md#path--> `permission.yml → command.sprite`
78+
79+
<!--@include: @/parts/words.md#default-->
80+
<<< @/files/permission.yml#sprite
81+
82+
<!--@include: @/parts/permission/permissionTier3.md-->
83+
<!--@include: @/parts/permission/cooldown.md-->
84+
<!--@include: @/parts/permission/sound.md-->

pulse/en/docs/command/symbol/index.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,25 @@ Huge thanks to @replaceitem for allowing the use of [symbol lists](https://githu
2222
<<< @/files/localizations/en_us.yml#symbol
2323
:::
2424

25-
### `format`
25+
### `null_category`
2626

27-
Format of the message that will be sent
27+
Message if the entered category does not exist
28+
29+
### `null_page`
30+
31+
Message if the entered page does not exist
32+
33+
### `header`
34+
35+
The top part of the list message
36+
37+
### `line_element`
38+
39+
Format for each component, they will be added one after another
40+
41+
#### `footer`
42+
43+
The bottom part of the list message
2844

2945
[//]: # (command.yml)
3046
<!--@include: @/parts/words.md#setting-->
@@ -34,6 +50,7 @@ Format of the message that will be sent
3450
<<< @/files/command.yml#symbol
3551

3652
<!--@include: @/parts/enable.md-->
53+
<!--@include: @/parts/perPage.md-->
3754
<!--@include: @/parts/aliases.md-->
3855

3956
### `categories`
@@ -43,9 +60,8 @@ List of categories and symbols separated by spaces
4360
::: info WHAT CAN YOU DO WITH THIS?
4461
1. Add your own symbols to the current ones, separated by spaces
4562
2. Rename categories or add your own
46-
:::
63+
:::
4764

48-
<!--@include: @/parts/destination.md-->
4965
<!--@include: @/parts/cooldown.md-->
5066
<!--@include: @/parts/sound.md-->
5167

pulse/en/docs/integration/discord/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ You don't need to configure localization, by default the message will be sent wi
342342
:::
343343

344344
<!--@include: @/parts/destination.md-->
345+
<!--@include: @/parts/sound.md-->
345346

346347
[//]: # (permission.yml)
347348
<!--@include: @/parts/words.md#permission-->
@@ -350,4 +351,5 @@ You don't need to configure localization, by default the message will be sent wi
350351
<!--@include: @/parts/words.md#default-->
351352
<<< @/files/permission.yml#discord
352353

353-
<!--@include: @/parts/permission/permissionTier3.md-->
354+
<!--@include: @/parts/permission/permissionTier3.md-->
355+
<!--@include: @/parts/permission/sound.md-->

pulse/en/docs/integration/telegram/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ For other chats in the forum, this rule does not apply, and you need to enter th
187187
:::
188188

189189
<!--@include: @/parts/destination.md-->
190+
<!--@include: @/parts/sound.md-->
190191

191192
[//]: # (permission.yml)
192193
<!--@include: @/parts/words.md#permission-->
@@ -195,4 +196,5 @@ For other chats in the forum, this rule does not apply, and you need to enter th
195196
<!--@include: @/parts/words.md#default-->
196197
<<< @/files/permission.yml#telegram
197198

198-
<!--@include: @/parts/permission/permissionTier3.md-->
199+
<!--@include: @/parts/permission/permissionTier3.md-->
200+
<!--@include: @/parts/permission/sound.md-->

pulse/en/docs/integration/twitch/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ follow_channel:
168168
:::
169169

170170
<!--@include: @/parts/destination.md-->
171+
<!--@include: @/parts/sound.md-->
171172

172173
[//]: # (permission.yml)
173174
<!--@include: @/parts/words.md#permission-->
@@ -176,4 +177,5 @@ follow_channel:
176177
<!--@include: @/parts/words.md#default-->
177178
<<< @/files/permission.yml#twitch
178179

179-
<!--@include: @/parts/permission/permissionTier3.md-->
180+
<!--@include: @/parts/permission/permissionTier3.md-->
181+
<!--@include: @/parts/permission/sound.md-->

pulse/en/docs/message/format/object/index.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,30 @@ The module will only work for players using version `1.21.9` and above. For othe
1111

1212
:::
1313

14+
::: warning WARNING
15+
16+
Heads and sprites can be colored in config files. To prevent this, you need to use a white color before them. For example: `<white><player_head></white>`
17+
18+
:::
19+
1420
Module responsible for heads and symbols in chat
1521
![object](/object.png)
1622

23+
[//]: # (localization)
24+
<!--@include: @/parts/words.md#localization-->
25+
<!--@include: @/parts/words.md#path--> `localizations → language.yml → message.format.object`
26+
27+
<!--@include: @/parts/words.md#default-->
28+
29+
::: code-group
30+
<<< @/files/localizations/ru_ru.yml#object
31+
<<< @/files/localizations/en_us.yml#object
32+
:::
33+
34+
### `default_symbol`
35+
36+
Symbol for regular `<player_head>` and `<sprite>`, if the recipient cannot see the final object (for `<player_head_or>` and `<sprite_or>` this is specified manually)
37+
1738
[//]: # (message.yml)
1839
<!--@include: @/parts/words.md#setting-->
1940
<!--@include: @/parts/words.md#path--> `message.yml → format.object`
@@ -30,6 +51,7 @@ Enables formatting of the `<player_head>` placeholder. It can be used in differe
3051
- `<player_head:Notch>` returns the head of the player whose nickname was written inside
3152
- `<player_head:Notch:false>` returns the head of the player with the second layer disabled, whose nickname was written inside
3253
- If the specified nickname doesn't exist, the head will have a random default skin
54+
- `<player_head_or:...>` will return the player's head or the text specified as the first argument if the recipient cannot see heads in chat. For example, `<player_head_or:hello:Notch>` will return Notch's head, and in the console, it will be the word `hello`
3355

3456
::: tip NOTE
3557

@@ -43,9 +65,12 @@ Enables formatting of the `<sprite:...>` placeholder. It can be used in differen
4365
- `<sprite:name>`, returns an icon from the `blocks` atlas, for example `<sprite:item/diamond_sword>` (this is the same as `<sprite:blocks:item/diamond_sword>`)
4466
- `<sprite:atlas:name>`, returns an icon from the specified atlas, for example `<sprite:gui:container/slot>`
4567
- If the sprite is specified incorrectly, it will be an unknown texture. Using a resource pack you can create your own sprites
68+
- `<sprite_or:...>` returns an sprite or the text specified as the first argument if the recipient cannot see sprites in chat. For example, `<sprite_or:hello:block/oak_log>` returns the oak sprite, and in the console, it will be the word `hello`
4669

47-
The easiest way to find atlas and icon names is in the folder created using the `F3 + S` combination inside Minecraft. There will be `minecraft_textures_atlas_...` files with `.txt` and `.png` format, using this it's easy to find the right sprite.
70+
The easiest way to find atlas and sprite names is by using the [command /sprite](/docs/command/sprite/)
71+
![command sprite](/commandsprite.png)
4872

73+
You can also find them in the folder created using the `F3 + S` combination inside Minecraft. There, you will find `minecraft_textures_atlas_...` files in both `.txt` and `.png` formats, which you can use to locate the appropriate sprite
4974
::: info EXAMPLE
5075

5176
There is a `gui` atlas with the name `minecraft_textures_atlas_gui.png.txt`. In it you can find a line with `minecraft:container/slot x=494 y=54 w=18 h=18`

pulse/en/files/command.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,33 @@ rockpaperscissors:
702702
sound:
703703
enable: false
704704
#endregion rockpaperscissors
705+
#region sprite
706+
sprite:
707+
enable: true
708+
per_page: 16
709+
aliases:
710+
- "sprite"
711+
categories:
712+
- "armor_trims"
713+
- "banner_patterns"
714+
- "beds"
715+
- "blocks"
716+
- "celestials"
717+
- "chest"
718+
- "decorated_pot"
719+
- "gui"
720+
- "items"
721+
- "map_decorations"
722+
- "paintings"
723+
- "particles"
724+
- "shield_patterns"
725+
- "shulker_boxes"
726+
- "signs"
727+
cooldown:
728+
enable: false
729+
sound:
730+
enable: false
731+
#endregion sprite
705732
#region spy
706733
spy:
707734
enable: true
@@ -749,6 +776,7 @@ stream:
749776
#region symbol
750777
symbol:
751778
enable: true
779+
per_page: 16
752780
aliases:
753781
- "symbol"
754782
categories:

pulse/en/files/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
# \/ \/
1010
#
1111
# Don't change it if you don't know what it is
12-
# region version
13-
version: "1.7.1"
14-
# endregion version
12+
version: "1.7.2"
1513
#region language
1614
language:
1715
type: "en_us"

pulse/en/files/integration.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ discord:
5555
- "123456"
5656
destination:
5757
type: "CHAT"
58+
sound:
59+
enable: false
5860
#endregion discord
5961
#region floodgate
6062
floodgate:
@@ -166,6 +168,8 @@ telegram:
166168
- "123456"
167169
destination:
168170
type: "CHAT"
171+
sound:
172+
enable: false
169173
#endregion telegram
170174
#region triton
171175
triton:
@@ -191,6 +195,8 @@ twitch:
191195
- "stream start https://twitch.tv/faseri4ka"
192196
destination:
193197
type: "CHAT"
198+
sound:
199+
enable: false
194200
#endregion twitch
195201
#region vault
196202
vault:

0 commit comments

Comments
 (0)