As you know, you can teleport to an armor stand with /tp @s [type=armor_stand] (or something along the lines of that.)

But, I'm trying to use the armor stand location in a /fill command where I use it as the "to" section (e.g. /fill ~ ~ ~ [armor stand location here])

I'm on bedrock and I'm not sure how to use it.

  • 1
    The /fill command only accepts integer coordinates of the corners of the area. You can't fill 'to' an entity. There's probably a work-around that I don't dare to write, but you can't do this with just /fill.
    – AMJ
    Mar 28 '20 at 7:12

There are a few ways you can do it, I'm going to try to not be confusing and I'll explain each step.

3x3x3 fill of a type of block:

/execute @e[type=armor_stand] ~ ~ ~ <gets armor stands coorinates>

/execute @e[type=armor_stand] ~ ~ ~ fill ~-1 ~ ~-1 ~1 ~3 ~1 -{block of choice}-
<fills x-1 y-0 z-1 and x+1 y+3 z+1 with block of choice>

Fill from the armor stand to a certain point:

/execute @e[type=armor_stand] ~ ~ ~ fill ~ ~ ~ -{x}- -{y}- -{z}- -{block of choice}-

If you're attempting to make a tool to fill from one stand to another that I don't think is even possible. Hope this helped ;)


Unless I'm missing something fundamentally different about commands in Bedrock edition, this answer for Java edition should apply here as well: Need 2 Positions to Clone With /execute

Commands are always executed at one position, so you can't use two sets of relative coordinates. The solution is to first clone one relative location to a fixed area, for example 0 0 0 (make sure that the chunks are always loaded using /tickingarea) and then cloning from that fixed area to your other relative location. Afterwards, you can delete the temporary copy at 0 0 0 again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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