While you cast this spell, you use the cord or rope to create a circle with a 5-foot radius on a flat surface within your reach. When you finish casting, the cord or rope disappears to become a magical trap.
The trap is nearly invisible and requires a successful Intelligence (Investigation) check against your spell save DC to be found.
The trap triggers when a Small creature or larger moves into the area protected by the spell. The triggering creature must succeed on a Dexterity saving throw or fall prone and be hoisted into the air until it hangs upside down 3 feet above the protected surface, where it is restrained.
The restrained creature can make a Dexterity saving throw with disadvantage at the end of each of its turns and ends the restrained effect on a success. Alternatively, another creature that can reach the restrained creature can use an action to make an Intelligence (Arcana) check against your spell save DC. On a success, the restrained effect also ends.
You choose nonmagical flame that you can see within range and that fits within a 5-foot cube. You affect it in one of the following ways:
You instantaneously expand the flame 5 feet in one direction, provided that wood or other fuel is present in the new location.
You instantaneously extinguish the flames within the cube.
You double or halve the area of bright light and dim light cast by the flame, change its color, or both. The change lasts for 1 hour.
You cause simple shapes—such as the vague form of a creature, an inanimate object, or a location—to appear within the flames and animate as you like. The shapes last for 1 hour.
If you cast this spell multiple times, you can have up to three of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.