You read the title, here I'm explaining:
let's say you wrote
/scoreboard add "exm"...
then my idea is you will spend this in commands like
/give @p stone count:{score:"exm",ScoreOwnerSelector:"@e[type=sheep,limit=1,sort=nearest]"}
The "grammer" of the method will probably be written differently, this is for the example, but you understood the main idea, use the score the entity got as a number in commands.
Please sign in to leave a comment.
3 Comments