Improved Mobs (Forge)

Improved Mobs (Forge)

8M Downloads

Mobs can hit the player while being in different dimension

Kopp35345 opened this issue ยท 3 comments

commented

Modloader

Forge

Minecraft version

1.20.1

Modloader version

47.3.0

Mod version

1.20.1-1.12.4

TenshiLib version

1.20.1-1.7.6

Description

It is possible to get hit and die from mobs that are in a different dimension than the player.
Mobs react to the player like both are in the same dimension while they are not.
Lets say mob is at "0 100 0" in the overworld and player is at "1 100 0" in the nether and the chunks containing the two coords are loaded:

  • if the player would be in the overworld as well, the mob could hit the player, because it is next to the player.
  • since player and mob are in different dimensions, it should not be possible to get hit by the mob.
  • Bug: It is possible
    I only tested it for mobs that are in the overworld while the player is in the nether.

Steps to reproduce

When loading the save file (see comment; created using the steps below "When creating a new world":
/tp 0 63 6
/gamemode survival
go through the portal into the nether
get hit by the mobs located in the overworld

When creating a new world:
-- some instructions may not be necessary --
Create a new superflat world, allow cheats, creative, hard
/time set night
/gamerule doDaylightCycle false
/improvedmobs difficulty set 50 (works better with high difficulty, as zombies need weapons)
/tp 0 63 0
/fill -5 62 -5 5 67 5 stone hollow
/setworldspawn 0 63 0
/summon minecraft:zombie 0 63 0
Best to spawn a couple of zombies
Optional: Use a name tag on the zombies, so you can be sure what is killing you.
Go into the nether at the same coords (0 63 0)
/fill -5 62 -5 5 67 5 stone hollow
go back into the overworld ("close" to the zombies, so they can track you. 16 blocks? 32 blocks?)
/gamemode survival (switching from creative to survival in the nether does not trigger the zombies to attack you)
Go back into the nether (to 0 63 0) and walk around in the cube for a bit
Get killed by the zombies in the overworld

Notes:
Can not reproduce in vanilla.
Works also with spiders/cave spiders, as long as they are not trapped (can leave the cubus).
Zombies seem to need a weapon, spiders not.
You can block the attacks of the zombie, but cant hit back.
Did not test for other dimensions.
I guess it is necessary that the zombies are in the spawn chunks of the overworld.
Did not test if it also works for every coords when the chunks in both dimensions are loaded.

Mods that might affect the issue

No response

Logs

https://paste.gg/p/anonymous/99fcc2fcc0f84b129bd994e30bf7e192

commented

does this happen with only this mod installed?

commented

Yes.

commented

Somehow it did not attach the save file, so here we go:
ImprovedMobsMod - QuantumHitBug.zip