-
Bug
-
Resolution: Duplicate
-
None
-
1.19.2, 22w45a
-
None
-
Unconfirmed
-
(Unassigned)
Context:
I know it sounds very specific, but it is something that has been asked several times on the MCC Discord server, and I have personally faced this issue yesterday.
When you set up a custom advancement with the "consume_item" trigger and consume an item, no matter if it is a food item or a potion, and whatever your game mode is, it will trigger the advancement once. But if you do it specifically with a Honey Bottle in Creative mode, the game will trigger the advancement twice.
Suspicion:
The fact that you are in Creative Mode will give a honey bottle back to the player instead of an empty bottle you should normally get in other game modes. The process may confuse what the player was holding and is currently holding after the consumption, triggering the advancement twice.
How to reproduce:
- Create a new world in creative mode and and install the example data pack from the attached files.
- Get a honey bottle and consume it.
- Current result: The reward function will run twice, sending the "I consumed a Honey Bottle!" message twice in the chat.
- Expected result: The reward function should run only once, sending an unique "I consumed a Honey Bottle!" message in the chat.
- duplicates
-
MC-182814 Drinking honey bottles increases "minecraft.used:minecraft.honey_bottle" by a value of two and runs the "minecraft:consume_item" advancement trigger twice
- Resolved