Origins-Reborn
  • Contents
  • FAQ
  • Addons
  • Custom origins
    • Origin Powers
    • Layers
  • Placeholders
  • Troubleshooting
  • Configuration
  • Skript
  • Making your own Origins-Reborn addon
    • Creating the addon
    • Custom abilities
    • Ability
    • VisibleAbility
Powered by GitBook
On this page
  • How do layers work?
  • Custom Layers
  • How do I remove the default layer?

Was this helpful?

  1. Custom origins

Layers

Information about Origin layers

PreviousOrigin PowersNextPlaceholders

Last updated 2 months ago

Was this helpful?

How do layers work?

Layers are a system which allow you to have multiple origins at once. By default, Origins-Reborn has one layer - 'origin'. This system exists in the Origins mod too, and is used in the Origins-Classes mod, although it works a bit different in Origins-Reborn.

If you want players to be able to select multiple origins, you can put some origins onto another 'layer' - which means they are selected separately to the main origins.

For example, you might want to have a 'class' layer which gives players extra abilities associated with a class, which they can pick on top of their origins to get extra abilities.

Or you might want to change some existing origins, like the magic origins from Origins-Magic, and have them as an extra 'layer', so people can pick both an origin and magical powers.

And you can make as many layers as you want with as many origins as you want, letting you hugely customise your server to make it as unique as possible, with both custom origins and other custom layers!

Custom Layers

To make a custom layer, you simply specify it in the 'layer' option when making a custom origin (for more information on custom origins and their options, see ).

You don't need to create a file for the layer - just adding it to any origin will cause it to be registered automatically.

Upon starting the server, some configuration options will be added to the Origins-Reborn config.yml for the layer's default origin, its priority, if it should be randomised upon joining, and if it should be randomised upon using the Orb of Origin.

The layer's priority represents what order the layer's selection GUI should appear (when applicable), with higher layers appearing first. By default, when a new layer is registered, it'll appear after every other layer, but you can change this in the configuration by making the value higher.

How do I remove the default layer?

As of now, you cannot fully remove the default 'origin' layer in Origins-Reborn, as it is required for the plugin to function.

However, if you want to use Origins-Reborn for an addon that adds another layer, whilst disabling the main origins, you have 2 options:

  • Delete all Origins-Reborn origins except for the human.jsonfile in ~/plugins/Origins-Reborn/origins/

    • You can also set the 'default' origin to human in the config.yml so that players don't need to select the origin layer at all.

  • Delete all Origins-Reborn origins in ~/plugins/Origins-Reborn/origins/ , then move the origins added in the addon to the origin layer

    • This means if, for example, you want to use all origins on a 'class' layer in place of the regular origins, you'd delete all the regular origins, then set the layer of all the classes to origin.

    • Techinically this doesn't remove the default layer, but it has the same effect.

Custom origins