block only placeable on walls not working

Started by Oreli on Sat, 09/25/2021 - 23:55

Topic category: Help with modding (Java Edition)

Last seen on 22:11, 23. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 22:48, 9. Oct 2021
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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