Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobs can hit the player while being in different dimension #268

Open
Kopp35345 opened this issue Jun 9, 2024 · 3 comments
Open

Mobs can hit the player while being in different dimension #268

Kopp35345 opened this issue Jun 9, 2024 · 3 comments

Comments

@Kopp35345
Copy link

Kopp35345 commented Jun 9, 2024

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

@Kopp35345 Kopp35345 changed the title Mobs can hit the player while being in different dimensions Mobs can hit the player while being in different dimension Jun 9, 2024
@Kopp35345
Copy link
Author

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

@Flemmli97
Copy link
Owner

does this happen with only this mod installed?

@Kopp35345
Copy link
Author

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants