It has been tried, but failed to pass in a bill in Indiana in 1897. [0]
Such a bill would probably pass now in Indiana, and many other states, given the wishful thinking on so many other issues that can't be resolved by legislation, but that's not for the want of trying.
[0]https://www.straightdope.com/21341975/did-a-state-legislatur...