Check for multiple blocks in procedure?

Started by Baboobraz on Thu, 02/25/2021 - 19:32

Topic category: Help with modding (Java Edition)

Last seen on 23:35, 27. Feb 2021
Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Check for multiple blocks in procedure?
Thu, 02/25/2021 - 19:32 (edited)

I need to check if the block is grass OR dirt, but I only know how to check if it is one of them. How can I do this? https://imgur.com/gallery/WQmpEqA

Edited by Baboobraz on Thu, 02/25/2021 - 19:32
Last seen on 16:34, 31. Mar 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can use the "AND"…
Fri, 02/26/2021 - 01:15

You can use the "AND" comparison found in Logic. This is a inefficient way of doing this, but if you're only using 2 types of blocks, it is probably the best. https://www.dropbox.com/s/rxvnh0bzhtafqjr/Screen%20Shot%202021-02-25%20at%208.12.31%20PM.png?dl=0 (if the link even works)