I'm trying to update a maps command blocks to 1.13. I found a spot where it replaces a block with a command block, and the command block needs a command already in it. How do I replace a block with a command block with a command in it? This is what I got so far. /setblock 106 83 159 command_block replace {Command:/scoreboard players test EnderEnterprises Money 750}


In 1.13 the NBT needs to be attached directly to the item or block. So the correct formatting would be:

/setblock 106 83 159 command_block {Command:”/scoreboard players test EnderEnterprises Money 750”} replace
  • If this helped please accept it by clicking the tick next to the awnser. – Corsair 4 Life Feb 18 at 6:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.