3

I'm developing a minigame server. I just need to know what commands to use, via command block, to give players special effects infinitely such as: speed boost, regeneration, or jump boost. I know it's possible, I've played on games that use these things, or is it a mod?

8

You need the command:

  • Speed boost: /effect @p 1 100 10
  • Jump boost: /effect @p 8 100 5

Source: Youtube

If you want to read more about command blocks and effects take a look here:

Command Block

Command Block Tutorials

Status Effects

  • But how do you give status effects indefinitely, infinitely, without time limit? – Prodias Mar 16 '14 at 20:11
  • @Prodias if you want to give a player an effect infinitely, just set the effect duration to a number over 372000. – DatEpicCoderGuyWhoPrograms May 3 '14 at 20:18
  • @DatEpicCoderGuyWhoPrograms The display in the inventory will show **:** if the duration could not be parsed as a signed Short (max of 32,767). It is not infinite and cannot be infinite on its own. A clock must be used to constantly re-apply the effect. – Skylinerw Jan 23 '16 at 22:03
  • As of 1.13, the syntax for effects has changed. The commands are now /effect give @p minecraft:speed 100 10 and /effect give @p minecraft:jump_boost 100 5 – pppery Aug 20 '18 at 21:52
2

You can do

/effect @a minecraft:jump_boost 2 10

This gives Jump boost two to all players for 10 seconds. The command is

/effect (player, @a or @p) minecraft:(potion, with _ between two words) (level of potion such as jump boost 2 or 3) (number of seconds, 255 max, more for unlimited)
-1

This is my way. I'm using regeneration

First type this command in: /effect @e regeneration 120 [hideparticles]

Then, put the command block on a clock system

I never tried it so if it doesn't work, just say it in the comments and I'll fix it.

-1

/effect @p {ID Number} {Number of seconds} 10 Switch the 10 out if you want.

-3

Without time limit you make the time in the command as shown above from 10 to 100000000. Not preciesly so many zeros but much.

-3

Speed Effect:

/effect @p 1 10 100

You can swap the 10 with any higher number. This specifically is how many seconds the effect lasts.

  • 1
    First off, this doesn't provide a complete answer to the question, but that's not the main focus. The part I'm focussing on is the fact this does not provide anything more that the other answers haven't already provided. And what "Notch's Twin Sister's Goldfish"? Is that a signature? – Ben Dec 1 '14 at 23:54
  • @Ben it reads like a Ask GGSP signature. either way it doesn't add anything to the question especially since time has been taken to format it (unlike answer where personal information is added as just plain text) – Memor-X Dec 1 '14 at 23:57
  • In that case I would suggest removing it then. It's not a practise on this site, and will most likely just attract the same reaction as I have given. – Ben Dec 2 '14 at 0:01
-3

I don't know if this is what your looking for, but here it goes:

For speed effect: /effect @p 1

If you want it for longer or faster, do it like this: /effect @p 1 255 10

Hope this helps!

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