How do i make it so i cant place my block on the wall

Started by Zexmus on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make it so i cant place my block on the wall

I want to make it so my block cant be placed on walls, I saw another forum on this but there wasnt enough detail for me to understand it. 
Can someone help me out?

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Keep in mind, I have no…
Sat, 08/15/2020 - 21:04

Keep in mind, I have no guarantees this will work, and this will only work for blocks that can only be placed by players (versus natural generation).

So, you’d make a sensor for when it’s placed, to see if it was placed on a wall (procedure trigger When Block Added). I’d have to mess around for a while to figure out a way to do this, but it’s almost certainly possible. If it is indeed placed on a wall, place air at X Y Z and add 1 of said block to the nearest player’s inventory.

Also, could you link the other forum? It sounds interesting.