TransWikia.com

Potion effects in certain radius?

Arqade Asked by Creeperhaten on July 2, 2021

I’m currently making a minecraft server for my friends and I to play on, I’m currently having difficultlies with potion effects. I need to effect all players in a 10 block radius. Not all on the game but only the ones in that radius.
I thought it was:

/effect @a[r=10] mining_fatiue 2 255

2 Answers

this is kinda ez question as you can use same command that we mostly use in the portals wich is /tp @p[r=3] and that will tp all the players withen 3 blocks of the commandblock so you cn basicily make it effect instead of tp and it will look like

/effect @p[r=15] minecraft:{any effect you want without the prakets}

Ex "/effect @p[r=15] minecraft:speed 3 60" that command will give all players withen 15 blocks away from te commandblock the effect speed level 3

and untill they leave the area the countdown from 60 will start so they will get the command allways as long as the player is inside the area then when he left it the countdown will start wich is the effect time

"note" set the commandblock to repeating so it willl be giving all the players withen the range the speed effect for 60sec and those 60sec will be regenerating

if you want it to make them lose the effect directly when they leave this area just set the time for 1

Answered by alzeinfouad on July 2, 2021

you spelt mining_fatigue like mining_fatiue

Answered by KingdomCum on July 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP