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)
#Example pack for grass-type behavior?
1 messages · Page 1 of 1 (latest)
The last script I tested (it was another free sample) was too laggy and wasn't ideal
Use dimension.getBlocks.() then iterate over block via result.getBlockLocationIterator() with your logic
needs updated but should work just change for what u need
If you want later i can update it
the script has some issues. I tried fixing certain parts, but some problems persist. It would be great if you could update it for me.
Yeah i can update it after work
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
I tested out the script again but there was an issue that stopped it from working
What api are you using?
I forgot to use latest API version lol
works great
Thanks!
Np lol