Create Fabric

Create Fabric

10M Downloads

Extended reach is incorrect with Pehkui

ERBEpic opened this issue ยท 2 comments

commented

Describe the Bug

When having Pehkui installed, the extendo grip attack range only gets extended by one block. Without Pehkui, it is extended to 3.

Reproduction Steps

  1. Install Pehkui
  2. Install Create
  3. Attempt to use Extendo Grip past normal attack range

Expected Result

The extendo grip extends attack range as normal

Screenshots and Videos

image

left is extendo without Pehkui, middle is extendo with Pehkui, and right is normal fist.

Crash Report or Log

No response

Operating System

Windows 10

Mod Version

0.5.0g

Minecraft Version

1.19.2

Other Mods

No response

Additional Context

Virtuoel/Pehkui#346

I also have made an issue on Pehkui, as i was told to make an issue for both mods.

commented

Create uses Reach Entity Attributes to extend the player's reach. This library and Pehkui do not interact properly.

commented

Pehkui does have compat code for Reach Entity Attributes.
However, looking at the ExtendoGripItem, it seems it's using just the ReachEntityAttributes.REACH attribute, which only affects block reach. It should also make use of the ReachEntityAttributes.ATTACK_RANGE attribute. (similarly on the Forge version, it's only using ForgeMod.REACH_DISTANCE and not also ForgeMod.ATTACK_RANGE)