mojira.dev
MC-270078

/give doesn't allow names to have spaces

when using /give the command

/give @p minecraft:paper[minecraft:custom_name="ab"]

works but

/give @p minecraft:paper[minecraft:custom_name="a b"]

does not work with the following error being produced:

[media]

I think the command should allow spaces and some other characters so you can have an item display "Atom's Hammer" or something similar

same should also apply to "minecraft:item_name"

Linked issues

Attachments

Comments 6

This was possible to do in 1.20.4 using the following command:

/give @p paper{display:{Name:'[{"text":"a b"}]'}}

It's still possible by typing custom_name='"name with spaces"', you just need to double quote like that

@Greymagic27 The bug report is for snapshot 24w13a, not release 1.20.4

I know. It's good to know if this issue occurs in the latest release as well or if it's new in the snapshot. That's why I went back to check

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

This report does not describe a bug.

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

Ashly W

(Unassigned)

Confirmed

Commands

24w13a

Retrieved