This datapack adds a TNT Railgun to the game, it can shoot TNT missiles, and you can modify the range and explosion size.
NOTE: To obtain the item and change settings, type /function help_tntrailgun into the chat.
Credit for this datapack goes to Blockplacer12345 (a friend of me who allowed me to publish this), I added settings, the item and some fixes.