As a newer answer for making an ad hoc network that works in Mojave without a internet connection, while searching online, I finally found an answer!
Smoooosher's answer only works with an active connection to share.
To create your own "active" network, in terminal run the 2 following commands.
sudo networksetup -createnetworkservice Loopback lo0
sudo networksetup -setmanual Loopback 172.20.42.42 255.255.255.255
This creates a new network conection that although it looks inactive, it can be shared from the internet sharing preference pane to wifi.
source: https://www.laszlopusztai.net/2016/02/14/creating-a-wi-fi-access-point-on-os-x/