0

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}

2

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
| improve this answer | |
  • If this helped please accept it by clicking the tick next to the awnser. – Corsair 4 Life Feb 18 '19 at 6:46

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