Raycast Execute Sub-Command

Quick rating

Community listing page, reviews here may not be monitored by the author.

Raycast Execute Sub-Command

By ElitoSearOwner

No reviews yet

A mod that adds an execute sub-command that updates the position into the next collidable voxel shape.

Mod Loaders
Minecraft

About

Description

The 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.