Minecraft – Can mobs see me through lava

minecraft-java-edition

I'm making a rail track go into the lava in the Nether, and I thought it'd be pretty cool if I used glass when building around lava, and non-transparent blocks when building in the air.

But can a Ghast see me through lava and shoot a fireball? I really don't want my track getting messed up. I'm pretty sure mobs can see through glass (it's glass, after all), but I can't see through lava, so I figure they can't.

Best Answer

I have tested this and assumed that they do see you and target you through lava.

Plan

My chosen mob was the skeleton and it successfully shot me through the lava. The arrows caught fire and hit me. I have two solutions:

Method One

Paste this command into chat:

/scoreboard teams add train

And then paste this command into chat:

/give @p minecraft:repeating_command_block

Place the block and paste the following command inside (by right clicking it):

/scoreboard teams join train @e

Set the command block as always active. The command block should then look like this:

Heya

Method Two

Exchange the glass for barriers. Barriers are invincible. To get them paste the following command in chat:

/give @p minecraft:barrier