Skip to content

Hubs-Foundation/hubs-portals-addon

Repository files navigation

Hubs Portals Add-On

A Hubs add-on that implements a simple portal system using the Hubs Add-On API. If the room has spawn permissions, any user will be able to spawn portals. The last 2 spawned portals will be linked together. You can travel between two linked portals. Every time a portal is crossed it will print a message with the number of times that it has been crossed.

As of now add-ons are not yet part of the main Hubs branch, so you'll need to use the Hubs client add-ons branch and install this add-on on it.

Screen.Recording.2024-02-12.at.16.16.54.mov

Install

  1. Install the node-module:
> npm i https://github.com/Hubs-Foundation/hubs-portals-addon.git
  1. Add the add-on to your Hubs client add-ons configuration file.

addons.json

{
  "addons": [
    ...
    "hubs-portals-addon", 
    ...
  ]
}
  1. Create room in your Hubs instance.
  2. Enable the add-on in the room configuration.

Usage

  • To spawn a new portal you can:

    • Use the portal chat command. optionally you can pass a Hex color argument to set the portal color upon spawn.
    • Use the n key.
  • To change the portal color to a random color:

    • Use the control + n key combination while pointing to a portal.
  • Press x while pointing to a portal to delete that portal and it's linked portal.

About

A hubs add-on that adds support for portals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published