Repository navigation
Syntax
Jack William Kerr edited this page May 15, 2026
·
4 revisions
| Symbol | Meaning | Example(s) |
|---|---|---|
plugin:function(args) |
Defines a function for items to be evaluated against. |
type(diamond), hopplet:name("Secret Item")
|
& |
Two or more conditions must all be true. | type(diamond_sword) & ench(sharpness) |
| |
Any of two or more conditions must be true. | type(gold_ingot) | thrower(Fruitloopins) |
! |
Negates a statement. | !enchanted() |
() |
Defines an expression to be evaluated separately. | type(gold_ingot) | (author(Fruitloopins) & generation(copy_of_copy)) |
" |
Indicates that an argument should be treated as a literal string including spaces. Its good practice to use this for all arguments. | ench("sharpness >= 4") |
Comparators can be used within arguments to specify ranges and constraints that values must meet.
For example: durability(>=75, <=90)
This means the item must have between 75% and 90% durability remaining.
| Comparator | Meaning |
|---|---|
| = | Value is equal to the specified value. |
| != | Value is not equal to the specified value. Must be placed in quotes. |
| > | Value is greater than the specified value. |
| < | Value is less than the specified value. |
| >= | Value is greater than or equal to the specified value. |
| <= | Value is less than or equal to the specified value. |