There is a Legacy version
here.
Strange Geometry
Spell 5Concentrate Illusion Manipulate Source Player Core 2 pg. 252Traditions occultDeities Suyuddha,
The Enlightened Scholar's PathCast [three-actions] Range 60 feet;
Area 4 cubes, each 10 feet on a side
Saving Throw Will;
Defense Will;
Duration 1 minute
You cause the areas to appear to swell, bend, and break, twisting together in a bizarre spatial geometry. The cubes of the spell's area can't be adjacent to one another. A creature must attempt a Will save if it's in one of the cubes when you Cast the Spell, or if it later enters one of the areas, with the following effects. A creature interacting with the illusion can also attempt a Will save to disbelieve the illusion, as normal.
Success The creature disbelieves the illusion.
Failure All terrain in the cubes is
difficult terrain for the creature, including the air if the creature is flying, walls if it's climbing, and so on. When the creature would exit one of the cubes, it exits from one randomly determined by the GM. This is a
teleportation effect. It can exit from any edge of that cube it chooses. When selecting a random cube, the GM excludes any that don't match the creature's terrain; for instance, if the creature were exiting along the ground, the GM would exclude any cube that didn't have an exit on the ground.