-2

I am able to run commands using the click event on a sign that exceed the 256 character limit, but I can't run a different command that is 5735 characters long

This is the command:

/setblock 0 0 0 minecraft:repeating_command_block{auto:1b,Command:'execute as @a[nbt={SelectedItem:{id:"minecraft:written_book",tag:{title:Wavepoints,generation:3}}}] run replaceitem entity @s weapon.mainhand minecraft:written_book{pages:[\'["",{"text":"WavePoint 1","bold":true,"color":"black","hoverEvent":{"action":"show_text","contents":{"selector":"@e[tag=WavePoint1]"}}},{"text":"\\\\n","color":"reset"},{"text":"Set","color":"dark_gray","clickEvent":{"action":"run_command","value":"/summon minecraft:armor_stand ~ ~ ~ {Tags:[\\\\"WavePoint1\\\\",\\\\"WavePoint\\\\"],Marker:1b,Invisible:1b, CustomName: \\\'{\\\\"text\\\\":\\\\"WavePoint1\\\\"}\\\',Invulnerable:1b,NoGravity:1b}"},"hoverEvent":{"action":"show_text","contents":"Set Wavepoint"}},{"text":"  ","color":"dark_gray"},{"text":"Remove","color":"dark_gray","clickEvent":{"action":"run_command","value":"/kill @e[tag=WavePoint1]"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Remove "},{"selector":"@e[tag=WavePoint1]"}]}},{"text":"  ","color":"dark_gray"},{"text":"Teleport","color":"dark_gray","clickEvent":{"action":"run_command","value":"/execute at @e[tag=WavePoint1,limit=1,sort=nearest] run tp @s ~ ~ ~"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Teleport to "},{"selector":"@e[tag=WavePoint1]"}]}},{"text":"\\\\n\\\\n","color":"reset"},{"text":"WavePoint 2","bold":true,"color":"black","hoverEvent":{"action":"show_text","contents":{"selector":"@e[tag=WavePoint2]"}}},{"text":"\\\\n","color":"reset"},{"text":"Set","color":"dark_gray","clickEvent":{"action":"run_command","value":"/summon minecraft:armor_stand ~ ~ ~ {Tags:[\\\\"WavePoint2\\\\",\\\\"WavePoint\\\\"],Marker:1b,Invisible:1b, CustomName: \\\'{\\\\"text\\\\":\\\\"WavePoint2\\\\"}\\\',Invulnerable:1b,NoGravity:1b}"},"hoverEvent":{"action":"show_text","contents":"Set Wavepoint"}},{"text":"  ","color":"dark_gray"},{"text":"Remove","color":"dark_gray","clickEvent":{"action":"run_command","value":"/kill @e[tag=WavePoint2]"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Remove "},{"selector":"@e[tag=WavePoint2]"}]}},{"text":"  ","color":"dark_gray"},{"text":"Teleport","color":"dark_gray","clickEvent":{"action":"run_command","value":"/execute at @e[tag=WavePoint2,limit=1,sort=nearest] run tp @s ~ ~ ~"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Teleport to "},{"selector":"@e[tag=WavePoint2]"}]}},{"text":"\\\\n\\\\n","color":"reset"},{"text":"WavePoint 3","bold":true,"color":"black","hoverEvent":{"action":"show_text","contents":{"selector":"@e[tag=WavePoint3]"}}},{"text":"\\\\n","color":"reset"},{"text":"Set","color":"dark_gray","clickEvent":{"action":"run_command","value":"/summon minecraft:armor_stand ~ ~ ~ {Tags:[\\\\"WavePoint3\\\\",\\\\"WavePoint\\\\"],Marker:1b,Invisible:1b, CustomName: \\\'{\\\\"text\\\\":\\\\"WavePoint3\\\\"}\\\',Invulnerable:1b,NoGravity:1b}"},"hoverEvent":{"action":"show_text","contents":"Set Wavepoint"}},{"text":"  ","color":"dark_gray"},{"text":"Remove","color":"dark_gray","clickEvent":{"action":"run_command","value":"/kill @e[tag=WavePoint3]"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Remove "},{"selector":"@e[tag=WavePoint3]"}]}},{"text":"  ","color":"dark_gray"},{"text":"Teleport","color":"dark_gray","clickEvent":{"action":"run_command","value":"/execute at @e[tag=WavePoint3,limit=1,sort=nearest] run tp @s ~ ~ ~"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Teleport to "},{"selector":"@e[tag=WavePoint3]"}]}},{"text":"\\\\n\\\\n","color":"reset"},{"text":"WavePoint 4","bold":true,"color":"black","hoverEvent":{"action":"show_text","contents":{"selector":"@e[tag=WavePoint4]"}}},{"text":"\\\\n","color":"reset"},{"text":"Set","color":"dark_gray","clickEvent":{"action":"run_command","value":"/summon minecraft:armor_stand ~ ~ ~ {Tags:[\\\\"WavePoint4\\\\",\\\\"WavePoint\\\\"],Marker:1b,Invisible:1b, CustomName: \\\'{\\\\"text\\\\":\\\\"WavePoint4\\\\"}\\\',Invulnerable:1b,NoGravity:1b}"},"hoverEvent":{"action":"show_text","contents":"Set Wavepoint"}},{"text":"  ","color":"dark_gray"},{"text":"Remove","color":"dark_gray","clickEvent":{"action":"run_command","value":"/kill @e[tag=WavePoint4]"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Remove "},{"selector":"@e[tag=WavePoint4]"}]}},{"text":"  ","color":"dark_gray"},{"text":"Teleport","color":"dark_gray","clickEvent":{"action":"run_command","value":"/execute at @e[tag=WavePoint4,limit=1,sort=nearest] run tp @s ~ ~ ~"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Teleport to "},{"selector":"@e[tag=WavePoint4]"}]}},{"text":"\\\\n\\\\n","color":"reset"},{"text":"WavePoint 5","bold":true,"color":"black","hoverEvent":{"action":"show_text","contents":{"selector":"@e[tag=WavePoint5]"}}},{"text":"\\\\n","color":"reset"},{"text":"Set","color":"dark_gray","clickEvent":{"action":"run_command","value":"/summon minecraft:armor_stand ~ ~ ~ {Tags:[\\\\"WavePoint5\\\\",\\\\"WavePoint\\\\"],Marker:1b,Invisible:1b, CustomName: \\\'{\\\\"text\\\\":\\\\"WavePoint5\\\\"}\\\',Invulnerable:1b,NoGravity:1b}"},"hoverEvent":{"action":"show_text","contents":"Set Wavepoint"}},{"text":"  ","color":"dark_gray"},{"text":"Remove","color":"dark_gray","clickEvent":{"action":"run_command","value":"/kill @e[tag=WavePoint5]"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Remove "},{"selector":"@e[tag=WavePoint5]"}]}},{"text":"  ","color":"dark_gray"},{"text":"Teleport","color":"dark_gray","clickEvent":{"action":"run_command","value":"/execute at @e[tag=WavePoint5,limit=1,sort=nearest] run tp @s ~ ~ ~"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Teleport to "},{"selector":"@e[tag=WavePoint5]"}]}}]\'],title:Wavepoints,author:"",generation:3} 1'}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.