Need help with Replaceable placing procedure.

Started by rainbow urumakii on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with Replaceable placing procedure.

I'm making a block that places when you sneak right click with a glass bottle. I have 6 placing procedures that look like this (each for a different side of a block):

https://gyazo.com/6539ddbcca9ddb880d9d5123ddbef6f8

 

However I also added a procedure so it replaces replaceable blocks (like grass or snow) which looks like this:

https://gyazo.com/80c9d115c48ddc6fdcc7ee53f112c629

 

When I place the glass bottle block, it destroys the replaceable block but places the glass bottle block above it, instead of replacing it.

 

I tried adding a "if NOT block replaceable" to all the placing procedures, but this just destroys the replaceable block and doesn't place the glass bottle block.