Intricacies of the 'is block at xyz solid' procedure

Started by SnailsAttack on

Topic category: User side tutorials

Last seen on 12:54, 22. Jul 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Intricacies of the 'is block at xyz solid' procedure
Sun, 02/18/2024 - 19:23 (edited)

The 'is block at xyz solid' procedure is somewhat misleading. I've found that it does not indicate whether entities can collide with the block, or whether the block has a full 16x16x16 bounding box.

What the procedure actually indicates is whether or not the block supports rendering of transparent cutout textures that do not occlude the objects behind them. It is not readily obvious which blocks this applies to, so I made a list of the more unexpected 'solid' and non-'solid' blocks:

Returns true for the 'is block at xyz solid' procedure (block does not support cutout textures)

  • Chests
  • Fences, fence gates and walls
  • Cacti
  • Cakes
  • Enchantment tables
  • Carpets
  • Player/mob heads*

*Apparently an exception to the 'does not support cutout textures' rule through some technicality

Returns false for the 'is block at xyz solid' procedure  (block does support cutout textures)

  • Glass (normal, stained or tinted)
  • Ladders, doors, trapdoors
  • Leaves
  • Iron bars
  • Beds
  • Slime blocks, honey blocks
  • Cauldrons
  • Hoppers
  • Lanterns
  • Pointed dripstone
  • Lightning rods
Edited by SnailsAttack on Sun, 02/18/2024 - 19:23