Read one of a list
Read a word that must be one of your listed choices, in any case, and give it back spelt as you listed it.
A Minecraft element (a value) in Commands. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player uses /mode → Read one of a list: easy, normal, hard → Set the difficulty.
Also called
choice argument, one of, options, parse choice, pick word, enum
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- Text
- Choices
What it gives back
- Value
- Worked
- Problem