Unless otherwise stated all scripts/datapacks are public domain.
Custom Textures are distributed either:
Under the same licence as the parent mod, when the texture used is an edit of an existing mod/Minecraft asset.
Or public domain, when a texture has been drawn from scratch.