-
Notifications
You must be signed in to change notification settings - Fork 0
How to create a new level
This modding guide will show you how to add a new custom level on your OpenBack server
- 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
On the server type the following command
/mv create levelX normal -t flat

If you see the following you level is created!
To enter that level type the following command:
/mv tp levelX

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

- Start your server and type
/mv tp levelX
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!

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