how to make leaves not decay in minecraft

News Rules Forum Chat Mods Maps Resource Packs Minecraft Station Desktop View

Search Search all Forums Search this Forum Search this Thread Tools Jump to Forum

Decaying leaves

Hello,

A while ago I built this “wood and leaves” farm where using command blocks players could place leaves or wood on one selected space to harvest. When I first came up with this idea I had not trouble at all but apparently it was due to a glitch which was fixed.

*

Now when I place the leaves they decay really fast. Is there any way to prevent this? I want the leaves to be there until players come to harvest them. Please help!!!

Thanks

*

End Dweller Join Date: 7/19/2013 Posts: 6,963 Location: , location, location! Minecraft: Hexalobular. Member Details

If you make the wall/floor out of wood blocks the leaves shouldn”t decay out to some distance from the wood.

Đang xem: How to make leaves not decay in minecraft

– 4 blocks out from the wood counted as number of connected leaf blocks.

Also, leaves have a blockstate called Decayable, if that is set to false then they shouldn”t decay.

If you know how to do that please post the command, I”m trying to learn more about commands, I can figure out what they do but I haven”t got a clue about the syntax, how to write them.

Zombie Killer Join Date: 6/17/2016 Posts: 220 Location: You don't need to know. Minecraft: TheMeowCat50 Xbox: jameson125 PSN: Nope. Member Details

If you make the wall out of wood blocks the leaves shouldn”t decay out to some distance from the wood.

– 4 blocks out from the wood counted as number of connected leaf blocks.

Also, leaves have a blockstate called Decayable, if that is set to false then they shouldn”t decay.

If you know how to do that please post the command, I”m trying to learn more about commands, I can figure out what they do but I haven”t got a clue about the syntax, how to write them.

End Dweller Join Date: 7/19/2013 Posts: 6,963 Location: , location, location! Minecraft: Hexalobular. Member Details

Decayable isn”t, it”s a blockstate specifically for leaves.

There is a gamerule, randomTickSpeed, that turns off block updates or something, but that would stop crops growing and other stuff as well.

Read more: Classic Wow Classic Black Fathom Deeps, Blackfathom Deeps Dungeon Guide

randomTickSpeed if set to 0 it will stop growing and decaying.

End Dweller Join Date: 7/19/2013 Posts: 6,963 Location: , location, location! Minecraft: Hexalobular. Member Details

I think I found it!

Unfortunately my large scale test was ruined by being too close to lava and catching fire, so I”ve restarted it, but I have a single leaf block that I checked on after 10 minutes and it was still there so I”m optimistic.

Try:

/fill ~-2 ~2 ~-2 ~2 ~7 ~2 leaves 0

My second test is a 5X6X5 block of leaves with no sign of decay after 5 minutes.

10 minutes now, I think I”m ready to call it a success!

30 minutes!

An hour!

End Dweller Join Date: 7/19/2013 Posts: 6,963 Location: , location, location! Minecraft: Hexalobular. Member Details

For leafs to not decay they usually need to be connected to a “log” of wood, this fools minecraft into thinking its a tree, and stop the leaf decay!

From your screenshots, your leafs are not connected to any wood, which should help fix your problem…

But leaves that have been placed by a player have the blockstate <decayable> set to “false” and they don”t decay.
This blockstate can also be set to “false” when leaves are placed with <setblock> or <fill> and then they don”t decay as I stated in the post above yours.

But leaves that have been placed by a player have the blockstate <decayable> set to “false” and they don”t decay.
This blockstate can also be set to “false” when leaves are placed with <setblock> or <fill> and then they don”t decay as I stated in the post above yours.

… and how would I add this blockstate thing to my command?

/fill 87 49 200 96 53 196 minecraft:leaves
… and how would I add this blockstate thing to my command?

/fill 87 49 200 96 53 196 minecraft:leaves
Hexalobular already gave the command; you simply edit the coordinates and possibly the preferred leaves.

/fill ~87 ~49 ~200 ~96 ~53 ~196 leaves 0

If I”m not mistaken you could also use this since this is non decayable oak leaves.

/fill ~87 ~49 ~200 ~96 ~53 ~196 leaves 4 replace

You can find other data values here.

End Dweller Join Date: 7/19/2013 Posts: 6,963 Location: , location, location! Minecraft: Hexalobular. Member Details

… and how would I add this blockstate thing to my command?

/fill 87 49 200 96 53 196 minecraft:leaves /

fill 87 49 200 96 53 196 minecraft:leaves 0

if you are using absolute coordinates, the ~ make it relative to the position of the command block

OcAMD”s suggestion should be

fill 87 49 200 96 53 196 minecraft:leaves 4 replace

You don”t need the “minecraft:” that”s implied unless you add something else from a mod or something, and “replace” makes no diference since it”s also the default.

I”m not too sure about your second “/”, is that supposed to do something?

I know the first one can be left out in a command block, though it does no harm and is useful for manual testing in chat.

For leafs to not decay they usually need to be connected to a “log” of wood, this fools minecraft into thinking its a tree, and stop the leaf decay!

From your screenshots, your leafs are not connected to any wood, which should help fix your problem…

Read more: What Does The Multishot Enchantment Do In Minecraft, Multishot Enchant Needs To Be Better

Thanks so much to all of you who shared the command, it is working so far. Thanks OcAMD for sharing that link too.

*

Leave a Comment