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}


1 Answer 1


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. Feb 18, 2019 at 6:46

Not the answer you're looking for? Browse other questions tagged .