Tinkers Construct

Tinkers Construct

160M Downloads

Call PlayerInteractEvent.RightClickBlock when using tools

Insane96 opened this issue ยท 2 comments

commented

Is your idea related to a problem? Please describe.
The mod Dirt to Path works only on the block right-clicked when using the excavator tools (since even a shovel can have the Expanded modifier).

Describe the solution you'd like
Call PlayerInteractEvent.RightClickBlock on the blocks in the whole area

Describe alternatives you've considered
None

Additional context
2021-04-12_17 36 25
2021-04-12_17 36 27
2021-04-12_17 36 29

Versions:

  • Minecraft: 1.16.5
  • Forge: 36.1.4
  • Mantle: 1.6.92
  • Tinkers Construct: 3.0.2.96

Confirm below that this enhancement is not covered on the roadmap or "Whats New?"
Confirm

commented

The mod Dirt to Path is doing things wrongly. They should be using the forge logic for shovel path blocks, not implementing it themselves in a right click block hook. Report this to them.

For reference, BlockState::getToolModifiedState and BlockToolInteractEvent

commented

I'm them ... gonna try and change it. Thanks