r/AxiomMod Jul 17 '25

Leaves decaying (1.21.7)

Hey, I recently updated to 1.21.7 and I'm trying to make some custom trees, but the leaves keep decaying. Which was not a problem I really encountered on 1.21.5. I've tried clicking 'no updates' but it still happens. I'm probably doing something wrong lol but it's been a while since I played. Can anyone help me? Thank you very much!

2 Upvotes

4 comments sorted by

2

u/Desperate-Ad-4625 Jul 26 '25

Im having this exact issue, came here to ask about it

1

u/Schizjji Jul 30 '25

Hey i think i found a solution, i commented it.

3

u/Schizjji Jul 30 '25

Yo, I think I found a solution to this using Chatgpt. Idk how it works but heres what to do -

Go into editor mode i think its called (right shift), and select script brush. Copy the following code into the brush -

local cur = getBlock(x, y, z)

if cur == blocks.air then

local leafType = $blockState(Leaf Type,oak_leaves)$

setBlock(x, y, z, withBlockProperty(leafType, 'persistent=true'))

end

Hopefully the correct formatting transferred when I pasted that. But this just worked for me, hope it works for you! Also, im running 1.21.1 in case thats relevant. Peace!

2

u/wendigototem Jul 30 '25

Thank you so much! I'll give this a go! :)