-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy Effect #6101
Copy Effect #6101
Conversation
If it isn't too much to ask, maybe add the ability to copy up to certain length of a variable, like:
maybe with a better syntax but you get the gist of it |
Is there any practical use? |
This isn't very practical because lists are actually string-keyed maps in practice, so even if the indices happen to be numerical there's no guarantee they will resemble a proper order (e.g. you could have a list of 5 items with the indices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests? :)
Needs tests and name change (see ayham review) |
Description
This PR adds a new effect for copying objects over into variables. With this newly added effect, you can now copy a list into another and preserving its indices, plus copying over its sub-lists.
Example:
Target Minecraft Versions: any
Requirements: none
Related Issues: #3127, #4947