i would do it with block with effects though, or i would just right click a jump potion or something cuz thats easier.
Thanks for replying but I sort of want to avoid doing that, I really want to be able to be on the go with the jump thing without having to be in a specific place or using up inventory space
you could even run a /testfor @e[type=Player,r=15] command for players
and have it run to another command block that /executes @e[type=Player] and summons a jump potion 1 block above the players head. ~ ~1 ~
Once again this interferes with how I wish to use the jump boost as I wish to be anywhere in the world but the jump boost isn't active, this is why I need to trigger this after holding shift for 3 seconds (as the player is preparing to jump).
Well I don't know the exact arguments but I do know how to do it:
First, make a scoreboard titled whatever tf you wanna name it. Should be a dummy objective.
Make a command block clock. Tutorials are all over the place.
Attach a command block that says to add all players to the scoreboard.
Now, attach a command block to the same clock that detects if anyone is sneaking.
Next, using a comparator, put down another command block (away from the clock) that says to make any player's score (who is sneaking) 0.
Put another command block on the clock that says to add to anyone who is sneaking's score by one every time it's activated.
Now, put a clock down that detects if any player has a score above 5000 or so, you can change the number. If they do have above that score, using a comparator put another command block down that says to give anyone with a score of above 5000 jump boost for a second. This way I think it will only work if you hold shift for three seconds but don't trust me yet because I haven't tested it.
[p]So far so good (thanks for the help btw) I got it partly working but I am stumped at one thing (I hope). I need to make it cancel/reset the score if the player stops sneaking, anyone got any clues?[/p]
[p]This is the (small) amount of stuff that I got (1.9)[/p]
So far so good (thanks for the help btw) I got it partly working but I am stumped at one thing (I hope). I need to make it cancel/reset the score if the player stops sneaking, anyone got any clues?
This is the (small) amount of stuff that I got (1.9)
The tutorial shows you how to reset the sneak score.
/scoreboard players set @p Sneak 0
I saw that part its just that I dont know how to make it reset when the play stops sneaking before 3 seconds, im going to play around with it and hopefully might figure it out (fingers crossed)
Okay so, I think I understand what you are trying to do. You want to give the player jump boost if they sneak for a certain amount of time. And you want this to be reset when they stop sneaking so that they can do it again yes? Well, a lot of it has already been suggested but I will put it here into one cohesive tutorial.
Now that is out of the way. Now, you have to set up the command blocks that test for they sneak time and give the effect. First, a repeating command block with this command:
/scoreboard players test @a SneakJump 60 600
Then a comparator facing into an impulse command block with this command:
This objective will keep track of how many centimeters you have walked but not how many you have sneaked thus, this gives us a way to tell if the player is walking or sneaking. So, now set up a new circuit of command blocks starting with a repeating command block. Put this command in it:
/scoreboard players set @a[score_SneakReset=15,score_SneakReset_min=1] SneakJump 0
Now, any player that has walked even a little bit, will have their sneaking score reset. Next step, is to make sure that SneakReset gets reset when the player starts to sneak. The easiest way to do this is to place a chain command block coming out of the last repeating command block we placed. Put this command in it:
/scoreboard players set @a SneakReset 0
now, it will reset the sneak reset objective in the perfect timing to keep everything working. I will mention that this has not been tested fully, but I think it will work. If it doesnt. let me know what is happening and I will do my best to figure it out. Laters!
Okay um, the chain command block should be set to "always active". (just noticed that). are you sure it isn't working? It gives you the jump boost for two seconds and then if you sneak again it doesn't give you the effect?
Okay um, the chain command block should be set to "always active". (just noticed that). are you sure it isn't working? It gives you the jump boost for two seconds and then if you sneak again it doesn't give you the effect?
Sorry, my computer basically flipped out but now its fixed, that always active fixed it, thank you so much
I was wondering how to make a command block thingy that if a specific player is sneaking for 3 seconds straight they get a temporary jump boost.
I got no clue what do to at all, please help me.
i would do it with block with effects though, or i would just right click a jump potion or something cuz thats easier.
Thanks for replying but I sort of want to avoid doing that, I really want to be able to be on the go with the jump thing without having to be in a specific place or using up inventory space
you could even run a /testfor @e[type=Player,r=15] command for players
and have it run to another command block that /executes @e[type=Player] and summons a jump potion 1 block above the players head. ~ ~1 ~
Once again this interferes with how I wish to use the jump boost as I wish to be anywhere in the world but the jump boost isn't active, this is why I need to trigger this after holding shift for 3 seconds (as the player is preparing to jump).
Well I don't know the exact arguments but I do know how to do it:
First, make a scoreboard titled whatever tf you wanna name it. Should be a dummy objective.
Make a command block clock. Tutorials are all over the place.
Attach a command block that says to add all players to the scoreboard.
Now, attach a command block to the same clock that detects if anyone is sneaking.
Next, using a comparator, put down another command block (away from the clock) that says to make any player's score (who is sneaking) 0.
Put another command block on the clock that says to add to anyone who is sneaking's score by one every time it's activated.
Now, put a clock down that detects if any player has a score above 5000 or so, you can change the number. If they do have above that score, using a comparator put another command block down that says to give anyone with a score of above 5000 jump boost for a second. This way I think it will only work if you hold shift for three seconds but don't trust me yet because I haven't tested it.
--Northie
Here's a tutorial for something similar.
My Youtube Channel https://www.youtube.com/user/bongotezz
[p]This is the (small) amount of stuff that I got (1.9)[/p]
[1][2][3][4] (Block Layout)
[1] Repeat Command Block (Unconditional, Always Active)(scoreboard players test CheeseyCreepy SneakJump 60 600)
[2] Comparator
[3] Impulse Command Block (Unconditional, Needs Redstone)(scoreboard players set CheeseyCreepy SneakJump 0)
[4] Impulse Command Block (Unconditional, Need Redstone)(effect CheeseyCreepy 8 2 25)
[p]Edit: I don't know how those [/p] things got there[/p]
The tutorial shows you how to reset the sneak score.
/scoreboard players set @p Sneak 0
My Youtube Channel https://www.youtube.com/user/bongotezz
Hey! You are not an idiot.
You are a human!
I saw that part its just that I dont know how to make it reset when the play stops sneaking before 3 seconds, im going to play around with it and hopefully might figure it out (fingers crossed)
Thank you
Okay so, I think I understand what you are trying to do. You want to give the player jump boost if they sneak for a certain amount of time. And you want this to be reset when they stop sneaking so that they can do it again yes? Well, a lot of it has already been suggested but I will put it here into one cohesive tutorial.
First, create the scoreboard:
Now that is out of the way. Now, you have to set up the command blocks that test for they sneak time and give the effect. First, a repeating command block with this command:
Then a comparator facing into an impulse command block with this command:
Now, you want it to reset the score only IF the player stops crouching correct? Well, to accomplish this you will need to create another scoreboard:
This objective will keep track of how many centimeters you have walked but not how many you have sneaked thus, this gives us a way to tell if the player is walking or sneaking. So, now set up a new circuit of command blocks starting with a repeating command block. Put this command in it:
Now, any player that has walked even a little bit, will have their sneaking score reset. Next step, is to make sure that SneakReset gets reset when the player starts to sneak. The easiest way to do this is to place a chain command block coming out of the last repeating command block we placed. Put this command in it:
now, it will reset the sneak reset objective in the perfect timing to keep everything working. I will mention that this has not been tested fully, but I think it will work. If it doesnt. let me know what is happening and I will do my best to figure it out. Laters!
Command blocks are fun
"Not all who wander are lost"
I can't seem to get it to reset (I probably messed up). I think I might have placed it wrong? http://prntscr.com/9u2y4i
Hmm i have no idea
NEW FORUMS USER NAME: Dippid
That is what it should look like...can you send me your command block outputs?
Command blocks are fun
"Not all who wander are lost"
The first repeat command block is
The impulse command block is
The other 2 don't have an output box but it is enabled.
Okay um, the chain command block should be set to "always active". (just noticed that). are you sure it isn't working? It gives you the jump boost for two seconds and then if you sneak again it doesn't give you the effect?
Command blocks are fun
"Not all who wander are lost"
Sorry, my computer basically flipped out but now its fixed, that always active fixed it, thank you so much
Glad to help:D
Command blocks are fun
"Not all who wander are lost"