On armor.body
slot and saddle
slots, when /item modify
or /item replace
commands are run, it does not cause the minecraft:inventory_changed
to be triggered.
Steps to reproduce:
Create the world with
bug_report
datapack activated(It is provided in the files section of this post.)Run this command to see the advancement is working:
The result should be “My Inventory Changed” text be displayed on the chat./item replace entity @s weapon.mainhand with minecraft:diamond_horse_armor
Run this command to see if the modifier is working:
The result should be “My Inventory Changed” text be displayed on the chat/item modify entity @s weapon.mainhand bug_report:modifier_set_name
Run this command to see the bug with
/item replace
The result should be, the command executing with success but “My Inventory Changed” text not being put in in chat, which shows theminecraft:inventory_changed
did not trigger./item replace entity @s armor.body with minecraft:diamond_horse_armor
Run this command to see the bug with
/item modify
The result should be, the command executing with success but “My Inventory Changed” text not being put in in chat, which shows theminecraft:inventory_changed
did not trigger./item modify entity @s armor.body bug_report:modifier_set_name
Repeat the steps 4 and 5 with the command being modified to replace
armor.body with minecraft:diamond_horse_armor
withsaddle with minecraft:saddle
on the step 4, andarmor.body
withsaddle
on the step 5 to see the saddle slot being broken, the outputs should be the same.
These are the steps to reproduce the bug.
Environment
A newly created Vanilla 1.21.7 Minecraft World, with bug_report datapack I have created(In the files), which only has an advancement, a function and 2 item modifiers, to visualize and test the bug.
Linked issues
Attachments
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Video recreation of it: