I've been trying to make a mob summon when a player is close enough to a command block using something such as
/summon minecraft:elder_guardian 12 40 12 @a[distance=100]
But it's just not working! I don't know why, since a command like gamemode survival @a[distance=150..151] would work. Please, could anyone help me?
Followed by comparator output to another command block:
/summon elder_guardian 12 40 12
This would summon an elder guardian when a player is within 100 blocks (in a circle) of the command block and would only summon it once - until all players have left that radius. Useful for zone encounters but abused by players killing the enemy, leaving the area, then immediately entering. For a better system, you would want a timer during which no other elder guardians can respawn.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've been trying to make a mob summon when a player is close enough to a command block using something such as
/summon minecraft:elder_guardian 12 40 12 @a[distance=100]
But it's just not working! I don't know why, since a command like gamemode survival @a[distance=150..151] would work. Please, could anyone help me?
If that didn't work, try this:
Repeat, unconditional, always on
/testfor @a[r=100]
Followed by comparator output to another command block:
/summon elder_guardian 12 40 12
This would summon an elder guardian when a player is within 100 blocks (in a circle) of the command block and would only summon it once - until all players have left that radius. Useful for zone encounters but abused by players killing the enemy, leaving the area, then immediately entering. For a better system, you would want a timer during which no other elder guardians can respawn.