| Type: | Bug | ||
| Reporter: | [Mod] Avoma | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 32 |
| Labels: | mycelium, podzol | ||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||
| Category: |
Block states, Items
|
||||||||||||||||||||||||
| Mojang Priority: | Normal | ||||||||||||||||||||||||
| ADO: | 1261971 | ||||||||||||||||||||||||
| Area: | Gameplay | ||||||||||||||||||||||||
| Description |
The Bug:Mycelium and podzol cannot be tilled with hoes. Steps to Reproduce:
Observed Behavior:Mycelium and podzol cannot be tilled with hoes. Expected Behavior:Mycelium and podzol would be able to be tilled with hoes. Code Analysis:Code analysis by Avoma can be found below. The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn. net.minecraft.world.item.HoeItem.java public class HoeItem extends DiggerItem { protected static final Map<Block, Pair<Predicate<UseOnContext>, Consumer<UseOnContext>>> TILLABLES = Maps.newHashMap(ImmutableMap.of(Blocks.GRASS_BLOCK, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.FARMLAND.defaultBlockState())), Blocks.DIRT_PATH, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.FARMLAND.defaultBlockState())), Blocks.DIRT, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.FARMLAND.defaultBlockState())), Blocks.COARSE_DIRT, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.DIRT.defaultBlockState())), Blocks.ROOTED_DIRT, Pair.of(($$0) -> { return true; }, changeIntoStateAndDropItem(Blocks.DIRT.defaultBlockState(), Items.HANGING_ROOTS)))); ... If we look at the above class, we can see that you can only use hoes on grass blocks, dirt paths, dirt, coarse dirt, and rooted dirt. Both mycelium and podzol aren't included within this particular piece of code, resulting in this problem occurring. Potential Fix:Simply adding that mycelium and podzol can be tilled with hoes to this piece of code should resolve this problem. The correct line of code within its class should look something like the following: net.minecraft.world.item.HoeItem.java public class HoeItem extends DiggerItem { protected static final Map<Block, Pair<Predicate<UseOnContext>, Consumer<UseOnContext>>> TILLABLES = Maps.newHashMap(ImmutableMap.of(Blocks.GRASS_BLOCK, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.FARMLAND.defaultBlockState())), Blocks.DIRT_PATH, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.FARMLAND.defaultBlockState())), Blocks.DIRT, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.FARMLAND.defaultBlockState())), Blocks.MYCELIUM, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.FARMLAND.defaultBlockState())), Blocks.PODZOL, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.FARMLAND.defaultBlockState())), Blocks.COARSE_DIRT, Pair.of(HoeItem::onlyIfAirAbove, changeIntoState(Blocks.DIRT.defaultBlockState())), Blocks.ROOTED_DIRT, Pair.of(($$0) -> { return true; }, changeIntoStateAndDropItem(Blocks.DIRT.defaultBlockState(), Items.HANGING_ROOTS)))); ... |
| Comments |
| Comment by Connor Steppie [ 25/Aug/23 ] |
|
Related to MC-204127. |
| Comment by esoij [ 05/Jun/22 ] |
|
Can confirm in 1.19-rc2 |
| Comment by [Mod] Avoma [ 11/Oct/21 ] |
|
Can confirm this behavior in 21w40a. Here are some extra details regarding this problem. The Bug: Mycelium and podzol cannot be tilled with hoes. Steps to Reproduce:
Observed Behavior: Mycelium and podzol cannot be tilled with hoes. Expected Behavior: Mycelium and podzol would be able to be tilled with hoes. |
| Comment by [Mod] ampolive [ 03/Aug/21 ] |
|
It might have been intended in the past, but with the changes to dirt path in 1.17 it has become more illogical that mycelium and podzol cannot be tilled, since they're dirt variants. |
| Comment by 00001H [ 03/Aug/21 ] |
|
Why is it intended?It still won't stop players turning it into farmland. Way No.1: (1)use shovel on it to turn it into dirt path.(old name:grass path) (2)till the dirt path Way No.2: (1)Break with hand (2)Place the dirt block (3)till the dirt block |
| Comment by Brevort [ 13/Jun/21 ] |
|
This is intended I think. Sources: https://www.minecraft.net/en-us/article/block-week-mycelium |
| Comment by [Mod] Avoma [ 04/Feb/21 ] |
|
Can confirm in 21w05b. |
| Comment by Connor Steppie [ 04/Nov/20 ] |
|
Considerably more important given the recent grass path changes |
| Comment by Jukitsu [ 03/Oct/20 ] |
|
Can someone update the description ? The way it is formulated is kind of weird and cringy :/ |
| Comment by bugsbugsbugs [ 01/Oct/20 ] |
|
I’d like to request ownership of this ticket. The original reporter hasn’t been active since March 2013. |
| Comment by [Mod] violine1101 [ 24/Feb/20 ] |
|
Reopened, as the wiki is not a valid WAI source (or at least not anymore) |
| Comment by ziggurism [ 05/Sep/15 ] |
|
This bug also applies to podzol, which is also not tillable. Also works as designed, I suppose. |
| Comment by Kumasasa [ 24/Jan/13 ] |
|
Mycelium is not tillable, see http://www.minecraftwiki.net/wiki/Mycelium |