mojira.dev
MC-305342

exhaustion cap at 33 pre tick

im tryin to use the enchantment effect “apply_exhaustion“ to set the hunger of player to specific amount

i use this enchantment

{
  "description": "hunger",
  "supported_items": "minecraft:saddle",
  "primary_items": "minecraft:saddle",
  "weight": 1,
  "max_level": 200,
  "min_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "max_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "anvil_cost": 0,
  "slots": [
    "saddle"
  ],
  "effects": {
    "minecraft:tick": [
      {
        "effect": {
          "type": "minecraft:apply_exhaustion",
          "amount": {
            "type": "minecraft:linear",
            "base": 1,
            "per_level_above_first": 1
          }
        }
      }
    ]
  }
}

everything works as expected until i try to use level higher the 33
when i do that, the game stops the effect at the same level no matter how high the level is


additional info

i used commands and scoreboards like
“execute store result score .Exhaustion score.food run data get entity @p foodExhaustionLevel“
to track all the hunger levels

Comments 1

Hi!
Thank you for your report! 

Could you please provide more details or/and media files?

Also, just a reminder, to make your bug report as effective as possible, please try and include the following steps to reproduce the problem: 

Steps to Reproduce: 

  1.  

  2.  

  3.  

Observed Results: 

(Briefly describe what happens) 

Expected Results: 

(Briefly describe what should happen) 

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

dvirov

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11

Retrieved