2

I am trying to make a door open when a player is holding a nametag named "Key 1224", unfortunately, I may have done something very wrong or Minecraft is simply not working.

This is my command:

/testfor @a[r=10] {SelectedItem:{id:"minecraft:name_tag",tag:{display:{Name:"Key 1224"}}}}

I have set up my comparator system correctly - or at least I think I did - but it isn't working.

Could anyone help?

The command inputted into the block

The command not functioning

1 Answer 1

3

Your command block is set to Impulse and Needs Redstone, which means that it will activate once every time it is powered by redstone.

From your images, you do not appear to have anything set up to power the block (e.g: a redstone clock).

If you want the block to continually run on its own, you can change it to Repeat (it will repeatedly run when active) and Always Active (it doesn't need redstone to activate):

Repeat always active command block

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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