How to make a double plant replace correctly

Started by KWatStudios on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a double plant replace correctly

I am making a mod that adds plants that are like Minecraft 1.22's Eyeblossoms but double tall versions, and I am trying to make a procedure that swaps the gray plant for the blooming one at night, I've figured out you can place the plant with the falling block function, but it only places the bottom half. How can I make it place the top half too?

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In double plants, if part ofโ€ฆ
Sat, 06/07/2025 - 07:02

In double plants, if part of it is upper or lower is defined by a blockstate. Therefore, you could have the procedure place another one of the double tall plant blocks above the first one, then modify its "half" blockstate to "upper" through the set enum property procedure block.