Portal Gun Addon/Command (Редстоун)
For many years, you may have encountered numerous attempts to create portal weapons for our beloved game Minecraft Bedrock. However, two major issues have plagued all of them: significant lag or reliance on a mod. Nevertheless, I have discovered a method to create a new and enhanced portable weapon without lag, utilizing a combination of an add-on and command blocks in Minecraft through the mod titled Portal Gun Addon/Command (Portal Weapon).
Currently, portals replace sheep and pigs. However, when the ability to add mobs becomes available in Minecraft, I will modify this portal gun so that the portals do not replace mobs in the game.
Note: The portal device will not work without command blocks and the add-on.


Below, you will find a walkthrough video explaining how to set up the command blocks and how to use the add-on with them. (Download the add-on and use it in your world)
OR
You can simply download the .mctemplate map below, which will contain both the command blocks and the add-on pre-installed for you.