Botania icon indicating copy to clipboard operation
Botania copied to clipboard

[1.18.x] Munchdew eating order weighted by distance from logs

Open TheRealWormbo opened this issue 2 years ago • 2 comments

This change makes the Munchdew randomly select leaves to eat from among those that are furthest away from logs (as specified via their distance property), rather than strictly iterating over X/Y/Z coordinates. The selection weighting contains an added amount of randomness to deviate a bit from strict Manhattan distance. The requirement for leaves to have air exposure before being selected remains untouched.

TheRealWormbo avatar Aug 14 '22 15:08 TheRealWormbo

Can you add a video or something comparing the behaviours?

williewillus avatar Aug 25 '22 01:08 williewillus

I couldn't get Github to recognize my video upload attempts, so here are a couple of YouTube links instead:

  • New behavior for this PR – eating from the outside inwards
  • Old behavior – visually not very appealing IMHO, also starts leaf decay at the end, when leaves are no longer connected to any logs
  • For comparison: Munchdew in 1.12 – likely to disconnect leaves, causing saplings to drop eventually (That's basically what commit ba3ea10 restores, in case you prefer that behavior instead)

TheRealWormbo avatar Aug 25 '22 07:08 TheRealWormbo

Sounds good. I'm going to apply this to 1.19 only though.

williewillus avatar Aug 26 '22 04:08 williewillus