Discuss Minecraft's scripting and modding capabilities, including APIs, tools, customization, automation, and creator workflows. Share ideas and feedback on how players and creators can extend and customize Minecraft.

27

Coding codes in the command block

2 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    I believe you can already do that:

    /give @p command_block{Command:"say h",auto:1b}

     

    The only thing you can't do, is make it conditional.

  • 1
    Registered User commented
    Comment actions Permalink

    You're right, it's already possible. But the tag actually looks like this:

    /give @p command_block{BlockEntityTag:{Command:"say this already exists"}}