Update Placeholders.md

This commit is contained in:
cj89898 2020-12-29 20:17:44 -06:00 committed by GitHub
parent 27d8ae03e1
commit 0db15f96ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 6 deletions

View File

@ -398,6 +398,7 @@ Allows you to check the inventory of a player for a certain item.
- `%checkitem_<modifier1>,<modifier2>,<...>%` - Returns if user has the item
- `%checkitem_amount_<modifier1>,<modifier2>,<...>%` - Returns amount of items the user has
- `%checkitem_remove_<modifier1>,<modifier2>,<...>%` - Removes the items from the players inventory - Can be used with amount, it just has to be after. (Ex. `%checkitem_amount_remove_<...>%`) Please be careful as it does REMOVE ITEMS FOR GOOD
- `%checkitem_give_<modifier1>,<modifier2>,<...>%` - Gives the player items. Returns true if successful, returns the number of items NOT given if unsuccessful. (When unsuccessful items can still be given, it just might not be all of them)
```
**Modifiers**
@ -405,16 +406,20 @@ You can combine different modifiers to check for different values.
Available modifiers are:
- `namecontains:<text>` - Checks if the item's display name contains `<text>`* \*\*
- `namestartswith:<text>` - Checks if the item's display name starts with `<text>`* \*\*
- `nameequals:<text>` - Checks if the item's display name equals `<text>`* \*\*
- `mat:<material>` - Checks if the item is `<material>` (For example: `STONE`)
- `amt:<number>` - Checks if the player has `<number>` of items
- `nameequals:<text>` - Checks if the item's display name equals `<text>`* \*\* ^
- `mat:<material>` - Checks if the item is `<material>` (For example: `STONE`) ^
- `amt:<number>` - Checks if the player has `<number>` of items ^
- `data:<number>` - Checks if the item has data `<number>` (Example: Red wool has `14` as data (`WOOL:14`)).
This is only for 1.12 and older!
- `custommodeldata:<number>` - Checks if the item has CustomModelData `<number>` This is only for 1.14 and newer!
This is only for 1.12 and older! ^
- `custommodeldata:<number>` - Checks if the item has CustomModelData `<number>` This is only for 1.14 and newer! ^
- `lorecontains:<text>` - Checks if the item's lore contains `<text>`*
- `loreequals:<text>` - Checks if the item's lore equals `<text>` Lines are separated by `|` ^
- `matcontains:<text>` - Checks if the item's material contains `<text>`*
- `enchantments:<enchantment=lvl>;<enchantment>` (`=lvl` is optional) (Uses vanilla minecraft enchantment names)
- `enchantments:<enchantment=lvl>;<enchantment>` (`=lvl` is optional) (Uses vanilla minecraft enchantment names) ^
- `enchanted` - Checks if the item is enchanted (with anything)
- `potiontype:<potiontype>` - Checks if the item has the potiontype ([Click here for potion types](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html)) ^
- `potionextended:<boolean>` - Checks if a potion is extended ^
- `potionupgraded:<boolean>` - Checks if a potion is upgraded ^
- `strict` - Requires `mat:` modifier. Strictly checks the name and lore for an item. (If a Stone named `Test` is in your inventory, and you're using `%checkitem_mat:stone,strict%`, it will return false)
- `inhand` - Check if the item is in the player's hand (Also checks off-hand)
@ -422,6 +427,10 @@ This is only for 1.12 and older!
**Only one can be used
^Supported by the `give` placeholder
To use Commas in strings you must escape them using `\` (Ex: `loreequals:Milk\, Eggs\, Bread`)
**Placeholders are supported, but they need to be in brackets! (Ex: `%player_name%` would be `{player_name}`**
----