CommandUtils - Command alias, delay, and other handy stuff

No, CommandUtils can’t count and/or save anything itself for later use, nor can it check for items in the whole inventory.

But you could do some stuff with scoreboards to increment some virtual “account/scoreboard value” which holds the amount of your coal/iron ore. I am not a scoreboard expert really. There might be other ways by using other mechanisms somehow.

Or you could try something with KtSkript. There are no easy helpers to access the inventory in a simpler way in KtSkript yet. You would have to use the bare SpongeAPI (which isn’t bad at all). It only requires some knowledge of programming.

Let me know what you will attempt and I can help you further.