Skip to content

Commands

C4 edited this page Oct 6, 2021 · 2 revisions

/diet add

Arguments: <target> <food group> <value>

Example: /diet add Player1 proteins 0.35

Adds the specified value as a percentage to food group to target.

Note: value goes from 0-1, 0 being 0% and 1 being 100%.

/diet subtract

Arguments: <target> <food group> <value>

Example: /diet subtract Player1 proteins 0.35

Subtracts the specified value as a percentage from food group from target.

Note: value goes from 0-1, 0 being 0% and 1 being 100%.

/diet set

Arguments: <target> <food group> <value>

Example: /diet set Player1 proteins 0.35

Sets food group of target to the specific value as a percentage.

Note: value goes from 0-1, 0 being 0% and 1 being 100%.

/diet get

Arguments: <target> <food group>

Example: /diet get Player1 proteins

Gets the percentage value of food group of target.

/diet reset

Arguments: <target>

Example: /diet reset Player1

Resets all food groups of target to the default values from the configuration.

/diet pause

Arguments: <target>

Example: /diet pause Player1

Pauses the diet system for target. They will no longer receive dietary effects nor gain/lose any diet values and their GUI will be grayed out.

/diet resume

Arguments: <target>

Example: /diet resume Player1

Resumes the diet system for target. They will receive dietary effects again and begin to gain/lose diet values.

/diet export

All export commands will export a diet.csv file to the logs folder.

/diet export group

Arguments: <food group>

Example: /diet export group proteins

Exports a list of foods and their diet values (when eaten by the command sender) from the specified food group.

/diet export mod_id

Arguments: <mod id>

Example: /diet export mod_id minecraft

Exports a list of foods and their diet values (when eaten by the command sender) from the mod with the specified mod id.

/diet export uncategorized

Arguments: None

Example: /diet export uncategorized

Exports a list of all foods that do not have any diet values.