how to make a block only placeable on a roof

Started by Thijmen19 on

Topic category: Help with modding (Java Edition)

Last seen on 12:27, 24. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make a block only placeable on a roof

so im trying to add a light to my mod, that light is a simple roof light so I want it to be only placeable on the underside of a block. I've tried a lot of things with procedures only did not get it to work.

Last seen on 16:47, 29. Oct 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's not very hard to do…
Mon, 07/27/2020 - 19:41

It's not very hard to do this with procedures! Instead of trying to place the block, you should create a brand new item that looks and has the same name as the block. Inside it, create a procedure with the trigger "When right clicked on block." The procedure should check if the direction was 'DOWN' and if it is, then place a block at x, y-1, z. That should solve your problem.

Last seen on 17:07, 24. Sep 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This was helpful thank you
Wed, 06/01/2022 - 06:03

This was helpful thank you