Material Argument
This is a processor to handle the argument of Material
Format
menu-settings:
argument-processor: # Add the processor to the menu
<name>:
type: material
action:
- action
- action
- action
- action
invalid-action:
- action
- action
- action
Note
action
: the Action to be called when the argument length is not enoughinvalid-action
: the Action to be called when the argument is invalid
Example
menu-settings:
command: materialview
argument-processor:
material:
type: material
action: "tell: &cMaterial is required"
button:
slot: 0
id: "{arg_material}"
name: "&bMaterial"