Skip to content

Commit a674cca

Browse files
committed
📄 Fix doc comments about #dyeable tag
1 parent 8ca6164 commit a674cca

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

java/assets/equipment.mcdoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ struct Layers {
3636
type Layer<T> = struct {
3737
/// Texture location for this layer, inside `entity/equipment/<layer>/`.
3838
texture: T,
39-
/// Configures how this layer behaves when dyed (in the `#dyeable` item tag, and has the `dyed_color` component).
40-
dyeable?: Dyeable,
39+
#[until="1.21.5"] ...struct {
40+
/// Configures how this layer behaves when dyed (in the `#dyeable` item tag, and has the `dyed_color` component).
41+
dyeable?: Dyeable,
42+
},
43+
#[since="1.21.5"] ...struct {
44+
/// Configures how this layer behaves when dyed (has the `dyed_color` component).
45+
dyeable?: Dyeable,
46+
},
4147
}
4248

4349
struct Dyeable {

java/data/loot/function.mcdoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,9 @@ dispatch minecraft:loot_function[set_potion] to struct SetPotion {
578578

579579
#[since="26.1"]
580580
dispatch minecraft:loot_function[set_random_dyes] to struct SetRandomDyes {
581-
/// Applies specified number of random dyes to the item.
582-
/// For example, one possible outcome of `"number_of_dyes": 2` is `#2C3065`, which is the combination of a blue dye and a black dye.
581+
/// Applies specified number of random dyes to the item. \
582+
/// For example, one possible outcome of `"number_of_dyes": 2` is `#2C3065`, which is the combination of a blue dye and a black dye. \
583583
/// The same dye color can be selected multiple times.
584-
/// Only has effect on `#dyeable` items.
585584
number_of_dyes: NumberProvider,
586585
...Conditions,
587586
}

0 commit comments

Comments
 (0)