-
Notifications
You must be signed in to change notification settings - Fork 1
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
Extend @context for more than just entities #3
Comments
I think it would be useful to extend support for documenting execution context, but I'm undecided whether it should be purely through Something that I don't think I've documented but I've already been doing a lot lately is using Extending |
I don't know which of these I'd prefer. To me most of these act as a "parameter" which is generally dynamic. I generally don't have usecases where it makes sense to define a hardcoded position, my view is generally along the lines of it's an arbitrary thing that the called function does not know, even if it is currently only called with a specific parameter. I also avoided execute temology intentionally. The function does not care if the rotation is gained by |
The context of a function can be more than just the entity
@s
.Currently, IMP only allows defining entity context.
I already adapted it in my projects and use
@context
like this:I suggest allowing
@context
for all of the following:dimension
entity
position
rotation
Not setting one of these options implies that it may be set to
any
thing.For position and rotation, set to
root
, if the context is required to be root (typically world spawn)@handles #minecraft:tick
and@handles #minecraft:load
imply:The text was updated successfully, but these errors were encountered: