How to check if block is a full block.

Started by Ali107 on

Topic category: Help with modding (Java Edition)

Last seen on 17:14, 28. Mar 2024
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?

Last seen on 00:46, 5. Jun 2023
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.

Last seen on 17:14, 28. Mar 2024
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?

Last seen on 00:46, 5. Jun 2023
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! ;)

Last seen on 17:14, 28. Mar 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
okay thanks.
Wed, 06/29/2022 - 17:23

okay thanks.