Theory:
As far as my exploration in the code of Terraria, the processes that affect invulnerability of the player can be ordered in the following order: (I only listed the terms that caught my interest, and if you want to know the invulnerability source that I omitted, tell me and I may refer to it in source code)
Falling Damage > Mount Damage and Dash damage (Although it is mobs that are attacked, it grants the player immunity) > melee damage > lava damage > smashing-a-pre-hardmode-demon-altar damage > projectile damage
Note:
1. If the hurting tiles haven't been deprived of general immunity, they should be after melee damage.
2. melee damage and projectile damage are calculated in the order of index. An NPC with a smaller index has higher priority. That's why normal invulnerability machine requires you to avoid friendly NPC death and eliminate natural spawn before spawning the critical slime.
About the Falling damage, I didn't try it, but it might work if you repeatedly teleport yourself to a higher place and hoik you downwards so that you take a 1 fall damage consistently with a interval of no more than 20 frames without a Cross Necklace, and 40 if you have. The falling damage override all the immunity, and actually, it just ignores the immunity and set it to false before you take fall damage. So you have flexible intervals between each 'fall'. I didn't try it, anyway, so give me example!
Actually what interested me is the second term. I just say it explicitly: If I dash through a line of Target Dummies riding a Unicorn, I will have a line of invulnerability. I think it is very easy for the devs to fix it, though. (Am I too naughty?)
But things get interesting once it starts. Even if Dummies can not grant immunity any more, well, there should be something that have ability to grant immunity, unless the devs remove the immunity line completely in all the section of codes.
So invulnerability machine is not just a honey-soaked slime statue with precise control of mobs in the world, or a blanket of spikes to walk upon. You can think of more types of invulnerability machine to make yourself immortal before the devs manage to ban it!
As far as my exploration in the code of Terraria, the processes that affect invulnerability of the player can be ordered in the following order: (I only listed the terms that caught my interest, and if you want to know the invulnerability source that I omitted, tell me and I may refer to it in source code)
Falling Damage > Mount Damage and Dash damage (Although it is mobs that are attacked, it grants the player immunity) > melee damage > lava damage > smashing-a-pre-hardmode-demon-altar damage > projectile damage
Note:
1. If the hurting tiles haven't been deprived of general immunity, they should be after melee damage.
2. melee damage and projectile damage are calculated in the order of index. An NPC with a smaller index has higher priority. That's why normal invulnerability machine requires you to avoid friendly NPC death and eliminate natural spawn before spawning the critical slime.
About the Falling damage, I didn't try it, but it might work if you repeatedly teleport yourself to a higher place and hoik you downwards so that you take a 1 fall damage consistently with a interval of no more than 20 frames without a Cross Necklace, and 40 if you have. The falling damage override all the immunity, and actually, it just ignores the immunity and set it to false before you take fall damage. So you have flexible intervals between each 'fall'. I didn't try it, anyway, so give me example!
Actually what interested me is the second term. I just say it explicitly: If I dash through a line of Target Dummies riding a Unicorn, I will have a line of invulnerability. I think it is very easy for the devs to fix it, though. (Am I too naughty?)
But things get interesting once it starts. Even if Dummies can not grant immunity any more, well, there should be something that have ability to grant immunity, unless the devs remove the immunity line completely in all the section of codes.
So invulnerability machine is not just a honey-soaked slime statue with precise control of mobs in the world, or a blanket of spikes to walk upon. You can think of more types of invulnerability machine to make yourself immortal before the devs manage to ban it!