Skip to content

Commit

Permalink
🐛 Fix #51 remove ranges from pack formats
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 4, 2024
1 parent 1af0665 commit 03d58ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions java/pack.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ use ::java::server::util::range::InclusiveRange
struct Pack {
pack: struct PackBase {
description: Text,
pack_format: #[pack_format] int @ 4..,
supported_formats?: InclusiveRange<#[pack_format] int @ 4..>,
pack_format: #[pack_format] int,
#[since="1.20.2"]
supported_formats?: InclusiveRange<#[pack_format] int>,
},
#[since="1.19"]
filter?: PackFilter,
#[since="1.19.3"]
features?: PackFeatures,
#[since="1.20.2"]
overlays?: PackOverlays,
}

Expand All @@ -37,7 +39,7 @@ enum(string) FeatureFlag {
#[since="1.20.3"] #[until="1.21"] Update121 = "update_1_21",
#[since="1.21.2"] RedstoneExperiments = "redstone_experiments",
#[since="1.21.2"] MinecartImprovements = "minecart_improvements",
#[since="1.21.2"] #[until="1.21.4"] WinterDrop = "winter_drop"
#[since="1.21.2"] #[until="1.21.4"] WinterDrop = "winter_drop",
}

struct PackOverlays {
Expand All @@ -46,5 +48,5 @@ struct PackOverlays {

struct PackOverlay {
directory: string @ 1..,
formats: InclusiveRange<#[pack_format] int @ 16..>,
formats: InclusiveRange<#[pack_format] int>,
}

0 comments on commit 03d58ef

Please sign in to comment.