How to check if block is a full block.

Started by Ali107 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check if block is a full block.

There is "Is Block Solid?" procedure block, which checks if the block is solid or see-through. Is the a procedure that checks if a block is a full 1x1x1 block?

 

So I mean it returns true if it was grass, glass, cobblestone, bricks, logs, and etc.

Also It returns false if it was stairs, slabs, anvil, foliage, torches, signs, and etc.

 

Is there a procedure block for that?

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can add the blocks you…
Wed, 06/29/2022 - 11:45

You can add the blocks you wish to detect to a new BlockTag, and then just test if the block is tagged with that BlockTag.

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know that is possible, it…
Wed, 06/29/2022 - 13:08

I know that is possible, it would take ages to make this tag though.

 

Is there a procedure instead?

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why do you think it takes…
Wed, 06/29/2022 - 13:27

Why do you think it takes ages to make such a tag... Sure you can throw the whole kitchen sink of conditions using procedures to weed out exactly what you want but you really can't take the five minutes it takes to simply add the blocks to a single element to make your procedure run tenfold smoother? Once it's set up then its set up.

Create a new tag.

Use "mod" namespace.

Use "block" type

And then just take five minutes to add the blocks to your tag. Remember that you can use ctrl+click and shift+click to select multiple blocks at once! ;)