#Example pack for grass-type behavior?

1 messages · Page 1 of 1 (latest)

rocky river
#

I'm currently trying to recreate a grass-like block for my addon and currently my knowledge on scripting is limited (basically non-existent) so I was wondering if anyone had an example pack that recreated grass and behaved just like one (basically spreads until it detects a block above the spreadable block and dies after awhile when a block is above it)

rocky river
dusty furnace
#

Use dimension.getBlocks.() then iterate over block via result.getBlockLocationIterator() with your logic

lone forge
#

If you want later i can update it

rocky river
lone forge
#

Yeah i can update it after work

lone forge
#

updated @rocky river

#

hold on sorry i uploaded the wrong one lol

#

also icluded a flower component to replicate flowers growing when the grass block is bonemealed

#

just be warned there is a bug with custom conponents with the interactions youll have to sneak to place blocks around it unfortunatly i cant fix that

rocky river
lone forge
#

What api are you using?

rocky river
#

works great

#

Thanks!

lone forge
#

Np lol