-5

So i basically want a command that will make this Yellow Stage Light repeatedly, forever, turn into this Blue Stage Light going back and forth between them

I already have a circuit built at the moment that works as far as triggering command blocks when i need them to be, but the command itself what eludes me.

Redstone Circuit

also, i want it spawning at ~ ~7 ~-6 from the command block. every second, the block will be replaced again with another command, using the same player heads in reverse order.

Any ideas?

4
  • 2
    Have you made any effort into attempting to solve it on your own? What have you tried? Could you edit your question with the commands you used, and your thinking?
    – aytimothy
    Feb 27, 2018 at 0:28
  • well, i've tried using setblock, which didn't work, and every time i use fill commands it says "cannot place block outside world" even though my coordinates are good :/ Feb 27, 2018 at 0:30
  • I also used structure blocks, which actually worked, but i wasn't a big fan of the constant raining of item drops every time a block got replaced Feb 27, 2018 at 0:30
  • 2
    You still didn't provide the commands you tried. Just the general category. And no, if you get a "can't place outside world" feedback, your coordinates were not correct. Feb 27, 2018 at 6:37

1 Answer 1

0

You can use the /setblock command to achieve this as it takes NBT tags as an argument.

/setblock <x> <y> <z> <block> [dataValue|state] [oldBlockHandling] [dataTag]

Also, note that if you are using relative commands, you should note that that "relative" position changes as each command block steps since you can't have more than one command block in a single block.


If you want the solution:

/setblock ~ ~7 ~-6 minecraft:skull 3 replace {Owner:{Id:"6c4b9de4-d5c4-4f56-ad9e-c3ec2d7423a6",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJjYWE1NGJkMGJkY2ZkNzdjYjA2YzI1OGM3YzViODNiNTI2NzE4ZDA0ZDg0ZTRkMTg3YjZkOTcwMjYyYyJ9fX0="}]}},SkullType:3,Rot:0}

/setblock ~X ~7 ~-Y minecraft:skull 3 replace {Owner:{Id:"e940ac4c-f7a9-9a34-e25a-29fdb50a3c47",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTYzMGMyOGQ2YzhmZjIxNjZhMWFjYjc5NTMzMjJlOWY2ZDg5OWUyOGM2MWJkM2E3NzZhZTQ3ODQ5YWMyYWEifX19"}]}},SkullType:3,Rot:0}

Where x and y is another relative position. So if your second command block is two blocks east, than you would want to want the Y-coordinate increased by 2, etc.


Edit: Um...

  • Are you running the commands at the same time? Because this means that your change did happen, but it happened too fast to be rendered.
  • Have you tried destroying (/setblock <x> <y> <z> minecraft:air) and then replacing it? You can do that all in one tick with chained command blocks.

Just two possible causes I could think off the top of my mind.

4
  • yeah, i tried this already, but the blocks dont replace eachother everytime the command cycles without being destroyed manually Feb 27, 2018 at 1:31
  • just says "block couldn't be placed" Feb 27, 2018 at 1:34
  • 1
    Try exactly these commands. You probably didn't have the replace parameter. Feb 27, 2018 at 6:38
  • 1.13 syntax: /setblock <command> <block>[<blockstates>]{<dataTag>}
    – pppery
    Jul 16, 2019 at 14:07

You must log in to answer this question.

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