mojira.dev

iBunny

Assigned

No issues.

Reported

MC-277293 Component 'use_remainder' doesn't affect most items correctly Invalid MC-268337 Custom "dyed" items (via "dyeable" item tag) cannot be washed in a Cauldron Confirmed

Comments

there is no confusion.

"use" within the context of minecraft is pretty cut and dry.

every one of these examples should count as a "use" because they do so throughout the rest of the game on both a surface and technical level already. as I said in the report; you can verify each example in the statistics screen under "times used", or via a scoreboard tracking the objective minecraft.used:minecraft.<item>, or with the 'item_used_on_block' or 'using_item' advancement criteria.

the word "use" comes up in all of those, and the only thing it's seemingly inconsistent with is the "use_remainder" item component.
hence this post

Respectfully, I disagree with the assessment that this is a feature request as I am simply reporting that "use_remainder" does not work as explicitly described in the changelog of 24w35a:

MINECRAFT:USE_REMAINDER:

If present, will replace the item with a remainder item if its stack count has decreased after use

All of these behaviours that do not result in a remainder item meet both requirements of being used and decreasing the item's stack count, thus its a bug.

A feature request would be "use_remainder should accept loot tables and/or item modifiers", or "rename use_remainder and revert it back to a subcomponent of consumable as that better reflects it's actual trigger conditions in-game."

 

I also don't agree that each instance of the component not working as expected on different items are individual bugs that should be reported separately, nor that this is what I was doing. I was only providing examples designed to demonstrate exactly how "use_remainder" either does not work correctly, or consistently across the board.

I have attached a data pack with the custom "dyeable" item tag as seen in the code block in the original report.

You will find it allows you to now dye sticks any combination of colors, but unlike other dyeable items, cannot be used on a Cauldron to remove the information.

If you change the "false" to "true" in the pack's 'dyeable.json' file, Leather Armor/Horse Armor is removed from the tag and any that were dyed prior to making the change and reloading cannot be washed anymore either - indicating the behaviour is tag-dependent, and should work for custom items.