Arqade Asked by Matthew david alexander on December 10, 2020
I copied a command from McStacker, put it into a command block and it never works (i am on the correct version and i am op).
why doesnt this work for me?
i have watched tutorials on youtube and made sure to follow it through (link to the video:
)
Here is the command:
/give @p carrot_on_a_stick{display:{Name:'{"text":"Lee Enfield","color":"green","bold":true,"italic":true}'},HideFlags:5,Unbreakable:1b,CustomModelData:123456,Lee Enfield:1b,Enchantments:[{id:"minecraft:sharpness",lvl:10s},{id:"minecraft:knockback",lvl:1s}]} 1
Take a closer look at this section:
...CustomModelData:123456,Lee Enfield:1b,Enchantments:...
Lee Enfield
, I presume, is a custom tag you're using to detect that item. Tag names cannot contain spaces in commands, while the files technically allow for it, Minecraft won't allow it. So you should change your tag name to something without spaces: LeeEnfield
That seems to be all, the command is marked correct when the space is removed.
Correct answer by ExpertCoder14 on December 10, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP