2

This question already has an answer here:

I think there is a way to do an inside radius, and an outside radius, but how? I want to have a spawnpoint, where @a[r=30] is in gamemode a, and everyone outside is gamemode s. How would I write this?

marked as duplicate by dly, Schism, Wondercricket, Joachim, Virusbomb Jun 24 at 13:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

Use the rm (Radius minimum) argument. For example:

/gamemode @a[rm=30] s

In 1.13 the commands are:

gamemode @a[distance=..30] adventure
gamemode @a[distance=30..] survival
  • I knew it was something simple, but I guess it was so simple I couldn't find a YT video on it... :) – RoyalGaming369 Nov 25 '15 at 13:41
  • Remark: Tagging the players who go in and out and only setting their gamemode once improves performance and causes prevents output spam if commandBlockFeedback is on. – Fabian Röling Jan 5 at 11:13

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