Command dont work in skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

popomoka

New Member
Oct 7, 2023
6
0
1
My command work in command block but when i do :

make console execute command "/give @p iron_pickaxe{display:{Name:'[{"text":"Pioche Débutant","italic":false,"color":"gray","bold":true}]',Lore:['[{"text":"[","italic":false,"color":"gray"},{"text":"Outil de Mineur","color":"dark_aqua"},{"text":"]"},{"text":"","color":"dark_purple"}]','[{"text":"[","italic":false,"color":"gray"},{"text":"Lvl requis: 1","color":"yellow"},{"text":"]"}]']},HideFlags:8,CanDestroy:[coal_ore,copper_ore,iron_ore,gold_ore,emerald_ore,nether_quartz_ore,diamond_ore,redstone_ore,lapis_ore,amethyst_block,ancient_debris]} 1"

it isn't working... can someone help me?
im working with 1.19.4 minecraft version
 
You need to double quote!!!! Replace every " with "" in your command. It's recommended to you to use custom skript code to give it to someone.
Code:
make console execute command "/give @p iron_pickaxe{display:{Name:'[{""text"":""Pioche Débutant"",""italic"":false,""color"":""gray"",""bold"":true}]',Lore:['[{""text"":""["",""italic"":false,""color"":""gray""},{""text"":""Outil de Mineur"",""color"":""dark_aqua""},{""text"":""]""},{""text"":"""",""color"":""dark_purple""}]','[{""text"":""["",""italic"":false,""color"":""gray""},{""text"":""Lvl requis: 1"",""color"":""yellow""},{""text"":""]""}]']},HideFlags:8,CanDestroy:[coal_ore,copper_ore,iron_ore,gold_ore,emerald_ore,nether_quartz_ore,diamond_ore,redstone_ore,lapis_ore,amethyst_block,ancient_debris]} 1"
and instead of give @p why don't you use give %player% so it would be better?