adventurelib uses (get|set)_context for something like this. Ideally, it would be possible to make certain commands only feasible when particular conditions are met. For complex interactions (e.g., supplying a predicate to a partial command), it would also be helpful to disable other generally available commands.
adventurelib
uses(get|set)_context
for something like this. Ideally, it would be possible to make certain commands only feasible when particular conditions are met. For complex interactions (e.g., supplying a predicate to a partial command), it would also be helpful to disable other generally available commands.