Portal Gun Rewrite for Minecraft 1.4.5

As a few of you guys know, Portal Gun has been undergoing a complete rewrite, but due to the release of 1.4.6, its release had to be pushed ahead, slightly incomplete. These updates to return content will come in the future, after which I will move on to new content.

Anyways, that’s not the objective of this post. This post if to inform you guys of what’s new/changed in the rewrite.

Rewritten Code Base

Most of the base code that makes the mod what it is has been rewritten from the ground up. This, in the end resulted in cleaner code and a better (lots) working environment, as well fixing a couple of potential issues in the future.

New Config format/file

As a couple of you who may have noticed (*cough* non-modpack users *cough*), the config file has been redone, also from scratch, and also using forge’s Configuration utility. As you can see from the picture, the old config was kinda messy, while the new config is much neater with appropriate comments.

Also while you’re looking at the picture I would want to highlight that there is an unused block ID in the config, which will be removed in future versions, and that the default block ID range has been moved to 1100 onwards.

Also would want to add, there used to be 3 config files, client (with LAN map settings), server, and map settings. That has now been changed so that client and servers share the same config, while the map config itself is a standalone which gets loaded every time the map is loaded.


Mod part individualization

With the new code base, it has become easier for me add new mod parts. Therefore the mod parts have been reorganised, giving each specific category a more precise individuality. Want portal guns, but no long fall boots? You can easily disable them, like I’ve shown in the picture above, Grids, Lasers and Checkpoints as well as Long fall boots have been disabled (for example purposes only).

New API added

As with the rewrite comes some a new API that is packaged with the release, for use of modders. Say, you don’t want the turrets to shoot at your Entity, or you don’t want certain blocks to be picked up, use the API. The mod also accepts IMCMessages sent before @PostInit, with the same names as in the API, send the list in a string as you would list them out in the config file to “PortalGun”. There is also an additional IMCMessage accepted referenced as “BaconMod” for the key. Simply put your Class (containing a static reference to the item) and Item field name in as the value, eg “gravigun.common.GraviGun, itemGraviGun”, and the mod will use that item in place of the raw porkchop used for the bacon gun.

Gameplay Changes

If you are just an average user, this will be what you’d be looking for.

The rewrite is INCOMPLETE!

Right now, mainly because of the release of 1.4.6, the release of the rewrite had to be pushed forward at an incomplete stage. For now the mod is lacking a couple of items, most notable are See through portals, Fizzlers, Lasers, and checkpoint blocks. ALSO, it is incompatible with previous versions of Portal Gun. Most items will survive, but many blocks will not.

Update Checker

PortalGun now comes with an update checker. While it checks that your sounds are all downloaded, it also checks for a new version of PortalGun. If there is an update you’ll be notified once you join a world.

New/Changed Recipes

There’s a couple of new/changed recipes, these changes are permanent and will not be changed any time soon.

“What? A nether star?? Are you joking?!”

No, I’m not. There have been many complains of the mod being over powered so this is my solution.

“No way, I am not going to be able to fight a wither!”

Then I would suggest you begin dungeon hunting:

Portal Guns (All 5 of them), Spawners and Fizzlers have been added to dungeon loot. It is at a low, but still possible chance.

See Through Portals have been disabled for now

As this being a rewrite, I am looking for a new way to render the portals as see through, so for now see through portals does not exist. The portals which have a link to them will render as “open” state, if the link is loaded within the area.

Portals act as chunkloaders

Placement of portals have a preset range (previously being “as far as the world is loaded”) and can go up to 10000 blocks by default config now. Portals themselves should have no issues and will keep the chunks the bottom half is in loaded, like your average chunkloader.

Resetting portals have improved

You can hold and release R to remove both portals of the particular gun you are holding, or you can hold R and hit the Left mouse button or the Right mouse button to close just one of the corresponding portals.

New PortalGun model

Many thanks to the collaborative efforts of both L5_ and mr_hazard|d95, there is now a new PortalGun model to be used! It is used on the pedestal as well, replacing the old model.

Grabbed entities (including blocks) can transverse through nether portals now.

Yep, go ahead and bring that blaze spawner to the overworld, I dare yeh.

Introducing the Potato Gun

Yep, it’s finally here. There’s finally potatoes in Minecraft. With a bit of nifty redstone workmanship you can craft a PotatOS (recipe above), and attach it to a Portal Gun!

And yes! It really talks!

Compatibility with the Gravity Gun mod

Both mods communicate with one another to avoid conflicts with grabbed entities.

GUI for Aerial Faith Plates uses sliders to adjust the power

No longer will you be confined by Integral power!

Portal Spawner Items drop with their configurations saved

Yep. From now onwards Portal spawners will drop with whatever configuration you set them saved. It is stored in the item, so any mods you have that places Items can be used to place them down! Props to Tahg for requesting this.

New Creative Tab for mod items

PortalGun has its own Creative Tab for listing down the mod items now.

Well, that’s pretty much all the new stuff I can list down for now (that I can remember).

Have fun, and season’s greetings!

– iChun


  1. lomiada1 December 26, 2012 3:07 am  Reply

    i cant not fount forge 6.5.0. 480 ;(

      • Yrorsnriac December 29, 2012 12:08 am  Reply

        when I go to the forge down load link :http://files.minecraftforge.net/ ,it comes up with this:
        This website is offline

        No cached version is available
        What’s wrong?
        The most likely causes:

        The server is down for maintenance
        There may be a network problem
        The site may be experiencing excessive load
        thank you

        • Lewboy January 1, 2013 7:48 am  Reply

          The http:// messes it up, remove it and the url will work

      • shuttwind215 January 1, 2013 10:12 pm  Reply

        Hello iChunI have got problem with your Portal Gun mod ,which i loved since Beta 1.8 ,but i’ve got some problems with it ,after instaling forge corectly(that was hard but Optifine+Forge=Black Screen) and NOT TRYING TO EXTRACT ZIP BUT MOVING IT TO MODS DIRECTORY (with also awesome gravity gun mod/which is not a problem here/) This appear img201.imageshack.us/img201/9336/90799850.png

        • lowky12 January 13, 2013 10:15 am  Reply

          Update your forge.

          • BloxxingBlocks November 3, 2014 6:50 pm 

            I hear’d that Portal gun isn’t compatible with Optifine and does some strange things (like this: when placing a portal, the chunk the portal is placed on disappears until you don’t move). Try removing Optifine but also update Forge

            P.S: Java 1.8 is not supported. Use Java 1.7 instead

      • JadonXD February 10, 2013 9:17 am  Reply

        Where Do You Actully Download The Mod

      • Noah March 13, 2013 11:46 am  Reply

        when will gel be added, the guy who made the portal 2 gel mod said you would add it.

      • Supermariobros02 February 8, 2014 2:00 am  Reply

        When you gonna add the fizzler, laser and checkpoint block and the gels, the mod creator said yes (I’m don’t know if it is yes iChun, please ask.) that you could use his/her mod. Also my primary portal one glitch out, I can show what with a screenshot.:)

      • Mateus February 19, 2014 2:59 am  Reply

        Please ichun enable again the seeThroughPortals

    • The Dude January 11, 2013 4:37 am  Reply

      Look Just Give us he download -_- i havet found it so dont just ******g hide it!!!!!!!!!!!!!! pleasssseeee make it more NOTICABLE

  2. iGeek2626 December 26, 2012 7:48 am  Reply

    Amazing work as usual! Merry Christmas 🙂

  3. asdasd December 26, 2012 9:42 am  Reply

    where is the download bro ?

  4. wasda_1256 December 26, 2012 12:11 pm  Reply

    it say´s it cannot find forge:

    • Niels1k December 26, 2012 7:51 pm  Reply

      I had that problem 2. Just download the newest version of Forge, wich is 🙂

  5. Raijuros December 27, 2012 6:39 pm  Reply

    I’d just like to say I really like the nether star addition! It makes it reasonably difficult to get, but also thanks to Redpower Vorpal enchant (not sure if this was intentional) it won’t take a working day worth of wither skeleton grinding and more like 30 minutes. I really feel that is a much better balance than the ender pearl.

    Would you consider allowing permission to allow gregtech or another addon to modify your recipes? I saw a suggestion to replace the iron in longfall boots with iridium which with gregtech seemed fair, but ofcourse wouldn’t make sense without. Currently they appear to have the armor of diamond with near-infinite fall damage reduction so it just seems a little powerful for 12 iron and 4 obsidian or w/e the cost is.

    Anyway, thanks for the update and great work on the mod so far! /support

  6. john t. December 28, 2012 1:21 am  Reply

    how do you download that

  7. Dan December 28, 2012 4:31 am  Reply

    Nice work, found a bug dont know if you know about it or not but on a lan game, if the hoster gose thougth a portal sometimes the other joined get sucked thought them looks about a 64 block maybe 128 radius, they also end up getting stuck in the floor. some time you also drop when you go thougt the portal yourself even single play and get ether stuck in the floor or just with your head sticking out. (only when portals are put aginst the wall it seams.

  8. Mariois25 December 28, 2012 7:39 am  Reply

    ok… where do i download it?? -_-

  9. Fabrizio December 28, 2012 12:43 pm  Reply

    Hello! I want to report a couple of bugs but I will not, I would ask if the lasers are still because I have not seen much to serve and I’m doing a map of Portal for co op, and I would ask because Fizzlers not work, are but they do not see it, but would like to know why do not work. waiting for your response I calmly c: take your time. Oh, I almost forgot! and to see through the portals never worked for me, if it’s not on my pc but I never could see through them. I wonder also because it took the view, of course thanks c:

    Nice work guys! continue right there c:

  10. BrainEater95 December 29, 2012 1:32 pm  Reply

    Where the bloody hell is the download? This mod looks AMAZING!!!

  11. TassoP December 30, 2012 12:26 pm  Reply

    were do you download

  12. Talons1337 December 30, 2012 8:50 pm  Reply

    Is there any way to make pedestal portals only a single coloured portal gun?

  13. julian January 1, 2013 5:33 am  Reply

    http://www.minecraftforum.net/topic/1526048-v146forge-majikguys-marvelous-moon-mod-v113-over-10k-downloads/ compatibility with this mod would be the most amazing thing ever! a portal to the moon would not only suck you in, but it would send you to the moon “dimension” . also i though the portal gun crafting recipe should be changed back to an ender pearl because ender pearls are used for teleporting and it just makes sense, but thats just my opinion. your mod not mine.

    • Ryan January 1, 2013 1:23 pm  Reply

      Moon mod + portal mod = EPICNESS

    • WylaxX January 12, 2013 6:32 am  Reply


  14. freak0429 January 1, 2013 11:53 pm  Reply

    where is the download link?

  15. Itfeelslikeya January 5, 2013 12:13 am  Reply

    This is just the blog go to the portal gun sEctIoN

  16. tonkku107 January 5, 2013 8:38 pm  Reply

    Where is the config?

    • tonkku107 January 6, 2013 1:54 am  Reply

      Forget ^^
      Are there laser cubes and lasers already?

  17. Bryce January 6, 2013 2:34 pm  Reply


  18. Simonminarik January 7, 2013 4:04 am  Reply

    Looks like i am the only one who hasn’t got problems with the download :I .

    • Fuzsion February 8, 2013 8:29 pm  Reply

      No, people are just stupid and can’t look.

  19. Kiro0613 January 7, 2013 6:01 am  Reply

    “Yep, go ahead and bring that blaze spawner to the overworld, I dare yeh.”

    He knows.

  20. MODARATER January 8, 2013 5:15 am  Reply

    dude thank you for all this and tell jack whoof who of!!

  21. Mark Nasuti January 8, 2013 5:59 am  Reply

    HELP my filzzerler says (Do not use work in progress) Whats wrong!?

    • WylaxX January 12, 2013 6:37 am  Reply

      Do not use , work in progress.
      Punctuation changes everything.

      It means it will be added soon

  22. AydinPrower7 January 9, 2013 5:46 am  Reply

    When I tried the latest version of the mod it says it can’t find Forge, I tried re-downloading both of them and it still didn’t work. =(

  23. Pherex January 10, 2013 5:38 pm  Reply

    Would it be tougher, instead of implementing the black hole to require a nether star, to instead require two doses of enchanting at level 30 to charge up the portal gun?

    • mr.hazard January 12, 2013 2:48 am  Reply

      last time I checked, stars turned into black holes, not xp. xp is extremely cheap/easy to get.

  24. mr.hazard's correction bot January 12, 2013 2:49 am  Reply

    what I meant was stars turn into black holes, but xp cant, its just an orb of magic.

  25. WylaxX January 12, 2013 6:34 am  Reply

    When will your next update ?
    If your next update doesn’t involves lasers when will laser update will came out.(February ? )

  26. Zacks January 13, 2013 2:18 am  Reply

    I have an idea of a new armor and mob(s) the apeture jacket and leggings, and glaDOS. It would hopefully be a craft able boss mob in the future 🙂

  27. Johan Brodd January 15, 2013 2:03 am  Reply

    Well it seams you’ve done a neat job with this mod. However:

    No download link = no donation.

    To put it another way. How is people gonna test the mod if it’s any good, if they cannot download it first. If you provide a download at the top of this very page, then I’m sure that donations will kick off once the players have tested your mod. I certainly would love to donate some money for your hard work, but I don’t buy a pig in a bag.

    • iChun January 16, 2013 5:39 pm  Reply

      Have you thought about maybe mousing over the “Mods” at the top of the page and clicking on “Portal Gun”?

  28. MillsV2 January 17, 2013 10:01 am  Reply

    hey just wondering I’ve noticed this and its bugging me a bit because its been like this for a while, is it possible in the next update to be able to make it so if you put a custom bacon/potato gun colors that the sprite shows the hex code’s colors, because now it shows normal portal gun colors

  29. jamegod January 23, 2013 3:09 pm  Reply

    55555 good good

  30. TheGoodGuy4 January 24, 2013 8:33 am  Reply

    so. Here are some bugs that i noticed that need to be adressed that im not sure if you know of or not
    i know you know about the portals not being see-through so thats not a concern. its apart of the re-write
    the regular sentary turret doesnt shoot
    the emansipation grid doesnt work (obvioulsy cause you named it unfinished)
    and idk if this is because the re-write is in-complete? but i noticed that this mod goes with the “precisly portal” texture pack yet the portal gun and the portal gun stand are all glitchy looking.
    finally. im assuming that the laser block and laser shooter thing isnt in the game cause of the re-write?
    im assuming ALL of this stuff is cause of the re-write but these are major problems and i was just suggesting that you get tothem right away :p.
    sorry if i sound like an ass (/.\)

  31. TheGoodGuy4 January 24, 2013 8:36 am  Reply

    so. Here are some bugs that i noticed that need to be adressed that im not sure if you know of or not
    i know you know about the portals not being see-through so thats not a concern. its apart of the re-write
    the regular sentary turret doesnt shoot
    the emansipation grid doesnt work (obvioulsy cause you named it unfinished)
    and idk if this is because the re-write is in-complete? but i noticed that this mod goes with the “precisly portal” texture pack yet the portal gun and the portal gun stand are all glitchy looking.
    finally. im assuming that the laser block and laser shooter thing isnt in the game cause of the re-write?
    im assuming ALL of this stuff is cause of the re-write but these are major problems and i was just suggesting that you get tothem right away :p.
    sorry if i sound like an ass (/.\)

  32. Narfy January 25, 2013 8:30 am  Reply

    There’s no sound. Any ideas what should I do?

  33. sario January 29, 2013 9:06 am  Reply

    where are all the recipes

  34. MrClassroomnerd January 29, 2013 12:19 pm  Reply

    You need to contact the apturer craft and work on it together it would be epic!!!

  35. rayhaan February 9, 2013 12:47 pm  Reply

    i cant find the download

  36. jelle February 10, 2013 4:35 pm  Reply


  37. BrianHernando February 18, 2013 10:25 am  Reply


  38. FGHIK February 19, 2013 5:37 am  Reply

    Started new hardcore world, found portal gun in dungeon. F yeah.

  39. Qtack19 February 20, 2013 10:26 pm  Reply

    How do you make the mod so that you have checkpoints and emansipation grids?

  40. Qtack19 February 20, 2013 10:26 pm  Reply

    and others

  41. Vicious3745 February 21, 2013 8:00 pm  Reply

    Hey ichun! Let me begin by expressing that this is by far my favorite mod to date! I love how you captured a great deal of the nuances of using a portal gun. That being said, my group of friends i mine with have their own personal Mindcrack server, and for a number of good reasons they’ve disabled the mod entirely!

    I wanted to provide some ideas we’ve discussed. I know i’d be asking for an awful lot, and i’d be willing to provide any art if necessary, but i’m awfully serious about these changes and would be willing to discuss a great deal of them personally. I will start off by saying that this whole endeavour is to have Portal Guns be balanced with Mindcrack, essentially Industrial Craft, really.

    The main reasons we’ve disabled portals:
    -They travel an unlimited distance.
    -Portals Placed on Warded Stone can be used as a form of griefing to get into other people’s houses, permanently.
    -Every portal gun has unique portals to given players, instead of there being a limited number of guns on the map.
    -Portals, LongFall Boots, and Turrets seem too easy too easy to craft within industrial craft, and are an easier solution to IC style teleporters, nanoboots.

    But the first reason of people portalling across 10km in an instant and using the gun to get into unwanted areas was the biggest issue. So, What are my Ideas to make the mod more IC friendly?

    I’ll focus more on gameplay aspects rather than “Oh well everything should use industrial craft recipes”, because i feel game play and adventure are what this mod is really about. This whole thing should probably be a Mindcrack unique solution, or a spin off of the mod intended for IC compatibility, or something like that. In the end, more advanced recipes including Iridium should be common sense.

    -Portals should be powered by EU.

    -Long Fall Boots should eventually have to be recharged, similar to nanoboots. They would still not provide protection, so unlimited fall damage i think is still balanced, as long as it has a charge.

    -Portal Guns should hold an obscene amount of EU, and probably require iridium to make.

    -The further apart portals, the more EU it takes to keep them running. As long as portals are up, it drains the gun.

    -Turrets should be battery powered as well. When in sleep mode they would consume very little to no energy, but when activated they could, say, drain through an MFE’s amount of power within a decent amount of time. The ability to set what they shoot at in a UI that allows you to also place batteries or crystals to charging them would be convenient.

    I’m not trying to tell you what to do or anything like that, i’m merely trying to provide some ideas for more in depth, resource dependent game play and compatibility with IC. In fact, i wouldn’t even mind if you prefered to make it Redpower compatible instead, but i feel Industrial craft leaves you with more options and avenues to play with.

    Thanks for taking the time to read, and hit me up if you’re interested!

  42. alex February 23, 2013 10:00 am  Reply

    what you got agenst chickens? there not evil……
    also nice job on the potatOS portal gun i love looking at chickens buttons cake mob spawneres……

  43. BloodyIrish February 24, 2013 5:56 am  Reply

    How do craft the boots now

  44. LOL February 27, 2013 10:30 pm  Reply

    wha’t the fuck!!!

  45. poppy60 March 11, 2013 2:57 am  Reply

    how do i download it i don’t no how to install a mod

    • Guest May 26, 2014 2:40 am  Reply

      Same here Bro.

  46. gabrielvlad1999 March 11, 2013 11:48 pm  Reply

    I have a small question, where do I find the site to install it, I can not find nothing!
    help me

  47. nbbbb March 13, 2013 6:29 pm  Reply

    thank for mod………

  48. Nathat6 March 29, 2013 6:23 am  Reply

    Seriously iChun just tell us where the download link is

    • Trevi99 May 6, 2013 4:35 am  Reply

      why dont you click the DOWNLOAD button maybe

  49. GreenZombi98 May 12, 2013 11:04 am  Reply

    Can i have permissions to use the portal gun mod in a mod pack im creating? I would love to have it in my mod pack.

  50. poppy60 May 15, 2013 11:31 am  Reply

    Greenzombi88 just use it idc if ya use it ichun probably won’t either so go head an d use it also if you see skydoesminecraft around tell that I want to do a bother park our map with him

  51. WhealteyCore June 3, 2013 5:03 am  Reply

    Is there something wrong with the fizzler? because it says do not use, and when i use it anyway it say it again on my chat box, is it having to be rewritten too? because i didn’t see any info about it

  52. Man June 5, 2013 4:26 pm  Reply

    i need blood mod!

  53. Woman June 5, 2013 4:28 pm  Reply

    i need 999999999999999 mods!!!

  54. LOLGoDie July 7, 2013 12:23 am  Reply

    Haha asshole doesn’t have a link to download the mod

  55. Andrew July 20, 2013 6:16 am  Reply

    Why oh why did you disable seeng trough portals? That was an awesome feature!

  56. ToxicScopes July 29, 2013 6:45 pm  Reply

    Hey iChun! Is the Emancipation grill fixed yet?

  57. Fire Hazard August 19, 2013 2:48 pm  Reply

    Hey chun, So.. I’ve been having a problem recently… When I reload my world, all my pre-loaded portal spawners seem to be cut in half and are unrecoverable. This is a serious bug if you are creating them yourself because it takes a netherstar per 2 spawners… I don’t know what happens at the start of the worlds, but when I load them the spawner is cut in half >.< I don't liek spawning them in but I gotta so I keep them where i need them.. lol

  58. sam January 17, 2014 2:44 am  Reply

    where can i find the link to 1.6.4 portal gun mod

  59. Bob my name is not bob this so my name is secret March 4, 2014 9:01 am  Reply

    where do i click to download the mod

  60. Bob my name is not bob this so my name is secret March 4, 2014 9:10 am  Reply

    i find the forge for it all mine is 1.6.4 and 1.7.2 can i still get it and get it to work if someone helps me please

  61. Mod noob May 26, 2014 2:43 am  Reply

    were do i install the mod and how do i get it work

  62. Keii June 16, 2014 10:12 am  Reply

    It would be neat if the secret ability for the portal gun, that is to say shooting a portal at the moon, would communicate with Galacticraft and actually send you to the Moon dimension if Galacticraft is installed.

  63. Kyle Finn October 19, 2014 1:14 am  Reply


  64. ArlexLightDragon March 10, 2015 9:08 am  Reply

    When ever I pop some portals down there are cakes with torches right in front of them. I suspect this is because of the light source the portals leave, however I have never had this problem before. What is the fix for this?

  65. DevLopAPI May 8, 2015 5:48 am  Reply

    Is portalWhitelist disabled, too?

    or who can send me a link to a video for configuration

  66. Samu October 21, 2015 11:09 pm  Reply

    Hey, I have no idea id you will see this but how about making the portals blocky like everything else in Minecraft? It wouldn’t look too small for the player, it might be easier to make the see through effect and it fits with Minecraft’s style.

    Thank you for reading.
    I know this is super old

  67. C.L. December 2, 2015 5:57 am  Reply

    Will you make it for Minecraft 1.8.8?

  68. mikee December 28, 2015 11:23 am  Reply

    i love portal’s ive been waiting a long time to see this

Leave a comment

Your email address will not be published. Required fields are marked *