semisolid block?

Started by swelkinn_n on Sat, 02/19/2022 - 00:11

Topic category: Help with modding (Java Edition)

Last seen on 19:31, 4. Aug 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
semisolid block?
Sat, 02/19/2022 - 00:11

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

Last seen on 22:07, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
^^^^^this
Thu, 06/23/2022 - 19:47

^^^^^this

Last seen on 02:47, 17. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can make block A have no…
Fri, 06/24/2022 - 12:18

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.

Last seen on 22:07, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hey Octave, thanks for the…
Sat, 06/25/2022 - 02:13

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?

Last seen on 02:47, 17. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For block A you can use …
Sat, 06/25/2022 - 02:37

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.