mojira.dev
MC-125880

Recipe book rejects bows with Damage:0 tag when crafting dispensers

The bug

When using the recipe book to craft a dispenser, it will reject a bow if it has the Damage:0 tag.

The reason this is an issue is because the Damage tag is written after reloading the world, even if it equals 0. Items do not initially have this tag when taken out of the creative inventory, crafted, repaired, /give, etc.

Possible fixes

  • Allow the recipe book to use bows with a Damage tag of 0 and bows with no Damage tag at all

  • Allow the recipe book to use bows with a Damage tag of 0 and change damageable items to have the Damage tag by default

  • Remove and don't write the Damage tag if it equals 0

A fix should be made with MC-124876 in mind.

Linked issues

Comments 8

[Mod] Neko

Cannot confirm. Are any of the bows enchanted or damaged? Please attach a picture of your inventory.

migrated

I do have an enchanted bow in the hot-bar. So it doesn't "warn" or "refuse"? I may also have had damaged bows I combined for making them, but I did have "no durability loss" bows too, which I used to craft the dispenser manually. I can try it again if needed, and post a screenshot when I do.

[Mod] Neko

Can reproduce now. Seems to be pretty inconsistent. Weird.

migrated

No need for me to reattempt and screenshot, then? Everything else recipe-wise seems in order so far, though I rather wish Java now worked as smooth as Bedrock's recipe book. I do note pertaining to this bug, I'd rather have a warning that it's confused over which bow or something than, "I know you wanted a dispenser, I'll offer you a dropper instead" thing.

[Mod] Neko

I found the root of the problem and updated the ticket accordingly.

CreeperMagnet_

Affects 1.13-pre6.

migrated

Best to keep this Updated, even if it's marked as Postponed, as it affects 18w31a too.

AgentM

Confirmed for 19w35a

I think the better fix would be to always include a Damage tag for Damage 0 tools.

migrated

slicedlime

Confirmed

Normal

Items

Damage, bow, dispenser, recipe-book

Minecraft 18w07c, Minecraft 1.13-pre1, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 19w12b, Minecraft 19w13b

19w37a

Retrieved