mojira.dev
MC-253472

Dirt, rooted & coarse cannot be saturated (turned into mud) on the bottom face

Using a water bottle on the bottom face of dirt will not transform the dirt into mud.

Related issues

Attachments

Comments

migrated
[media][media]
Avoma

I can also confirm this behavior. Here's a code analysis regarding this issue.

Code Analysis:

The following is based on a decompiled version of Minecraft 1.19.1 Release Candidate 1 using Mojang mappings.

net.minecraft.world.item.PotionItem.java

public class PotionItem extends Item {
   ...
   @Override
   public InteractionResult useOn(UseOnContext useOnContext) {
      Level level = useOnContext.getLevel();
      BlockPos blockPos = useOnContext.getClickedPos();
      Player player = useOnContext.getPlayer();
      ItemStack itemStack = useOnContext.getItemInHand();
      BlockState blockState = level.getBlockState(blockPos);
      if (useOnContext.getClickedFace() != Direction.DOWN && blockState.is(BlockTags.CONVERTABLE_TO_MUD) && PotionUtils.getPotion(itemStack) == Potions.WATER) {
         ...

If we look at the above class, we can see a check is specifically carried out to check what face of the block was clicked on, before allowing it to be converted into mud. If the bottom face is clicked, the interaction would fail and if any other face is clicked, the interaction would be successful. This is evident through the following piece of code:

if (useOnContext.getClickedFace() != Direction.DOWN ...
Avoma

Can confirm in 1.19.2.

NEVERBRICK

Reproduced in 1.20.3-pre4

migrated

Can confirm in 1.20.3 Release Candidate 1

Minecraft386882

Can confirm for 1.21.3

migrated

(Unassigned)

Confirmed

Gameplay

Normal

Block states, Parity

1.19, 1.19.1 Pre-release 1, 1.19.1 Pre-release 5, 1.19.1 Pre-release 6, 1.19.2, ..., 1.20.1, 1.20.3 Pre-Release 4, 1.20.3 Release Candidate 1, 1.21.3, 1.21.4

Retrieved