Updated setCommandBlock's 3rd argument #3356
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The 3rd argument is now a dict that needs users to set several options on the command block, not just a boolean called
trackOutput
.Please consider dynamically generating the index.d.ts from now on.
This file is seemingly manually written as its outdated in some parts, compared to docs/api.md (which contains the latest docs).
This makes it very difficult to work with TypeScript, as some functions make no sense. I have spent 5 whole hours trying to figure out a way I could execute commands longer than 256 characters, being unable to set the command on the command block even after engineering 4 completely different methods of doing it, and I've only now just found out there's a convenient argument to the
setCommandBlock
to do just that.I've spotted other cases where the completion is wrong earlier but I can't list any of them from the top of my head.
You could use JSDoc, and in fact you kind of should as it would also provide ordinary JavaScript users with completion. Then there are tools to automatically generate an
index.d.ts
from the JSDoc inside a project.