Pehkui

Pehkui

35M Downloads

[Bug]: "distance=.." doesn't work

dooble-22 opened this issue ยท 1 comments

commented

Minecraft version(s)

1.19.4

Minecraft version details

No response

Mod loader

Forge

Mod loader version

1.19.4-forge-45.0.40

Fabric API version

No response

In what kind of world or server did the problem occur?

My singleplayer world

What went wrong? (Crash logs don't go here)

when using a command like "execute as @e[distance=..7]" on an enlarged mob, the affected area wasn't expanded, so it only affects a small area of the mob, likely where it's original detection was.

Full list of installed mods and their version numbers

Pehkui
NoChatReports

Did the problem cause the game to crash?

No.

Full crash report contents (if you experienced a crash)

No response

commented

The distance selector only detects if the center of an entity is in range and does not take the hitbox size into account. For detecting an entity's hitbox, the dx=, dy=, dz= selectors may be more useful.