Skip to content

Inconsistent raycasting techniques. #807

Closed
@SpecialBuilder32

Description

@SpecialBuilder32

Different modules use inconsistent techniques for raycasting from the player to a block they just placed or interacted with.

It is possible to raycast without the need for a temporary entity (AEC or Marker), and this is likely preferable for performance (less selector resolution). Note Block Interface uses this technique currently, see that for reference. Note that raycasting for the sake of block placement will need some additional checks; see backup ray behavior in lib_brewing

This bug will track the conversion of the scattered raycasting methods to entityless versions.

  • Liquid Tanks ink sign interaction
  • Machine Blocks (CC creation - right click with crafting table) (fixed in 1.21.5)
  • Book Binders Placement (fixed in 1.21.5)
  • Trapped Signs placement and interaction (discontinued in 1.20.5)
  • lib_brewing Brewing Stand Placement (fixed in 1.21.5)
  • gm4_fruiting_trees Sapling Placement (fixed in 1.21.5)

any additional instances, please comment in this bugs thread and this main comment will be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    quality-updateImproves efficiency or structure without affecting functionality of a module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions