ModsJava
Raycast Execute Sub-Command
The syntax is the following: execute -> raycast -> execute Example: execute positioned ~ ~1.62 ~ raycast 1 run tp @s ~ ~ ~ This will effectively teleport…
⬇ Download on ModrinthThe syntax is the following:
execute -> raycast -> execute
Example:
execute positioned ~ ~1.62 ~ raycast 1 run tp @s ~ ~ ~
This will effectively teleport the player to the block it was looking at even with odd shapes or through liquids.
It replaces the need to do raycasting by commands which could cost performance.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.4
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as raycast-1.21.4-0.0.1.jar — drop this file into the mods folder
- Download size: 6 KB
- Download link checked 21 Aug 2026 — working
These come from our own check of the pack file, not from the source page.