Creators-of-Create / Create

[Forge Mod] Building Tools and Aesthetic Technology
MIT License
2.9k stars 907 forks source link

Diagonal chutes have bugged hitbox #5025

Open unofficial-fish opened 1 year ago

unofficial-fish commented 1 year ago

Describe the Bug

Diagonal chutes have this diamond-shaped hitbox when you hover over them: 2023-06-27_15 39 48 However, only the top half of this two-block-occupying hitbox actually is solid. The bottom half can have blocks placed in it and entities can pass through. This applies to blocks in the middle of the diagonal line, but also to the ones at the end ("shape: intersection") 2023-06-27_15 40 06

Reproduction Steps

Place diagonal line of chutes, and fly around under them pressing your head against them.

Expected Result

Bottom half of chute to be solid and match up with outline

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 10

Mod Version

0.5.1b

Minecraft Version

1.19.2

Forge Version

43.2.5

Other Mods

No response

Additional Context

No response

drwoops commented 1 year ago

The hitbox is for player interaction. There is a separate collision mask for determining collisions with entities. for exemple, an open fence gate has no collision mask but has a hitbox (otherwise you could not close or break it)

Lgmrszd commented 1 year ago

The bottom half can have blocks placed in it because, as you noted, there is no actual block in here. The only proper way to make that work would be making diagonal chutes consist of two blocks, turning it into a multiblock (like Door or Bed, or Big Waterwheels). While definitely possible (Belts are multiblocks that handle items as well), I think that would take more effort for what is essentially a cosmetic feature. Personally, I like it the current way, because it allows placing chutes "inside" a slope of blocks (though that sometimes comes with a visual bug...): image image