Jump to content
  • 0

Command Block in einem Radius Effekt geben


Zenan™

Frage

2 Antworten auf diese Frage

Empfohlene Beiträge

  • 0

Ich kopiere es einfach mal aus dem englischen Forum :

You can use command blocks to do this :] If you make some command blocks at the hub that have this command /effect @p [potion effect, for speed put 1 here] [effect duration, to make it last forever in the hub type 9999999] [how much of an effect]

example /effect @p 1 99999999 0 this would give the player who activates the block speed boost 1 for such a long time that it is pretty much forever. Then once they leave the hub have it so they activate another command block that clears the command like this /effect @p clear. You can make this even more specific using more specific commands example /effect @a[x=#,y=#,z=#,r=10] 1 9999999 1 This would give everyone within a 10 block radius of the coordinates you but for the x, y, and z a speed boost 2 effect. you could then put this on a redstone hopper clock so it constantly updates making it so anyone stepping in that area would be given the boost. Then you make sure as soon as they leave it will get rid of the effect with a command like /effect @a[x=#,y=#,z=#,r=4] clear that way if you had it set up like this on a clock there would be no way for them to keep that effect when they leave (except if they are able to teleport out. If you don't want to do this you could just put a bunch of beacons in your hub.

Link zu diesem Kommentar
Auf anderen Seiten teilen

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...
B
B