mojira.dev
MC-30161

Bonemeal two high flowers producing flower items

When you use bonemeal on a planted two high flower, for example a rosebush. The rosebush, rather than ignoring the bonemeal, excretes a baby of its own kind.

Linked issues

Attachments

Comments 9

isnt this intended? read the snapshot page in the 2 block tall flowers section.

As it is the only way to reproduce them, I would say yes, it's most likely intended. You can grow small flowers with bonemeal too (often producing more than one flower), why shouldn't there be a way to do it with larger flowers?

If you ask me, all appearances point toward this being an intended feature.

@Christian Codreanu:
What do you mean with "fix it"? How else should reproduction of tall flowers work? I can't see a bug here. I would close this as "works as intended".

Quite obvious working as intended.

I don't think that works like intended. Normally drops appear when a block gets broken or a mob dies. Bonemealing on the other hand only makes things grow. The bug is probably that the flower tries to grow a third block, but because it can't be placed, it drops.

public boolean canGrow(World worldIn, BlockPos pos, IBlockState state, boolean isClient)
{
    BlockDoublePlant.EnumPlantType blockdoubleplant$enumplanttype = this.getType(worldIn, pos, state);
    return blockdoubleplant$enumplanttype != BlockDoublePlant.EnumPlantType.GRASS && blockdoubleplant$enumplanttype != BlockDoublePlant.EnumPlantType.FERN;
}

public boolean canUseBonemeal(World worldIn, Random rand, BlockPos pos, IBlockState state)
{
    return true;
}

public void grow(World worldIn, Random rand, BlockPos pos, IBlockState state)
{
    spawnAsEntity(worldIn, pos, new ItemStack(this, 1, this.getType(worldIn, pos, state).getMeta()));
}

I think if you bonemeal on tall flower it creates itself drops

so you can farm the tall flower using bone meal

its work as intended now

 

the code when bonemeal on tall flower will drop

suggestion: make bonemeal on tall flower no longer when rightclick it (its not fixed still)

Tom Miller

(Unassigned)

Confirmed

bonemeal, duplication, flower, flowers

Minecraft 13w36b, Minecraft 13w38a, Minecraft 13w38b, Minecraft 13w38c

Retrieved