Skip to content

Commit

Permalink
🐛 Dispatch identifiers can't be quoted
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 14, 2024
1 parent f2d2d91 commit 3df90a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion java/assets/lang.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dispatch minecraft:resource[lang] to struct Lang {
[#[translation_key(definition=true)] string]: string,
}

dispatch minecraft:resources["lang/deprecated"] to struct LangDeprecated {
dispatch minecraft:resources[lang_deprecated] to struct LangDeprecated {
/// List of removed ranslation keys.
removed: [#[translation_key(removed=true)] string],
/// Mapping renamed translation keys from old to new keys.
Expand Down
6 changes: 3 additions & 3 deletions java/assets/texture_meta.mcdoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dispatch minecraft:resource[texture_meta] to struct TextureMeta {
animation: struct TextureAnimation {
animation?: struct TextureAnimation {
/// If true, additional frames will be generated between frames with a frame time greater than 1 between them. Defaults to false.
interpolate?: boolean,
/// The width of the tile, as a direct ratio rather than in pixels. Can be used by resource packs to have frames that are not perfect squares.
Expand All @@ -20,12 +20,12 @@ dispatch minecraft:resource[texture_meta] to struct TextureMeta {
)],
},
/// Only available for villager textures.
villager: struct VillagerTextureMeta {
villager?: struct VillagerTextureMeta {
/// Determines whether the villager's 'profession' hat layer should allow the 'type' hat layer to render or not. If this mcmeta is undefined the default is used.
hat?: ("full" | "partial")
},
/// Only available for colormaps.
texture: struct ColormapTextureMeta {
texture?: struct ColormapTextureMeta {
/// Causes the texture to blur when viewed from close up. Defaults to false.
blur?: boolean,
/// Causes the texture to stretch instead of tiling in cases where it otherwise would, such as on the shadow. Defaults to false.
Expand Down

0 comments on commit 3df90a1

Please sign in to comment.