Origins (Fabric)

Origins (Fabric)

17M Downloads

[Feature request] "Is selecting" origin sub-command

JoshieGemFinder opened this issue ยท 1 comments

commented

A command that exposes whether or not a player is currently selecting their origin would be very useful for functions/datapacks.

Since it isn't feasible to check whether or not a player/entity has origins:empty dynamically for each layer (automatically including/excluding any layers that are added or removed) using the current command set, this would be the best way for a function to check whether or not a player is currently selecting their origin.

This is relevant because there are many reasons a datapack would like to check whether or not a player is currently selecting their origin (e.g. a timer that only starts counting down after they've selected an origin, or players being put somewhere separate while selecting and moved once they're done)

The command would return 1 if the player is currently selecting their origin or 0 if they aren't; the command will fail if the entity doesn't exist. This is so the output can be properly read by execute [...] store [result/success] [...] run [...].

commented

This should be easy to implement since there's already an underlying system that determines whether a player is actively selecting an origin