How to do a procedure IF you are looking at nothing

Started by Putseem on Sun, 09/13/2020 - 02:48

Topic category: Help with modding (Java Edition)

Last seen on 20:03, 16. Sep 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to do a procedure IF you are looking at nothing
Sun, 09/13/2020 - 02:48

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?

Last seen on 03:20, 26. Oct 2020
Joined Nov 2019
User points:

User statistics:

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

use the entity raytrace x, y, z code blocks

Last seen on 13:33, 26. Oct 2020
Joined Nov 2018
User points:

User statistics:

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

If block at raytraced position = air, do procedure.