Mojira Archive
MC-73436

Tellraw clickEvent open_url can't open files

I am sorry if this is a duplicate, but I couldn't find any report containing this.

You cannot open files via Minecraft. This is a bug because it simply has to copy and paste the "URL" into the browser and then the browser does the rest. Instead you get this error message:

[20:50:10] [Client thread/ERROR]: Can't open url for ClickEvent{action=OPEN_URL, value='file:///C:/'}
java.net.URISyntaxException: Unsupported protocol: file: file:///C:/
	at bxe.a(SourceFile:289) [1.8.1-pre2.jar:?]
	at byr.a(SourceFile:453) [1.8.1-pre2.jar:?]
	at byr.a(SourceFile:423) [1.8.1-pre2.jar:?]
	at bxe.k(SourceFile:405) [1.8.1-pre2.jar:?]
	at bxe.p(SourceFile:382) [1.8.1-pre2.jar:?]
	at bss.r(SourceFile:1480) [1.8.1-pre2.jar:?]
	at bss.at(SourceFile:880) [1.8.1-pre2.jar:?]
	at bss.a(SourceFile:317) [1.8.1-pre2.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:124) [1.8.1-pre2.jar:?]

Example code:

/give @p minecraft:written_book 1 0 {author:"",title:"",pages:["{text:\"Click\",underlined:\"true\",clickEvent:{action:\"open_url\",value:\"file:///C:/\"}}"]}

Works As Intended

Marcono1234

2014-10-21, 09:50 PM

2015-12-25, 07:24 PM

2014-10-22, 10:34 AM

0

3

Unconfirmed

clickEvent, file, open-url, tellraw, url

Minecraft 1.8.1-pre2

-