-
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.