How do I make my custom block only placeable on certain blocks?

Started by Alex Khang on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make my custom block only placeable on certain blocks?

I'm creating a custom sapling for my mod, which requires a custom model. As a result, I'm unable to use the plants feature and must rely on procedures.

I attempted to create a procedure to check if the targeted block is tagged as "minecraft:dirt", which includes my custom blocks, but it didn't work. I have seen a lot of people say that you can use the "Block valid placement condition", but it's currently bugged or something, because I cannot scroll down to choose my procedures, and can only access the first five procedures I've made.

I've seen and followed this forum topic, but it didn't work for me. Procedure: https://postimg.cc/yWPQcZ5N

PS: I want my sapling to be unplacable on blocks that don't allow vegetation to grow on, not that it becomes destroyed after a while through tick updates.

Any help is appreciated. Thank you!