Skip to content

Commit

Permalink
🐛 Fix enchantment weight and max_level ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Nov 3, 2024
1 parent b642492 commit 9a971d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions java/data/enchantment.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ dispatch minecraft:resource[enchantment] to struct Enchantment {
[#[id="item"] string] |
),
/// How commonly the Enchantment appears, compared to the total combined `weight` of all available Enchantments.
weight: int @ 0..,
max_level: int @ 1..,
weight: int @ 1..1024,
/// Maxumum level of the enchantment.
max_level: int @ 1..255,
/// Minimum experience cost.
min_cost: EnchantmentCost,
/// Maximum experience cost.
Expand Down

0 comments on commit 9a971d7

Please sign in to comment.