Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue with conditional cmd blocks when changing direction #35
An issue has been noticed with how Smelt changes the direction of command blocks. When a command block is conditional, this breaks the conditional logic.
Workaround: Users can insert their own blank commands to push the chain of blocks 'around the corner' before the conditional chain is placed. I would prefer it if Smelt could do something to 'fix' this scenario.
There is one known solution that I've tested, which involves inserting generated command blocks when the direction is changed, and the one before the conditional block then uses /blockdata to try and reset the SuccessCount of the previous command. This will fail if the previous command failed (is already 0) and will succeed if the previous command succeeded (it was 1, so we could reset to 0).
There may be issues with this that need considering. Could this affect other commands or use cases?
It might be possible to also solve this using
I'm going to think about this some more.
Skaran pointed out that the
However, the correct command block type would have to be used,
In feature #12 I will hopefully be making it possible to know what the last command block coords and type are. This should make this possible.