What the flying pink-laser slime is
The enemy you are describing is the Gastropod. It is a flying Hardmode enemy and a slime variant, and it spawns frequently on the surface of The Hallow at night. Those two conditions together — Hallow surface, nighttime — explain why the encounter feels tied to a specific place and hour rather than something that follows you everywhere. Because it is a slime variant, slime-specific measures apply to it; because it is a flying Hardmode enemy, it approaches from angles a grounded slime would not. The verified source describes its spawn location, the biome layer, the time window, and its Hardmode status; it does not establish exact spawn rates beyond "frequently" or give a drop table, so treat those as outside what this page can confirm.
How the Pink Laser attack works
The Gastropod does not fire continuously. When the player is within its line of sight, it opens its shell and fires high-velocity Pink Lasers that emit a faint pink light. Two constraints matter for your troubleshooting: line of sight and the shell. If the Gastropod cannot see you, the described attack trigger is not met. When it can see you, it commits to an open-shell firing posture before the shot. That faint pink glow is a useful visual cue — it tells you the enemy is in its firing state, not merely flying nearby. The source establishes the line-of-sight trigger and the high-velocity nature of the projectile; it does not specify a projectile speed value, a cooldown length, or a damage figure, so no numbers should be assumed from this page alone.
Interrupting the shell-open animation
The practical answer to "how do I stop it firing" is timing, not tanking. Gastropods have a short firing animation during which they open their shell, and if the Gastropod is hit during that period, the animation is canceled and the laser attack does not occur. So the sequence is: watch for the shell opening, land a hit inside that short window, and the shot never happens. This reframes the fight. Rather than dodging volleys that already exist, you are trying to preempt them by reacting to the tell. Because the window is described as short, the read has to happen early — the faint pink light from the firing state is the earliest signal the source describes. What the source does not establish is how wide that window is in frames or seconds, whether every weapon type can reliably reach it, or whether any other effect also cancels the animation. Those remain open questions, so don't treat this as a guarantee against every laser.
Royal Gel, and what it does and does not change
Yes — Royal Gel pacifies it. Like most other slimes, the Gastropod is passive toward any player equipped with the Royal Gel accessory. That is a genuine non-combat route: with Royal Gel equipped, the enemy stops being hostile rather than being killed or merely ignored. Two qualifications keep this honest. First, the source says "most other slimes," so Royal Gel is a strong slime-variant answer here without proving that every slime-type enemy behaves identically. Second, passivity removes the threat; it does not by itself imply anything about drops, banners, or other rewards from the Gastropod, which the supplied facts do not cover. If your goal is simply to stop the pink lasers, Royal Gel is the straightforward answer; if your goal is to fight Gastropods, the shell-interrupt is the technique the source supports.
Choosing between the two answers
The two supported solutions solve different problems. Royal Gel resolves the encounter by removing aggression — the Gastropod becomes passive, and no laser is fired at you because the attack condition of an attacking enemy no longer applies. Interrupting the firing animation resolves the encounter by defeating the enemy's attempt to shoot while keeping it hostile. If you are traveling through The Hallow at night and want the lasers gone, the accessory line is simpler. If you want to engage Gastropods, the timing line is the one with evidence behind it. Note the boundaries: the facts cover spawn conditions, the line-of-sight firing trigger, the cancel-on-hit behavior, and Royal Gel passivity. They do not cover loot, spawn-rate comparisons with other Hallow enemies, or interactions with other accessories.
Questions and Answers
Why does the flying slime only appear on the Hallow at night?
Because that is where and when the Gastropod spawns: it is a flying Hardmode enemy and a slime variant that spawns frequently on the surface of The Hallow at night. The night and the Hallow surface are both part of the spawn condition the source describes.
Can I cancel the Pink Laser by hitting the Gastropod?
Yes, if you hit it during the short firing animation in which it opens its shell. The animation is canceled by the hit, and the laser attack does not occur. Because the window is short, you need to react as soon as the shell begins to open or the firing-state glow appears.
Does Royal Gel stop Gastropods from attacking?
Yes. Like most other slimes, the Gastropod is passive toward any player equipped with the Royal Gel accessory, so it is a slime-type enemy that Royal Gel pacifies. The supplied evidence covers passivity only; it says nothing about drops or other effects.

