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

Started by Eg0rGame on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jun 2020
Points:
621

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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
Active 2 years ago
Joined Nov 2018
Points:
972

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 572
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.