how to check the direction of view in the range of 2 numbers

Started by Eg0rGame on Sun, 06/14/2020 - 18:00

Topic category: Help with modding (Java Edition)

Last seen on 13:20, 4. Sep 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how to check the direction of view in the range of 2 numbers
Mon, 06/15/2020 - 11:09 (edited)

I tried to do pickaxe which can mine 5x5 area,
so, I can't make block in procedures for checking it
I need to check 6 dimensions (up,down,north,south,east,west), any direction has the shape of a cone

Thanks for any replies!

Image for example

Edited by Eg0rGame on Mon, 06/15/2020 - 11:09
Last seen on 13:20, 4. Sep 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If image doesn't work: https…
Sun, 06/14/2020 - 18:01

If image doesn't work:
https://prnt.sc/szlkac

Last seen on 20:11, 1. Aug 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can't you just use an if…
Mon, 07/20/2020 - 16:32

Can't you just use an if statement on the check for direction in relation to south? 

Make the chat print your direction every time you break a block so you will be able to set reasonable boundaries for the number range.