how to make a block only placeable on a roof

Started by Thijmen19 on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Jul 2020
Points:
627

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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.

Active 1 year ago
Joined Jun 2020
Points:
734

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 135
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.

Active 3 years ago
Joined Feb 2021
Points:
639

User statistics:

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

This was helpful thank you