Check for multiple blocks in procedure?

Started by Baboobraz on

Topic category: Help with modding (Java Edition)

Last seen on 23:06, 1. Dec 2023
Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 14:18, 17. Jun 2023
Joined Oct 2020
Points:

User statistics:

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