does anyone know how I would use the setblock command to set a conditional command block? I know that there is a NBT tag for it, I just dont know how to implement that into my current command. Appreciate all help!

My current command is

/setblock ~ ~-1 ~-3 chain_command_block 3 replace {Command:/testfor @p[score_Money_min=110]}


1 Answer 1


There is no tag for it. It's instead saved as the Damage value. See here for a list of values.

For your command, you'd add 8 to the Damage value, resulting in 11:

/setblock ~ ~-1 ~-3 minecraft:chain_command_block 11 replace {Command:"/testfor @p[score_Money_min=110]"}
  • That's what I meant, a damage value. Thanks for the help! Commented Mar 27, 2016 at 19:26

You must log in to answer this question.

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