Started by
SpyCoder77
on
Topic category: User side tutorials
Here is a tutorial on how to detect what block a player is looking at.
Create Tag:
- Name: Air
- Namespace: forge
- Tag Type: Blocks
- Elements Under This Tag: Air, Void Air, Cave Air
Step 1. Variables:
Create Variables:
- LookX
- LookY
- LookZ
- RayDistance
All of the type "number" and player persistant
Step 2. Code Procedure:
Workspace Download
Edited by SpyCoder77 on Fri, 07/07/2023 - 19:30
I'm sorry my man, but what if I want the block to send a redstone signal when looked at by the player?
Loved the tutorial, helped me understand these procedure blocks. Do you think it would be possible to target an entity instead of a block??? Thanks for the tutorial 😊