How to detect when a player collides with a block when sprinting?

Started by z.hendricks on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect when a player collides with a block when sprinting?

As mentioned in the title, I want to be able to detect when a player sprints into an opaque block, colliding with it, particularly when there is both a block in front of the player's head and a block in front of the player's feet, as the first part of a procedure that runs every player tick. I'm a beginner and have mostly found my way around MCreator via common sense and basic programming knowledge, but I'm unsure of how to implement it.

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is for a recreation of…
Sat, 04/04/2026 - 20:30

This is for a recreation of the Backrooms in Minecraft and I want to implement a noclipping feature, for further context.