Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-73436

Tellraw clickEvent open_url can't open files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 1.8.1-pre2
    • Fix Version/s: None
    • Confirmation Status:
      Unconfirmed

      Description

      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:/\"}}"]}
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            marcono1234 [Mod] Marcono1234
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: