block only placeable on walls not working

Started by Oreli on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
block only placeable on walls not working
Sun, 09/26/2021 - 07:25 (edited)

i've got a block in my mod that i'm trying to only be placeable on walls, and i've done this by adding a valid placement condition that checks if the location is a valid position for a ladder, and if so, it places the block

the procedure

however, when i try to place it in game, it doesn't work and can only be placed normally facing south. east and west require a block to be placed to the left or right of the block to work, and north requires a block in front of it. i don't have any other procedures that would do this, and any help would be greatly appreciated

 

edit: i've just given up and decided to make it placeable on the floor and ceiling, but it would still be nice to know what was up with this

Edited by Oreli on Sun, 09/26/2021 - 07:25
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would assuming something…
Mon, 09/27/2021 - 14:00

I would assuming something like get direction of block at x y z. If direction is north, south, east, or west then place block on that side

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey! you can use procedure…
Sat, 07/18/2026 - 20:00

Hey! 
you can use procedure with ill refer to it as "Placement Condition Procedure"
the procedure should look something like this


After that, save it, then go to your block, open Advanced Properties, and on the bottom left you'll find "Block valid placement condition". Select the Placement Condition Procedure you just created and save the block. That should be it!

By the way, I'm using MCreator 2026.2, but I think it works the same way in other versions as well. Hope this helps! :D
 

Joined Jul 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i wish you could reply on…
Mon, 09/07/2026 - 05:57

i wish you could reply on this but this guys thing crashed my game ^

                                                                                                           l