File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,14 @@ struct Layers {
3636type 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
4349struct Dyeable {
Original file line number Diff line number Diff line change @@ -578,10 +578,9 @@ dispatch minecraft:loot_function[set_potion] to struct SetPotion {
578578
579579#[since="26.1"]
580580dispatch 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}
You can’t perform that action at this time.
0 commit comments