Mobs can see you and deal damage through blocks
Expected behavior
They can't deal damage
Observed/Actual behavior
They deal damage and can even draw line of sight.
Steps/models to reproduce
- Make Paper server
- Make a cage with 1x2x1 space inside it.
- Add a half block on top of the inside of the cage and trapdoor so spiders wont escape
- Spawn spiders
- Allow the spiders to see you
- Go into cover
- Despair
- Wait for a few seconds
- Spiders can't hit you no more
- Joy
Plugin and Datapack List
Plugins (0):
(We run Paper for the sake of performace improvements and bug fixes)
Paper version
This server is running Paper version git-Paper-155 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 99cf01f) You are running the latest version Previous version: git-Paper-154 (MC: 1.18.1)
So it really turns out that they both deal damage in vanilla and in paper if you let them see you first using slabs and trapdoors to keep them inside then go into cover but only for 3 seconds then they'll forget you and don't hit you. But they don't hit you if they didn't see you first.
So this is a Minecraft bug. But it will be nice if Paper fixes this. Please :)
do you have a mojira for this?
do you have a mojira for this?
https://bugs.mojang.com/browse/MC-2310
Should be fixed by vanilla in 1.20.2+