Expanding the Fire model with water

Adding this here from old forum:
Greetings
Its been a while since I’ve been with netlogo and looking to get back into things and just started to play around with the fire model with the help of Microsoft CoPilot (apologies up front)
Anyhow I am looking to add water silos that help extinguish or hinder fire expansion. I have two codes - the first just added silos that are indestructible to the spread of fire and that is clean and working as I intended.
the second tries to expand on those silos by have them spray water (blue) in are directions 5 patches and thereby potential stopping the spread of fire as if they were empty spaces (patches) not trees.
That second model is close, but the water spreads sporadically and only few patches receive blue instead of a blanket of water in all directions as you can see when model is run
Thank you for the help.

First:
Add indestructible silos

Second: trying to add water-spray ability:

I have edited your post to take advantage of the NetLogo syntax highlighter (you can use ``` to denote it).

Is the code AI-generated? It seems weird to me that “red” patches are triggering water sprays, i.e., only trees on fire - which doesn’t sound intuitive to me.

So one way to debug this would be to write down the model rules you want in plain, natural language, and then check the code to see if it is really doing what you want.

Thanks for the feedback,
I think I got where I was going (see below), I guess to clarify one of points which I changed, as the fire approaches the silos, a patch away, it triggers a deploy of water (or probably should have done retardant) that sprays in all directions trying to hinder spread of the fire, the blue spray acting as new empty space - though the fire seems just to go around it now.
Cheers
P.S. yes it was ai generated, I wanted to see how long it would take, longer than expected, but surprised it eventually got there after repeatedly telling it, it was wrong.