๐๏ธ tryashtar ยท 5 points ยท Posted at 05:46:44 on November 21, 2015 ยท (Permalink)
If I have some chest facing north, and I want it to face south, I would do a /setblock or a /fill and replace it.
However, this resets the entire block and trashes all its precious NBT (items, in this case).
Is there any way to modify the data value of a block in the world without altering its tile entity data? I'm ~99% sure there's no built-in way, but I would be deeply grateful for even a super-convoluted system or a setup that relies on bugs.
(What I'm trying to accomplish here is change the direction of chain command blocks on the fly dynamically, if that helps)
Thanks!
TheSteveKiller ยท 1 points ยท Posted at 07:47:31 on November 21, 2015 ยท (Permalink)
So you want it to work for none-specific command blocks?
๐๏ธ tryashtar ยท 1 points ยท Posted at 16:40:30 on November 21, 2015 ยท (Permalink)
Yeah, otherwise I'd just clone in two copies of it.
brianmcn ยท 1 points ยท Posted at 10:53:40 on November 21, 2015 ยท (Permalink)
Dunno if this bug still exists https://www.youtube.com/watch?v=KmjiTBbcWIw
๐๏ธ tryashtar ยท 1 points ยท Posted at 23:34:35 on November 21, 2015 ยท (Permalink)
It appears not. :(
I also poked around at some similar tricks and none of them still work after 1.8.
Spandeath ยท 1 points ยท Posted at 04:34:53 on November 22, 2015 ยท (Permalink)
Does the datatag "rotation" not work on chests?
Skylinerw ยท 1 points ยท Posted at 05:15:58 on November 22, 2015 ยท (Permalink)
"Rotation" is for entities, not tile entities. You can find all tag data for entities and tile entities here: http://minecraft.gamepedia.com/Chunk_format
Spandeath ยท 1 points ยท Posted at 05:23:50 on November 22, 2015 ยท (Permalink)
Gotcha, thanks.
Cubic_Lies ยท 1 points ยท Posted at 09:18:58 on November 28, 2015 ยท (Permalink)
If you're wanting to alter the direction of command blocks to change the program flow, you achieve that another way with blockdata altering the "auto" of the blocks. This will let you do if/then/else, goto's, while loops, and other sorts of branching. Blockdata used in this manner also has the benefit of not causing chunk updates, unlike setblock would.