Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Interaction event is too late

Open
#216 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

In fabric, AttackEntityCallback, AttackBlockCallback, UseBlockCallback, UseItemCallback, UseEntityCallback are invoked before client sends packet to server and the client is able to cancel the packet.

In forge, these events are invoked after the packet is sent, so client side only mod isn't able to cancel the event entirely: server side code is still executed, only client side code can be skipped.

https://github.com/Sinytra/ForgifiedFabricAPI/blob/1.21.1/fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/impl/event/interaction/InteractionEventHooks.java

Dominant language
Java
Stars
181
Forks
41
Avg merge
19d 17h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Sinytra/ForgifiedFabricAPI

All issues in Sinytra/ForgifiedFabricAPI

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.