block only placeable on walls not working

Started by Oreli on

Topic category: Help with modding (Java Edition)

Last seen on 21:12, 23. Mar 2024
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
Last seen on 01:58, 23. Nov 2021
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