Only allow placement of a custom block on the underside of solid blocks?

Started by Aksumite on Mon, 08/03/2020 - 05:45

Topic category: Help with modding (Java Edition)

Last seen on 01:21, 23. Aug 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Only allow placement of a custom block on the underside of solid blocks?
Mon, 08/03/2020 - 05:45

I am making rope, and would like it to work very similar to the new weeping vines from 1.16, so the rope should only be able to be placed on the underside of blocks. Thanks :D

Use procedure on block added…
Mon, 08/03/2020 - 07:44

Use procedure on block added and check if neighbour blocks match your conditions. If not, remove the block (your block you just placed on x, y, and z).

Last seen on 01:21, 23. Aug 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
That’s not exactly what I’m…
Mon, 08/03/2020 - 21:51

That’s not exactly what I’m going for, I don’t want the block (rope) to be placed anywhere else in the first place. For an example, when you try to put weeping vines on the side of a block it doesn’t place and then get removed, it just cancels the placement entirely.