The worm look is most likely from the magma's interface with the mineralized water as it pushed thru cracks in the magma as it cooled. The process creates micro bubbles and occurs along fractures in the volcanic material. The micro bubbles push out creating a rounded effect along the cracks. To test this you can use a microscope or loupe and in the sharp broken edges of the nodule look at where the solid structure interfaces with the wormy cracks.
Zeolites, silicates *quartz*, sulfides and air pockets will cause similar patterning. Chalcedony *an opal like silicate* is probalbly also present in the area and will create a similar wormy appearance. Look up Chalcedony Desert Rose and see what it looks like... most forms of it look like melted wax and some forms hold value as Fire Agate.