5

So I've just set up a good old "Lucky coin - Lihzard farm".

I dug out a gigantic room according to the maximum spawn range (168x94 tiles) sat myself in the middle and everything was running pretty fine.

I also set up spear traps for the flying snakes as usual, but the thing is I'm playing on expert mode and those winged bastards take forever to die, leaving my farm with only about half the efficiency it could have.

So i've been thinking:

If i was to checker the whole room with blocks so that only lihzards can spawn, i wouldn't have any flying snakes.

Lihzards (on spawn) are player size, meaning 3 high and 2 wide, snakes look like 4 high 3 wide or something.

Can someone confirm that, if there was no place in the whole room with 4x3 free space, no flying snakes would spawn?

Or doesn't it work like that?

1
  • Regarding the extra question that was edited out of your post recently, you could/should ask it as a seperate question. You can find the old version of your post here, if you want to just copy the question text: gaming.stackexchange.com/posts/228929/revisions
    – DJ Pirtu
    Jul 22, 2015 at 9:30

1 Answer 1

3

Flying Snakes will only spawn if there is enough space available (4x3, I believe, like you say) for them.
So in a room with no space that is at least 4 tiles high, no Flying Snakes will spawn, only enemies which can fit can spawn. To demonstrate this, I made a 168x94 area entirely filled in with blocks except for a 3 tile high tunnel through the middle. 169x94 area Standing in the exact centre, the only space available for enemies to spawn in is the tunnel, as enemies cannot be spawned in blocks (explained below). Since the tunnel is only 3 tiles high, Flying Snakes cannot spawn, but others such as Lihzahrds can. I left the game running for a full in game day and no Flying Snakes appeared.

The wiki page on NPC spawning explains the results (bold emphasis mine):

When the game decides to spawn a monster, it will first choose a random tile within a rectangle around the player. The maximum distance from the player it can choose from is 84 tiles to the left or right, and 47 tiles up or down. If the picked tile is a solid block, it will try another one. If the picked tile has a wall that blocks monsters from spawning, it will also try another tile.

Once an empty tile is found, it moves down until it finds the ground. (Note that this tile CAN be more than 47 tiles vertically from the player. If it finally is outside the "Active Rectangle" it will be instantly despawned, anyway.) If there is enough space for a monster to be spawned at this location, this will be the tile it chooses. The exception to this is when the player is in an area where Harpies can be spawned. In this case, the game does not attempt to find a ground tile.

As we can see, the game will only spawn enemies at locations that have enough empty space to fit the enemy.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .