I'm trying to set up a /time set day command block that subtracts 5 levels from the player that uses it problem is, it changes the time but only subtracts the levels if I have them. If I have 4 levels it still changes the weather, it shouldn't be allowed to.
Top Command Block: /xp -5L @p[lm=5]
Bottom Block: time set day @p[lm=5]
I'm still looking into this problem but I figured someone might be able to help me before I figure out the solution to this.
At this point I'm just posting to help those who get stuck in this situation.
The problem with last method was the Comparator got stuck in a always on state causing the next person to press the button to just lose 5 levels but not trigger the next command block. so repeater with a delay will flip the comparator off and the command block will turn it back on triggering the next block