1
Problem with JSON, sign and open_url function
So I was messing around with setblock command (all in latest snapshot). My goal is to make a sign with 4 lines of text. The last line is red and has the text : "this link" (All of the text shows up correctly with the good color and stuff). I used the open_url function within "clickEvent" to open a url to planetminecraft.com.
Ref of the wiki (Raw JSON Text part): http://minecraft.gamepedia.com/Commands#Raw_JSON_Text
It's on the wiki that I got the open_url info and I don't understand why my command doesn't work, here it is:
Hope it doesn't look too messy lol. You should try it in a command block just to understand how it looks, it's not that complicated to visualize though:
Can somebody help me with fixing the open_url?
Ref of the wiki (Raw JSON Text part): http://minecraft.gamepedia.com/Commands#Raw_JSON_Text
It's on the wiki that I got the open_url info and I don't understand why my command doesn't work, here it is:
setblock ~ ~-1 ~ minecraft:standing_sign 0 replace {Text1:"For more",Text2:"information,",Text3:"right click",Text4:"{text:\"this link\",color:dark_red,italic:true,clickEvent:{action:open_url,value:\"http://www.planetminecraft.com\"}}"}
Hope it doesn't look too messy lol. You should try it in a command block just to understand how it looks, it's not that complicated to visualize though:
For more
information,
right click
this link
information,
right click
this link
Can somebody help me with fixing the open_url?
Create an account or sign in to comment.
6
Well thanks for helping If it's part of books and tellraw but not signs, I suppose I misunderstood the snapshot review :3
You need to understand that JSON is a functional part of java. It is just text put into a formatted database. Minecraft then reads this data and does stuff with it. That is why action:open_url will not work. It is not part of the minecraft code therefore it doesn't get parsed.
[deleted]
ehmm... it's part of the mc code, it works with books (as of the latest snapshot) and has worked with /tellraw for a while now.
I don't believe open_url works with signs