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

Command blocks re-parse their command on every execution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.18.1
    • None
    • Plausible
    • Commands, Performance

      The bug

      Even though in almost all cases the command of a command block remains the same throughout the lifetime of the world, command blocks don't cache the parse result of their command and re-parse it on every execution. This degrades the execution performance of command blocks.

      Code analysis

      See net.minecraft.world.level.BaseCommandBlock#performCommand.

            Unassigned Unassigned
            intsuc intsuc
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: