Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-255795

/function command has a limit on commands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.19.2
    • None
    • Unconfirmed
    • (Unassigned)

      This is an edited version, as the original version I worded confusingly.

       

      So, I have spent over a year working on this book of quick commands. You can run commands very quickly in this book. However, after adding tons of new commands to my book, I wasn't able to get it.

      What has to be understood before solving is that command blocks can only support a command that is 32,000 characters in length. If you put a command that is longer than that limit, the command will not be able to fit, and then you will have to resort to using datapacks to run your command. You must put your command into a .mcfunction file and run the /function command ingame.

      Usually, when doing /function in game, your .mcfunction files would show up as autocorrect, and you could use them that way. My command, however, did not show up when I did /function in the world. I tried to fix it by looking up to see if anyone had experienced this problem before, but it was only with multiple commands at once. The command I was trying to run was one single command.

      I suspect it is the length of the command, since it is over 230,000 characters long.

       

      Things that I have already tried:

       

      Checking to see if the command had an error: No, this is not the cause because it has happened to me before and the command showed up.

      Using a different datapack: I'm using a .mcfunction file, which doesn't have a designated datapack to go with it. It can work with any.

      Checking to see if there was too much data on the world: I have tested it on multiple worlds.

      Checking on different versions: Every recent version does not work.

      Checking if it was a specific client: Vanilla, feather, and optifine all do not work.

      The only thing I can think of is that the command is too long, or another reason I have not tried.

       

            Unassigned Unassigned
            Phobose10002 Phobose10002
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: