Im currently trying to make a function that uses titleraw, but for some reason its the only part in the function that doesnt work. It was more complex at first but I've simplified it to titleraw @s title {"rawtext":[{"text":"aaa"}]} and yet I get nothing, but if I use the command in chat/command block it works. I know its running since I put a say hi part and it says it in chat, as well as there are also other functions in the pack that work so its just this for some reason. Anyone know how to help?
#Titleraw in fuction problems (Solved)
1 messages · Page 1 of 1 (latest)
It depends on how @s is being handled. If a non-player entity is running the function then it won't appear. Make sure the entity running the function is a player or use tags/scoreboards to create a selector and use @a.
A function is not a player. @s means "self", the self in this instance would be the function.
/execute as @s run function {name}
This should help you get what you are looking for.