I am working on a LVL requirement system, and to do that I need to be able to compare 2 scoreboard objectives. I have been playing around with some ideas and I am still unsure on how to do it. If you can help me that would be great!
So basically I am trying to test if a player is holding an item with custom NBT that sets a higher level (achieved through a scoreboard command) than the players set LVL (again a scoreboard). I have tried /scoreboard players operation @p[Score_Tested_min=1] LVL1 -= @p[Score_Tested_min=1] lvl1
Obviously it would be hard to explain the complicated setup I have. But basically LVL1 and lvl1 are based on other objectives and the tested thing is a selector so it only works on one player per a tick.