Started by
UraniumCruncher
on
Topic category: Help with Minecraft modding (Java Edition)
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.
bump
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
Thanks!
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