Can't, I tried. (Not really a portal gun, but just teleport objects in general) The closest thing I could come up with is my Teletech mod: http://community.playstarbound.com/index.php?resources/modbound-teletech.26/ Only techs can move the player right now.
Yeah, I was thinking the blink tech was the closest to what the portal gun does. Probably take a bit of work figuring out how to combine the image and action of a gun to the modified tech .lua
Couldn't e try extracting the Portal Gun from Terraria and try converting it to lua? Don't even know if that's possible but there are always equivalents... (like convert it to lua, no? Unless it is already...)
You can't straight up "convert it", there's no "magic translator", and yes, there are equivalents, but that's where all the work is. Terraria and Starbound don't have the same code, they don't have the same things we can hook into to do stuff. While they do are similar platformer sandbox games, with similar mechanics, what's running behind the scenes could be totally different. I'm also pretty sure most people familiar with starbound modding aren't really familiar with terraria's inner workings, and don't want to go and learn only for one item. This is also a pretty old thread (the reply before yours is from 2014(!)) and I don't know what was available for modding at that time Don't mind the spooky placeholder eyes and umbrella This is far from usable / the final version, more a fun proof of concept whatever (itonlyworksfortheplayerwhoplacesportalsportalsaresimplystuckinairtheyhaveabigcircularrangetheydontkeepmomentumandsometimesitcrashesoutofnowhere) but I'm lazy to go further for now
Oh thx One thing I know is Terraria code, so I'll see what I can do following up my ideas and your post. Since I know Terraria's inner-workings, I'll try to do something. (P.S: I already started programming a few mods for Starbound, so I thoroughly have a good understanding of what's ther ) Thx for your reply!