Wiki ArticleRemoved featuresJava EditionTutorials

Tutorial:Command stats

This tutorial provides examples of how to use command stats (values returned after executing a command). This tutorial assumes the reader is already familiar with the /stats command.

These examples demonstrate how to display command stats in the sidebar. This can be useful when testing commands, monitoring command block creations, etc.

We'll use five "fake players" to hold the five command stats. Let's call them "Blocks", "Entities", "Items", "Query", and "Success".

Complete article available

This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.