#not really a datapack but a command problem

1 messages · Page 1 of 1 (latest)

short hinge
#

i was testing something out and wanted to have chain command in execute :/give @p written_book{pages:['["",{"text":" 4","bold":true,"obfuscated":true,"color":"#F23AA"},{"text":"SHOP","color":"gold","bold":true,"underlined":true},{"text":"4","color":"reset","bold":true,"obfuscated":true},{"text":"\\n","color":"reset"},{"text":"DPOTION","color":"aqua"},{"text":":","color":"black"},{"text":"\\n","color":"reset"},{"text":"[","color":"dark_gray"},{"text":"$2000","color":"light_purple"},{"text":";","color":"reset"},{"text":"x1","color":"red"},{"text":"]=>|","color":"dark_gray"},{"text":"Buy","color":"green","clickEvent":{"action":"run_command","value":"/execute as @a[scores={Bucks=2000..}] at @s run execute as @s run give @s minecraft:stick{Count:1b} ; execute as @a[scores={Bucks=2000..}] run scoreboard players remove @s Bucks 2000"}},{"text":"|","color":"dark_gray"}]'],title:"Book",author:"wizzle"} this doesn't work , any solution or its impossible to have chain command in one execute?

cyan briarBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

waxen pilot
#

You can’t put multiple commands in there

#

Either set a score and react to that using repeating command blocks

#

Or use a data pack and make it run a function instead

short hinge
#

i see

waxen pilot
#

A function is a list of commands - but that requires a data pack

short hinge
#

i guess i ma make a data pack , thx for confirming

cyan briarBOT