Started by
swelkinn_n
on
Topic category: Help with Minecraft modding (Java Edition)
Is it possible to make a block that can be walked through on all sides except the top, but can be stood on like scaffolding?
climbing is not a requirement if this changes things significantly
^^^^^this
You can make block A have no collisions, and block B have collisions. block A will be the one you are placing in the world, and block B will replace block A when the trigger "When entity walks on block" occurs for block A. Just from a quick scouring of the available procedures, you would prrobably have to use set block B to be a tile entity and use the Tick Update trigger to detect if there are no entities on top of it, in order to swap back to block A.
Hey Octave, thanks for the reply, it was very useful. Could you explain more how could the block detect if the player is above it?
For block A you can use "entity walks on block" trigger to detect if the player is above it. For block B you will have to use on update tick trigger > create a local logic variable, and use entity iterator @ block x,y+1,z, size 1. If entity iterator = subtype(player) set local variable to true. After the iterator block, check if the variable is true and if so, replace block @x,y,z with block A.
...But this wouldn't work for multiplayer as the block would become solid for everyone when one person stood ontop of it. :(