How do I place a block only in another specific block?

Started by Invavine on

Topic category: Help with modding (Java Edition)

Last seen on 23:29, 12. Sep 2018
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I place a block only in another specific block?

I want to create crops, but I want to allow them to grow only in dirty blocks.

I can't understand procedures very well... ._.

Anybody can help me?

Sorry for bad english. :(

Last seen on 03:03, 6. Feb 2024
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here I have made it for you …
Fri, 09/14/2018 - 17:47

Here I have made it for you 
This will check when you try to place it if there is Dirt or Coarse Dirt under if no than it will instantly break this plant also 
when you will try to place it in Survival it will spawn you its sapling or what ever you want just replace the popy from my example to something that you want or if you don't want it to spawn item when you break it on survival than remove that second If method :)
also place make this run on "Block Placed By Player" Event trigger to make it work and check Wiki for information's about Procedures :)

Here

Last seen on 05:44, 24. Oct 2019
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wes i just wanted to thank…
Sat, 10/12/2019 - 22:24

Wes i just wanted to thank you for sharing that code, i was having a hard time finding a way to specify block placement then i looked at this. Thanks a lot.

Last seen on 09:36, 18. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is there an update for this…
Sat, 02/04/2023 - 05:01

is there an update for this for 2023? sides of blocks like my Tree Tapper?

Last seen on 14:48, 18. Apr 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey TheRTGGaming, funny…
Sun, 03/12/2023 - 19:01

Hey TheRTGGaming, funny enough im making the same thing for my mod, and i figured out how to make it placeable on sides, you can copy the image ill put below, Basically i made an item for the block instead of directly placing it and set this code to the ITEM FORM of it, Note that it uses orange "=" blocks