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

Started by Invavine on Wed, 09/12/2018 - 23:29

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I place a block only in another specific block?
Wed, 09/12/2018 - 23:29

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 22:00, 27. Sep 2020
Joined Apr 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.