When you use formatting codes(ex §4 for red text) with commands such as say in a function, it will instead cause the text to disappear completely. The attached picture shows an example of this, where the text should output "You have returned.", and does so when using the command in chat instead of a function.
Attachments
Comments 4
The function is pretty long, but here are some iterations of one of the text output commands used in the function outputting in the screenshot. The top one is the one I tested out of the command, A screenshot of the chat result is attached
[media]execute @p[scores={riddleStage=0},x=864,y=71,z=157,dx=5,dy=3,dz=5] ~~~ execute @e[c=1,type=enderquest:sphinx] ~~~ say §4You have returned.
execute @p[scores={riddleStage=0},x=864,y=71,z=157,dx=5,dy=3,dz=5] ~~~ execute @e[c=1,type=enderquest:sphinx] ~~~ /tellraw @a {"rawtext":[{"text":"§4Sphinx: You have returned."}]}
execute @p[scores={riddleStage=0},x=864,y=71,z=157,dx=5,dy=3,dz=5] ~~~ execute @e[c=1,type=enderquest:sphinx] ~~~ /tellraw @a {"rawtext":[{"text":"Sphinx: You have returned.","color":"red"}]}
Works fine for me. Of course the color
option is ignored because bedrock's raw text format is extremely primitive
Please include the function used