is there a way to remove someones levels and say something in one command block? havent quite been able to figure it out.
making a store with command blocks and have limited space
command block 1:
command block 2:
is there a way to throw in a say command on the second command block?
making a store with command blocks and have limited space
command block 1:
/give @p[lm=20] minecraft:diamond_swordcommand block 2:
/xp -20l @p[lm=20]is there a way to throw in a say command on the second command block?
9
I got something worked out, thank you all for your comments!
[deleted]
Personally I'd use a 20 hertz clock and assign a scoreboard objective to any player with that number of levels, then I'd remove that many levels from the player with one command block, and use another command block to /tellraw a message to the player with that objective, and /give the player with that score the item. Then I'd remove the objective from the player after it ran that loop.
It takes about 5 command blocks but it is very reliable, instant, seamless, and multiplayer friendly. You really should use 20 hertz clocks for any command block purposes now, it decreases redstone lag and works more efficiently and reliably.
It takes about 5 command blocks but it is very reliable, instant, seamless, and multiplayer friendly. You really should use 20 hertz clocks for any command block purposes now, it decreases redstone lag and works more efficiently and reliably.
Here just use this!:
https://www.youtube.com/watch?v=WVGJsle ... e=youtu.be
https://www.youtube.com/watch?v=WVGJsle ... e=youtu.be
Using a pretty unknown mod is a bit overkill for this purpose.
i got something kinda worked out,used pistons to send a pulse down where i have mass amounts of room. now i just need to get the command block to say something only if the player has the lvl removed
Use redstone logic to trigger them both with one charge. One thing I liked to do was use repeaters aiming into a command block, which then also triggered the one below at the same time.
*EDIT* If you need space, your only option is to bury them downwards. (Charge the second one which is under the first and above the third "say" block)
*EDIT* If you need space, your only option is to bury them downwards. (Charge the second one which is under the first and above the third "say" block)
just have 2 with a repeater or something between
Not possible.
