leaves randomly decay

Started by TheRidiculousR on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
leaves randomly decay

I have been working on a mod for a long while now
this mod adds 12 new biomes with 7 new tree types to the game so far.
however, in these custom biomes the performance of the game is often very choppy.

I recently discovered that the entire biomes are full of sapling drops because leaves are decaying...
on further inspection all leaves generate with a distance value of 7.
if the distance value is 7, it has a 10% chance of disappearing.
only if it doesn't disappear will it actually check if its touching a log.
so for one, the trees have random holes in them, and for 2, the entire biome is covered in sapling item entities which makes the game stutter severely!

I have tried using a blockstate plugin to force the distance value to 1 instead of 7 OnBlockAdded, but the leaves that would randomly decay still do, and the remaining leaves will be stuck on value 1 and never decay, as if persistent.

has anyone got any idea how to fix this?
I even tried looking into the block code, to try and change the default distance value, but the only refference to blockstates was my own procedure being called.

 

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
by adding the tag: Leave or…
Fri, 10/22/2021 - 16:40

by adding the tag: Leave or smt like that on your leaves

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no, that does not fix it
Sat, 10/23/2021 - 10:29

no, that does not fix it

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use tags Logs + Leaves …
Sat, 10/23/2021 - 13:16

Use tags Logs + Leaves  repectively on your trunks / branches and leaves

Inside block description make sure to set leave as leaves and logs as wood under properties

No other reason why this should not work. I have tons of custom trees in custom biomes and all working fine

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem. I…
Mon, 07/10/2023 - 09:17

I have the same problem. I used woodcreatures' tip but it doesn't work for me. Please help.

 

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Should i put the tag in …
Wed, 08/28/2024 - 00:32

Should i put the tag in 'item' or 'block'?