Skip to content

How to create a new level

NathanG edited this page Nov 30, 2023 · 1 revision

This modding guide will show you how to add a new custom level on your OpenBack server

You will need the following

  • Some basic skills with Skript Not required but it can help if you are facing issue
  • The OpenBack server running on your computer
  • A map with your new custom level

1. Create the world with your level

On the server type the following command /mv create levelX normal -t flat

image

If you see the following you level is created!

2. Copy your map

If you want to build your level:

To enter that level type the following command: /mv tp levelX image

If your map is already created:

  • Stop your server /stop
  • Delete the content in ServerFolder/levelX
  • Copy and paste the following folder and files into that folder

image

  • Start your server and type /mv tp levelX

3. Teleport Title

If you want to get a title when entering this level, you will need to edit the plugins/skript/scripts/hud.sk file

In the condition named on player world change:

Add the following

player is in "levelX":
        send title "&f&lLevel X" with subtitle "&7""My subtitle"""

Now if your warp to your level you will see the following title! image

4. Sanity System

If you want to change how sanity work in your level you will need to edit the plugins/skript/scripts/sanity.sk file

In the condition starting with every 10 seconds: with the comment # Dynamic Sanity System:

Add the following:

        if loop-player is in world "levelX":
            set {_dis} to distance between loop-player and location (-32, 65, -3) world "level1"
            set {sanity_rate.%loop-player%} to -0.13
            set {sanity_rate.%loop-player%} to {sanity_rate.%loop-player%} - ({_dis} / 1000) * 1.3

Let me explain this:

NOTE: ADDED SOON