Skript JSON help

Status
This thread has been locked.

Syvi

Banned
Feedback score
0
Posts
122
Reactions
42
Resources
0
Hello,

I need help with the Title JSON being changed in 1.9, which makes my skript not work.

Code:
on region enter:
  wait 1 tick
  if "%region at player%" contains "ship3":
    execute command "title %player% title {text:""Corrupted Slime's Lair"",color:""dark_red""}"

Can someone fix this? I'd really appreciate it.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Syvi

Banned
Feedback score
0
Posts
122
Reactions
42
Resources
0
Still need help
 
Banned forever. Reason: Scamming/Attempting to Scam (https://builtbybit.com/threads/pacific-scam-report.542094/)

JJDAHM

Unregistered Member
Supreme
Feedback score
5
Posts
929
Reactions
570
Resources
0
JSON is not working with Skript 1.9 as far as I know. You can look on Skunity if there's anything about it.
 

Syvi

Banned
Feedback score
0
Posts
122
Reactions
42
Resources
0
Alright, thank you
 
Banned forever. Reason: Scamming/Attempting to Scam (https://builtbybit.com/threads/pacific-scam-report.542094/)

Keeland

Premium
Feedback score
0
Posts
70
Reactions
15
Resources
0
Hello,

I need help with the Title JSON being changed in 1.9, which makes my skript not work.

Code:
on region enter:
  wait 1 tick
  if "%region at player%" contains "ship3":
    execute command "title %player% title {text:""Corrupted Slime's Lair"",color:""dark_red""}"

Can someone fix this? I'd really appreciate it.

This is just a console command and the syntax for minecraft title commands have just changed. In 1.9 you need to also quote the element you are using as well as the parameters. I've updated the console command line to work with 1.9 below

execute command "title %player% title {""text"":""Corrupted Slime's Lair"",""color"":""dark_red""}"
 

Syvi

Banned
Feedback score
0
Posts
122
Reactions
42
Resources
0
This is just a console command and the syntax for minecraft title commands have just changed. In 1.9 you need to also quote the element you are using as well as the parameters. I've updated the console command line to work with 1.9 below

execute command "title %player% title {""text"":""Corrupted Slime's Lair"",""color"":""dark_red""}"

This worked!

Thank you for your help
 
Banned forever. Reason: Scamming/Attempting to Scam (https://builtbybit.com/threads/pacific-scam-report.542094/)
Status
This thread has been locked.
Top