[Mode] Portals API [portals_api]

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

[Mode] Portals API [portals_api]

by jordan4ibanez » Sun Nov 13, 2016 22:04

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.
Attachments
screenshot_20161113_165154.png
screenshot_20161113_165154.png (578.37 KiB) Viewed 618 times
Last edited by jordan4ibanez on Tue Nov 15, 2016 06:34, edited 2 times in total.
If you can think it, you can make it.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Re: [Mode] Portals API [portals_api]

by jordan4ibanez » Tue Nov 15, 2016 06:28

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
If you can think it, you can make it.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mode] Portals API [portals_api]

by azekill_DIABLO » Wed Jan 25, 2017 14:59

hail jordan4ibanez! hail!
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 10 guests

cron