Placing double plants via a procedure.

Started by UraniumCruncher on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Placing double plants via a procedure.

I am trying to add a baby version of a sunflower to one of my mods, and it should turn into a sunflower when it grows up. It can grow up just fine, except the replace block at x, y, x code will only place the bottom of the sunflower, when I want both parts. If I try to place a sunflower at both y and y+1, both parts just break leaving nothing. Please help, I want to know how to place double plants.

You will need to place plant…
Sun, 02/08/2026 - 21:24

You will need to place plant twice and set the blockstate of the upper block before placing it to set its state to be the upper part of the plant

Use local blockstate variable to store plant state and alter it to be upper variant before placing it

Use blockstate management procedures to alter the state

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm trying to do this with a…
Wed, 04/01/2026 - 00:17

I'm trying to do this with a rose bush to replace it with another double plant, however when I try to place the plant twice they both break immediately