2

So, I'm attempting to create an attack for a boss fight I'm making. The boss can spawn a square of redstone blocks and dispensers which contain arrows. I want the dispensers to face west.

So I type this command:

fill 1994 143 1972 dispenser{Facing:west,Items:[{id:"arrow",Count:64b,Slot:0b}],}

The result looks like: Dispensers.

The dispensers are facing north.

No matter what I put for Facing, the dispensers are always facing north and I can't do anything about it.

Is there a way I can fix this?

Any help appreciated.

1 Answer 1

3

There’s a difference between block states which are denoted by [] and NBT data denoted by {}.

Block states are the things that you can see when you open the f3 menu, and facing is a block state, not NBT data. Try something like this instead:

fill x1 y1 z1 x2 y2 z2 dispenser[facing=west]{Items:[...]}
3
  • I'm unable to use x, y and z 2 as it just turns red when I type them in
    – beachweak
    Commented Jun 3, 2021 at 21:36
  • Those are just temporary values. Replace them with the x y and z coordinates of the two corners that you want to fill between
    – Jam
    Commented Jun 3, 2021 at 21:38
  • As a separate solution, hold control while pressing your Pick Block key to copy any NBT data a block has. Doing this will also copy the items inside of a dispenser
    – Jam
    Commented Jun 3, 2021 at 21:40

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.