[Mode] Portals API [portals_api]
Portals API
This is an API which allows mod creators to easily create portals using items.
Github
Download
Features:
How to use:
Bugs:


License: WTFPL
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


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.