can anyone help me how to make a clickable signs by right clicking it with a command block,i need a code on command block,i planning on making a sign shop buy/sell thing,if anyone know a command for it please help.:)
I am not entirly sure, but I think you would have to summon witherskulls in front of the sign and do /testfor @e[Type=Witherskull] and then simply do your shop commands at the output. Or you could fill their inventory up with a certain item, and set up a scoreboard for right clicking with it, and then just do a testfor for where they are!
Not really, as in 1.8 you can now click signs. First, you need to know the basic command
/setblock x y z sign 0 replace
The sign can be changed to a "standing_sign" or a "wall_sign". Then, we'll add the dataTags
/setblock x y z sign 0 replace {Text1:"text",Text2:"text",Text3:"Text",Text4:"Text"}
But that's not yet done. If you want it to have colors or clickEvents tellraw style, we'll add another pair of curly brackets and do it just like how we do it in tellraw, with a tiny modification
/setblock x y z sign 0 replace {Text1:"{text:\"Text\",color:color,clickEvent:{action:run_command,value:\"/command\"}}",Text2:"{text:\"Text\",color:color}",Text3:"{text:\"Text\",color:color}",Text4:"{text:\"Text\",color:color}"}
As you can see, there are inverted dashes placed in. This is because the inverted dashes indicate that the quotation mark next to it doesn't end the tag, but rather is contained within the tag. Also, note that I only placed one clickEvent tag throughout all the text tags (Oh, and btw, each Text tag represents a specific column on the sign) since it would affect the whole sign. Lastly, if you ever need to put quotation marks inside your text tag within the text tag (textception), then you can do this
hi cypher i dont know if this one is working because i tried copy them in my command block,but i have some picture with me and tell me which one i should put or add to the code you gave me plus i dont know the x,y,z
first sign block in the picture has a Clear Biome on the sign and i want any players click this sign to clear all entity dropped on the ground except players with this command /kill @e[Type=!Players] plus /say World has been cleared! with a red color text on the sentence.
second sign block in the picture has Disposal on the sign and i want players once they clcik the sign it clears theyre inventories with this command /clear @p also has a color text sentence in dark aqua or any color i want to choose,and a /say Your Inventories has been cleared! plus a color dark aqua on the sentence.
hi cypher i dont know if this one is working because i tried copy them in my command block,but i have some picture with me and tell me which one i should put or add to the code you gave me plus i dont know the x,y,z
first sign block in the picture has a Clear Biome on the sign and i want any players click this sign to clear all entity dropped on the ground except players with this command /kill @e[Type=!Players] plus /say World has been cleared! with a red color text on the sentence.
second sign block in the picture has Disposal on the sign and i want players once they clcik the sign it clears theyre inventories with this command /clear @p also has a color text sentence in dark aqua or any color i want to choose,and a /say Your Inventories has been cleared! plus a color dark aqua on the sentence.
please help!
The x y z are the coordinates where the block should be placed. They can be seen by pressing F3 (fn+F3 on Macs). Also, can you kindly give me the command that you are currently running? It looks like you are trying to execute to commands at the same time on a sign. Unfortunately, this is not yet possible. A workaround this problem is setting up a trigger objective and an execute command in which will only be run by players who have the trigger score.
1-has a Clear Biome on the sign,color blue on text on the sign=command is /kill @e[Type=!Player],plus the /say @p World has been cleared![command] on dark aqua color text on the sentence.
2-has a Disposal on the sign and color red text=command is /clear @p,plus /say @p Your inventories has been cleared! on color aqua on text.
also the sign should beon the 2 blocks high on the wall.
If you know anything on floating text but no sign in it you could do that,a clcikable text
hey guys.i copied this code on recabilly command block and hes paste bin website but i change some codes on his command block and i add my code to it with /kill @e[type=!Player] and it both worked but can anyone help me on changing the colors on text and add some /say command on command block with this text World has been cleared! in red color.below is my code..help me also on change the color on the text Clear Biome in the sign block into dark aqua or any color.and i need to put the sign on the wall but not standing on the command block pls help.
hello again, i found a way to add colors code and copy others but one thing i cannot figured out is to add another clickEvent by doing a /say command,can anyone help me how to add a second clickEvent run_command /say World has been cleared! in red text plus bold:true. If you know anything i dont know please help me solve my code.Below!
hello the8bitmonkey, sorry he has a /blockdata on his sign generator and i had a working /setblock copied mix and matches on different users but thanks 8bitmonkey ill try hes sometimes.:)
yes i know that set up by right clicking the sign it will place the redstone between the command block,i would like to know what command did you add in each command block?
Not really, as in 1.8 you can now click signs. First, you need to know the basic command
The sign can be changed to a "standing_sign" or a "wall_sign". Then, we'll add the dataTags
But that's not yet done. If you want it to have colors or clickEvents tellraw style, we'll add another pair of curly brackets and do it just like how we do it in tellraw, with a tiny modification
As you can see, there are inverted dashes placed in. This is because the inverted dashes indicate that the quotation mark next to it doesn't end the tag, but rather is contained within the tag. Also, note that I only placed one clickEvent tag throughout all the text tags (Oh, and btw, each Text tag represents a specific column on the sign) since it would affect the whole sign. Lastly, if you ever need to put quotation marks inside your text tag within the text tag (textception), then you can do this
Hope this helps!
first sign block in the picture has a Clear Biome on the sign and i want any players click this sign to clear all entity dropped on the ground except players with this command /kill @e[Type=!Players] plus /say World has been cleared! with a red color text on the sentence.
second sign block in the picture has Disposal on the sign and i want players once they clcik the sign it clears theyre inventories with this command /clear @p also has a color text sentence in dark aqua or any color i want to choose,and a /say Your Inventories has been cleared! plus a color dark aqua on the sentence.
please help!
The x y z are the coordinates where the block should be placed. They can be seen by pressing F3 (fn+F3 on Macs). Also, can you kindly give me the command that you are currently running? It looks like you are trying to execute to commands at the same time on a sign. Unfortunately, this is not yet possible. A workaround this problem is setting up a trigger objective and an execute command in which will only be run by players who have the trigger score.
2-has a Disposal on the sign and color red text=command is /clear @p,plus /say @p Your inventories has been cleared! on color aqua on text.
also the sign should beon the 2 blocks high on the wall.
If you know anything on floating text but no sign in it you could do that,a clcikable text
/setblock ~ ~1 ~ minecraft:standing_sign 8 replace { Text2:"{ text:\"Clear Biome\", clickEvent:{ action:run_command, value:\"/kill @e[type=!Player]\" } }"}
/setblock ~ ~1 ~ minecraft:wall_sign 8 replace { Text2:"{ text:\"Clear Biome\",color:dark_aqua,bold:true,clickEvent:{action:run_command, value:\"/kill @e[type=!Player]\" } }"}