I have my own "xServer" on xevento.net as they call it.
and I would like to insert a WHEN in a Command block, for example:
If you kill a mob you get 10 coins
but unfortunately I have no idea how to do this because I have a "IF" or an "IF" in the CMD block is not known
I only know the method with testfor.
but I know ned if that goes with killing mobs.
It's not that easy xD
If you're at 1.13, you'll need to create a score that contains the kill count and test if it drops above 1, and then you can say "say @a [score_killcount_min = 1] killed a mob"
Then set the counter back to 0 with a subsequent Cblock.
All information about the score: https://minecraft.gamepedia.com/...Scoreboard
But KillCounts are only for players in this scoreboard case? Or?
The question was also related to a player or? Or if you thought the answer is different you can also test if a player kills a mob if you mean that…
If you kill a mob you get 10 coins
Command would look like this:
scoreboard players add @a [score_killcount = 1] Coins 10
Then reset and that was it.