mojira.dev
MC-171120

Wither roses cannot be placed on any type of nylium

The Bug:

Wither roses cannot be placed on any type of nylium.

Steps to Reproduce:

  1. Place down some any kind of nylium and obtain a wither rose.

  2. Attempt to place the wither rose on top of the nylium.

Observed Behavior:

Wither roses cannot be placed on any type of nylium.

Expected Behavior:

Wither roses would be able to be placed on any type of nylium.

Code Analysis:

Code analysis by @unknown can be found below.

The following is based on a decompiled version of Minecraft ??? using Mojang mappings.

Current Code:

net/minecraft/world/level/block/WitherRoseBlock.java

protected boolean mayPlaceOn(BlockState p_58248_, BlockGetter p_58249_, BlockPos p_58250_) {
      return super.mayPlaceOn(p_58248_, p_58249_, p_58250_) || p_58248_.is(Blocks.NETHERRACK) || p_58248_.is(Blocks.SOUL_SAND) || p_58248_.is(Blocks.SOUL_SOIL);
   }

Fixed Code:

net/minecraft/world/level/block/WitherRoseBlock.java

protected boolean mayPlaceOn(BlockState p_58248_, BlockGetter p_58249_, BlockPos p_58250_) {
      return super.mayPlaceOn(p_58248_, p_58249_, p_58250_) || p_58248_.is(Blocks.NETHERRACK) || p_58248_.is(Blocks.SOUL_SAND) || p_58248_.is(Blocks.SOUL_SOIL) || p_58248_.is(BlockTags.NYLIUM);
   }

Allowing wither roses to be placed on blocks in the "#minecraft:nylium" tag fixes this issue.

Linked issues

Attachments

Comments 15

Can they be placed on soul sand and netherrack?

Can confirm on 1.16 pre2

5 more comments

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.

Can confirm in 1.19.2.

Avoma

(Unassigned)

Confirmed

Gameplay

Normal

Block states

crimson_nylium, placement-and-support, warped_nylium, wither_rose

20w06a, 20w07a, 20w09a, 20w10a, 20w11a, , 1.21.4, 25w03a, 25w08a, 1.21.7, 26.3

Retrieved