leaves randomly decay

Started by TheRidiculousR on

Topic category: Help with modding (Java Edition)

Last seen on 10:28, 25. Nov 2022
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.

 

Last seen on 04:28, 26. Jan 2024
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

Last seen on 10:28, 25. Nov 2022
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

Last seen on 15:24, 24. Apr 2024
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

Last seen on 19:20, 31. Mar 2024
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.