How to do a procedure IF you are looking at nothing

Started by Putseem on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Sep 2020
Points:
612

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How to do a procedure IF you are looking at nothing

Hello! I looked around for a while but I couldn't find an answer. I am trying to make it so that the code will activate the rest of the procedure if the player is only looking at the air and has no block in front of them selected (there is no black outline selected around a block). What would I put in the "if" section of my procedure?

Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 384
use the entity raytrace x, y…
Sun, 09/13/2020 - 13:46

use the entity raytrace x, y, z code blocks

Active 3 years ago
Joined Nov 2018
Points:
978

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 571
If block at raytraced…
Sun, 09/13/2020 - 15:51

If block at raytraced position = air, do procedure.

Active 1 year ago
Joined Jun 2023
Points:
298

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
Here is a tutorial I made:…
Fri, 07/07/2023 - 19:12

Here is a tutorial I made: link