minecraft server init
This commit is contained in:
16
config/mputils/infopanel/example/page1.txt
Normal file
16
config/mputils/infopanel/example/page1.txt
Normal file
@ -0,0 +1,16 @@
|
||||
Test Test Test Test
|
||||
|
||||
|
||||
Info panels allow you to write tutorials, welcome messages, or any type of information you would like to add into the game.
|
||||
|
||||
If you just want it to start up on first world load. add §e'loadOnLogin:true'§r to your infopanel json file.
|
||||
|
||||
You can also use minecraft books to open the gui. All you have to do is create a minecraft book with nbt data. §9 '{infopanel:<json file name>}'
|
||||
§e~~Command Example (For welcome.json example):§9 /give <player name> minecraft:book 1 0 {infopanel:welcome}§r
|
||||
|
||||
A quicker command to give the command sender a book for a specfic infopanel. '/mpadmin infopanel <json file name>', Auto complete is set up to help you out.
|
||||
|
||||
If you have load on login true, And you want it to retrigger with a new modpack update, just change the json file name.
|
||||
|
||||
§cFiles are read in UTF-8 Encoding! So if you get strange characters. Your file may be the incorrect encoding. Using a tool like Notpad++ will tell your encoding in the bottom right corner. And in a dropdown you can convert the text file. Some editing my be needed. §r
|
||||
§l§9Click Next for more info on infopanels...
|
||||
13
config/mputils/infopanel/example/page2.txt
Normal file
13
config/mputils/infopanel/example/page2.txt
Normal file
@ -0,0 +1,13 @@
|
||||
When Creating your first infopanel goto your §e'configs/mputils/infopanel'§r
|
||||
Create a folder with anyname you want. What ever you name your folder wont matter, its just for you. Now since your folder is created.
|
||||
You will create your controller json file.Your controller json file can be called anything you want.
|
||||
Make sure your json has a unique name as it is how you will reference it in-game.
|
||||
|
||||
Inside the controller json you can link all your text files. You can have 1 page ,or a lot of pages.
|
||||
|
||||
Just add all your text files into this folder. You are not limited to just 1 controller json in each folder.
|
||||
|
||||
Check the configs for this example to get an idea how to set your new info panels up.
|
||||
|
||||
|
||||
§cPlease keep all names lowercase!§r
|
||||
3
config/mputils/infopanel/example/page3.txt
Normal file
3
config/mputils/infopanel/example/page3.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Look page 3!
|
||||
You can use Minecrafts §9Color §2Codes §6to§r §nmake your InfoPanels look Good.
|
||||
Setting the 'mustRead' in your json file will force the player to read the infopanel for at least 20 secs. Unless its was opened from a book... This will change to forcing player to read something new only once. At the moment it is what it is.
|
||||
18
config/mputils/infopanel/example/welcome_example.json
Normal file
18
config/mputils/infopanel/example/welcome_example.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"loadOnLogin": false,
|
||||
"mustRead": false,
|
||||
"pages": [
|
||||
{
|
||||
"title": "Getting Started",
|
||||
"file": "page1"
|
||||
},
|
||||
{
|
||||
"title": "Extra Pages",
|
||||
"file": "page2"
|
||||
},
|
||||
{
|
||||
"title": "Welcome Page 3",
|
||||
"file": "page3"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user