I'm working on a map and I'm having trouble with an important building block. I need something that will activate a command block once after it (and an area around it) is cloned. The problem is I won't know the exact coordinates of the command block to activate as it will be cloned in from a random template, so I need something that can be cloned along with the command block. (It's fine if the command block is held in an active state within the template.)
This may not be fully possible, in which case I'll need to find something with a minimal amount of exact positioning as there will be other redstone stuff going on around these blocks. The best idea I've come up with so far is to place something just below the bottom of the template that doesn't get cloned or connect to a specific block somewhere within the template so I can place a redstone block in a known spot after cloning, but both methods are somewhat space-consuming.
On a similar note, setblock clocks often seem to break when the chunk they're in gets unloaded whether from leaving the area or leaving the world. Is there any way to reset them when they get reloaded?
so there is a template with a commandblock in it and when you clone that template somewhere else you want the command block to activate in that new place right?
you can do something like this:
When you clone the glass template the torch will turn on because the other torch is no longer there to keep it off and so the command block will activate.
Also if you keep the clocks within spawn area they will never be unloaded and will never stop even if you go far away. Hopper clocks don't break ever.
Yeah, that's the idea, but I'm trying to find something that doesn't require anything extra outside of the template area.
Actually, I just thought of one possibility although it may take up too much space. Mobs and items aren't cloned, so a trapped mob or a persistent item on a pressure plate would create a signal when cloned.
I was pretty sure the fast clock would break when reloading the world even in the spawn chunks, but I just tested it again and it seems to work fine, so that's good. (Hopper clocks do seem to be the most reliable and least processor-intensive though. They're just a little slow for a couple of things.)
Thanks. That's good to know. I was testing some stuff and a mob on a pressure plate doesn't take up as much room as I thought it might, but BUD's are smaller so that's probably the way to go.
This may not be fully possible, in which case I'll need to find something with a minimal amount of exact positioning as there will be other redstone stuff going on around these blocks. The best idea I've come up with so far is to place something just below the bottom of the template that doesn't get cloned or connect to a specific block somewhere within the template so I can place a redstone block in a known spot after cloning, but both methods are somewhat space-consuming.
On a similar note, setblock clocks often seem to break when the chunk they're in gets unloaded whether from leaving the area or leaving the world. Is there any way to reset them when they get reloaded?
you can do something like this:
When you clone the glass template the torch will turn on because the other torch is no longer there to keep it off and so the command block will activate.
Also if you keep the clocks within spawn area they will never be unloaded and will never stop even if you go far away. Hopper clocks don't break ever.
Actually, I just thought of one possibility although it may take up too much space. Mobs and items aren't cloned, so a trapped mob or a persistent item on a pressure plate would create a signal when cloned.
I was pretty sure the fast clock would break when reloading the world even in the spawn chunks, but I just tested it again and it seems to work fine, so that's good. (Hopper clocks do seem to be the most reliable and least processor-intensive though. They're just a little slow for a couple of things.)