Procedures with coordinate value range

Started by clothymonster on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedures with coordinate value range
Sun, 03/01/2020 - 21:05 (edited)

Just started.

I am trying to make a procedure that I can attach to an item that will take effect if there is a certain block type above the player holding the item. But I want to 'get' the block type for any of the blocks above the player, or at least for a range, like 1-10. I am doing this by using an if/do argument for each individual y value ranging from 1 to 10. Is there a way to do it all in one argument by getting 'get block at xyz' to say something like, 'get block at x (y+(1 through 10)) z' ?? I'm assuming I will also have to tell it to check if any rather than all of the blocks are that type. 

 

Thanks in advance. New to all this. 

Edited by clothymonster on Sun, 03/01/2020 - 21:05
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess what I'm looking for…
Sun, 03/01/2020 - 23:24

I guess what I'm looking for is an 'or' and/or an 'and'.... Can't seem to find them.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But even so, the ability to…
Sun, 03/01/2020 - 23:33

But even so, the ability to put a value range in there would be awesome