Crossroads-Development / Crossroads

Crossroads is a mod for Minecraft. It adds a lot of content, and has the design philosophy of "simple pieces, complex contraptions".
MIT License
29 stars 14 forks source link

Beam collision radius with entities dependent on step size #290

Open gamrguy opened 5 months ago

gamrguy commented 5 months ago

Describe the bug When beams check for collision with entities, the checked volume scales in all 3 dimensions with step size, causing inconsistent and undesirable behavior when attempting to use beams on item entities. A workaround to this is to set the step size to the maximum of 1, which allows the beam to check for entities in a full block.

To Reproduce [Optional] Steps to reproduce the behavior:

  1. Throw item entities into a horizontal Force beam with the default step size (in the middle of the beam, not the endpoint).
  2. Observe that item entities either land on the ground or get hit by one tick of the beam before resting.
  3. Change the step size to 1.0
  4. Observe that item entities are now reliably affected by the Force beam.

Expected behavior [Optional] Beam collision radius should not be dependent on step size.

Additional context [Optional] Crossroads 2.10.2