How to Stop a Block being Placed on specific Blocks

Started by That Ratt on

Topic category: Help with modding (Java Edition)

Last seen on 13:38, 6. Jul 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Stop a Block being Placed on specific Blocks

I'm making a block like moss carpet, except I don't want it to be placed on itself or any other non-solid block, just full blocks. Is there a way I can do this with procedure blocks? (screenshot of procedure preferred)

Last seen on 04:06, 7. Jul 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah go to your blocks…
Thu, 07/04/2024 - 17:09

yeah

go to your blocks element editor, find advanced options, then set the tick rate to 1

then add this to your blocks element editor:

on block update tick, run this procedure:

if [get block at x, y-1, z] is not solid

replace [block at x, y, z] with air