I'm making a redstone project to make one of my videos more interesting. Basically, I'm want to test for if the nearest player, @p, has 15 levels and only 15 levels. Then, if they do have those levels, I want a command block to say, "Congratulations! You are now invincible!" Or whatever. Then, I want command blocks to give an effect to the nearest player.
Things I already know:
/testfor @p [lm=15,l=15]
/tellraw @p Congratulations! You are now invincible!
/effect @p 21 1000000 124
/effect @p 22 1000000 14
Things I already know:
/testfor @p [lm=15,l=15]
/tellraw @p Congratulations! You are now invincible!
/effect @p 21 1000000 124
/effect @p 22 1000000 14
How do I put the commands in order?
.have a clock hooked up to a command block with: /scoreboard players set @a [lm=15,l=15] level 1
this will set anyone level 15 to 1 score
.then have a clock hooked up to: /effect @a[score_level_min=1] (effect id) (duration)
or with /give or something
hope this helps!