© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
AdmincraftA
Admincraft•7mo ago•
1 reply
BenMonkeyMommy

Command Help

Using MC version 1.20.6, Java. Keep in mind, I have found that due to using Essentials, I have to put "minecraft:" into most commands to get them to work (example: must use "/minecraft:tp" and not "/tp").

I am trying to use a command block to give me a clickable sign that runs two commands. I have used the code I know, and I have tried using modified code from YT tutorials...and I cannot get it to work.

The 2 commands I am trying to run when the sign is clicked is 1) kill the minecart the player is inside of....2) tp the player ~ ~0.5 ~ from their current location.

Here is what I am putting into the command block...

minecraft:give @p[dx=0,dy=2,dz=0] birch_sign[block_entity_data={id:'sign",front_text:{messages:["",{"text":"Click Here To","color":"aqua","bold":true,"click_event":{"action":"run_command","command":"minecraft:kill@e[type=minecart,c1,r3]"}},{"text":"Exit Cart!","color":"aqua","bold":true,"click_event":{"action":"run_command","command":"minecraft:tp @p[dx=0,dy=2,dz=0] ~ ~0.5 ~"}},""]}}] 1

The first two parts (the minecraft:give" and "@p[dx=0,dy=2,dz=0]" ) are fine...but the rest of it remains red inside the command block text line.

Any and all help would be greatly appreciated. Thank you!
AdmincraftJoin
10,704Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Command Block help
AdmincraftAAdmincraft / questions
10mo ago
Custom /help command
AdmincraftAAdmincraft / questions
3y ago
Help with /reload command
AdmincraftAAdmincraft / questions
2y ago
Help adding a custom tp command
AdmincraftAAdmincraft / questions
3y ago