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

Started by Eg0rGame on

Topic category: Help with modding (Java Edition)

Last seen on 20:48, 7. Mar 2024
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.