Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

Me and a friend of mine were making a parkour map and we thought it would be handy if there was a way to give the players a unlimited potion effect like jump boost or speed.

share|improve this question

6 Answers 6

up vote 15 down vote accepted

You can use command blocks, type in the chat window /give username 137 with commands enabled (if you're OP), and it will give you a command block. You need to be OP and in creative mode to use these. Place it and right click it, and you will see a text field where you can type

/effect @p <effect_id> 1000000 [amplifier].

This will give the closest player to the block 1000000 seconds of the effect when it's activated with redstone. Effect id's are listed on this page, the first column is the number you'll have to use as <effect_id>. The amplifier can be any number between 1 and 255. Normal potions will give either 1 or 2 as amplification. For example, to give the player speed 2, the command has to be

/effect @p 1 1000000 2.

or for jump boost 5, you'd get

/effect @p 8 1000000 5.

You should watch out that any amplifier value between 128 and 250 will disable jumping, and any value above 251 will decrease jump height.

If you activate the command block with a button, for example, you'll get almost infinitely speed 2.

A command block with time 0, like /effect @p <effect_id> 0 will disable the effect when powered.

There's more information about command blocks at the minecraft wiki.

1.8 snapshots Edit:

In the 1.8 snapshots, an extra parameter can be added to the command, which will hide particles when set to true. This will remove the curly particles around your head, whilst still giving the effect. eg. /effect @p 8 1000000 1 true.

Also, as Zoweb pointed out, command blocks are now obtained using the command /give <playername> command_block, instead of the id 137.

share|improve this answer
4  
For everybody curious: 1000000sec = 16666min = 277hours = 11,5days. Not exactly, but a really long time. –  Lars Aug 7 '13 at 15:34
    
@Ragnagord You have to do minecraft:command_block not just command_block –  DatEpicCoderGuyWhoPrograms May 8 at 12:27
    
You can also do /effect <target> clear –  DatEpicCoderGuyWhoPrograms May 8 at 12:28
    
@DatEpicCoderGuyWhoPrograms command_block works fine for me. –  Ragnagord May 12 at 21:54

I suggest using a Beacon. Beacons provide ONE of the following powers:

The five primary powers are:

Speed: Increased movement (similar to a potion of swiftness).

Haste: Increased mining speed.

Resistance: Increased armor rating.

Jump Boost: Increased jumping distance and height.

Strength: Increased melee damage (similar to a potion of strength).

Level 4 pyramids can also select a secondary power. This can either be Regeneration or a level II variation of the selected primary power. When selecting the level II variant, Regeneration is no longer provided by the Beacon.

share|improve this answer
    
/effect <target> <effect id> <duration> <amplifier> –  DatEpicCoderGuyWhoPrograms May 8 at 12:31
    
But still, good answer! –  DatEpicCoderGuyWhoPrograms May 8 at 12:31

To give yourself ∞ length of a potion, you could either use a command block (Minecraft Command Block) or you could just type it in chat (YOU MUST BE OP).
Both ways are very similar or exactly the same if you are using 14w11b or over.

In Command Block or While Using 14w11b Or Over

Type in /effect @p [your effect id - go tothis linkto get the id's] 9999 [strength - remember that 255 (the max) will usually cancel it out so maybe try 100. If you try the effect Jump Boost (8), and you make the strength be 250, this will cancel all jumping (which can actually be quite useful!)] Remember that to get a command block in 14w11b or over, you have to make sure to type in /give <playername> minecraft:command_block, not /give <playername> 137. Though in below versions you can use /give <playername> 137. Effect in Command Block

In Chat While Using Under 14w11b

Type in /effect <playername> [effect id] 9999 [strength] Effect in Chat

share|improve this answer
    
I think for infinite time it has to be over this magical number 372000 or 37200, not sure, but I am fairly sure that this is right. –  DatEpicCoderGuyWhoPrograms May 8 at 12:29
    
@DatEpicCoderGuyWhoPrograms Well when I tried it with 9999 and go into my Inventory, and I have given myself an effect, it says I have ∞ length of potion left. –  Zoweb May 11 at 4:57
    
Hmm, good to know! –  DatEpicCoderGuyWhoPrograms May 11 at 13:39

you have to either type in the chat /effect (player) (effect id) 1000000 or do the same in a command block (give (name) 137 64) but type effect @p (effect id) 1000000

share|improve this answer

You set a command block up, for example, for Speed II you would write

/effect <playername> 1 <any valid number>

and then you wire it up to a redstone clock, then it will constantly effect and re-effect .

share|improve this answer
2  
This doesn't really provide anything new. –  Timtech Oct 19 '13 at 11:33
    
You could just replace the time amount with something over 9999. This will give an infinite potion effect until the player dies. –  DatEpicCoderGuyWhoPrograms May 11 at 13:40
    
That way you wouldn't have to use a constant redstone clock, which, depending on how powerful someone's computer is, can lag their game. –  DatEpicCoderGuyWhoPrograms May 11 at 13:41

so the first thing you do is to make sure that your OP. Then, you press the slash button and it opens the command thing. Then you type in: /effect [playername] 1 4000 [amplifier] That gives you infinite speed!!!

share|improve this answer

protected by Community Oct 31 '13 at 8:06

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.