mojira.dev
MC-305342

Enchantments cannot apply more than 33 exhaustion points to the player in one 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

Attachments

Comments 5

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

sorry for not replaying


the idea is simple iwant to make the player lose exact number of hunger but since the way the system work i must give the player the hunger effect or use enchantment with the apply_exhaustion effect

the enchantment (the one in the report) supposed to applay 1 level of exhaustion per enchantment level if i want to make the player lose 1 ssaturation i can give the player saddle with encantment level 4 for 1 tick
this works perfectly as long as the encantment is level 33 or below
once the encantment reach level 34+ it keep apllaying only 33 exhaustion

i hope this carifies the problem

Please attach the pack required to reproduce this issue

tested and verified in vanilla 26.2

this pack has only the bug reletad files

how to use :

use the command /function clones:apply_macro {level:XX}

with level X to remove X amount of exhaustion

every value past 34 give the same result of hunger

use the command /function clones:saturation to restore hunger

[media]

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

dvirov

(Unassigned)

Confirmed

1.21.11, 26.1.1, 26.3 Snapshot 7

Retrieved