Room

Added in v2.0.0.

Description

Targets entities or players inside a room of the caster's procedural dungeon. Without arguments it selects every entity in the caster's current room. The optional filters let you restrict by side (players or entities), by Bukkit entity type, by proximity to the origin, and to a random or nearest subset.

Procedural only.

Use tg, not target. target is a reserved Mythic selector key. Writing @room{target=entities} makes Mythic disable its own player, animal, creature, monster, and villager filters and the targeter returns nothing. @room{tg=entities} and @room{tg=players} are safe.

Attributes

Attribute Aliases Description Default
room roomid, id, r Room template name, case insensitive. The first placed room using that template wins. When empty, the room at the skill origin is used. (empty)
tg target entities (all matching) or players/player to select players only. Prefer the tg alias, see the note above. entities
type t Optional Bukkit EntityType name to restrict to. An unknown value is silently ignored. (empty)
select mode, s all keeps every match and ignores amount; nearest keeps the amount closest to the origin; random keeps amount at random. all
amount a How many to keep when select is nearest or random. Minimum 1. 1
near When true, only entities within radius of the origin are kept. false
radius rad Radius in blocks for the near filter. 8

Examples

PurgeRoom:
  Skills:
  - ignite{ticks=100} @room{tg=entities;type=ZOMBIE;select=random;amount=3}

Ignites up to three random zombies in the caster's current room.

Aliases

  • @entitiesinroom
  • @inroom

Notes

  • The origin is the skill's origin location, falling back to the caster's own location. It decides both the "current room" and what near and select=nearest measure from.
  • The room box is expanded by one block on its max X, Y, and Z faces before the containment test, so entities against the far wall still count as inside.
  • Mythic's own selector filters run afterwards. By default the caster, armor stands, markers, Citizens NPCs, and spectator-mode players are removed from the result. See Targeters.
Updated Aug 19, 2026