Page 1 of 1

[Mode] Portals API [portals_api]

PostPosted: Sun Nov 13, 2016 22:04
by jordan4ibanez
Portals API

This is an API which allows mod creators to easily create portals using items.

Github

Download

Features:
  • The mod creator can define the wall and filler node of the portal
  • Lightweight and easily accessible to new modders
  • Can be modified to change the height and width of portals
  • Portals have no distinct shape, can be shaped to how you like them

How to use:
  • Build any shape you'd like, as long as there are no other nodes inside your portal besides air
  • Portals have a default height of 30 and radius of 15

Bugs:
  • The central node (the node you click to create portals) must be aligned with the highest node in the portal or there will be air pockets on the top of your portal
  • You must click the lowest central node in the portal or there will be air pockets in the bottom of the portal
  • Portals have no teleportation function, so they just build themselves for now

Image

Image

License: WTFPL
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.

Re: [Mode] Portals API [portals_api]

PostPosted: Tue Nov 15, 2016 06:28
by jordan4ibanez
I've made updates to the mod which allow for single node base and 3d portals. It's showcased in my Hell mod.

Here's a little video of it in action
https://youtu.be/CtrUHT-XOlc

Re: [Mode] Portals API [portals_api]

PostPosted: Wed Jan 25, 2017 14:59
by azekill_DIABLO
hail jordan4ibanez! hail!