From 0db15f96ae3b7bd2fdb9cdd93d03ae169faf8d9a Mon Sep 17 00:00:00 2001 From: cj89898 Date: Tue, 29 Dec 2020 20:17:44 -0600 Subject: [PATCH] Update Placeholders.md --- wiki/Placeholders.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/wiki/Placeholders.md b/wiki/Placeholders.md index aec13e5..7b42d17 100644 --- a/wiki/Placeholders.md +++ b/wiki/Placeholders.md @@ -398,6 +398,7 @@ Allows you to check the inventory of a player for a certain item. - `%checkitem_,,<...>%` - Returns if user has the item - `%checkitem_amount_,,<...>%` - Returns amount of items the user has - `%checkitem_remove_,,<...>%` - 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_,,<...>%` - 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:` - Checks if the item's display name contains ``* \*\* - `namestartswith:` - Checks if the item's display name starts with ``* \*\* -- `nameequals:` - Checks if the item's display name equals ``* \*\* -- `mat:` - Checks if the item is `` (For example: `STONE`) -- `amt:` - Checks if the player has `` of items +- `nameequals:` - Checks if the item's display name equals ``* \*\* ^ +- `mat:` - Checks if the item is `` (For example: `STONE`) ^ +- `amt:` - Checks if the player has `` of items ^ - `data:` - Checks if the item has data `` (Example: Red wool has `14` as data (`WOOL:14`)). -This is only for 1.12 and older! -- `custommodeldata:` - Checks if the item has CustomModelData `` This is only for 1.14 and newer! +This is only for 1.12 and older! ^ +- `custommodeldata:` - Checks if the item has CustomModelData `` This is only for 1.14 and newer! ^ - `lorecontains:` - Checks if the item's lore contains ``* +- `loreequals:` - Checks if the item's lore equals `` Lines are separated by `|` ^ - `matcontains:` - Checks if the item's material contains ``* -- `enchantments:;` (`=lvl` is optional) (Uses vanilla minecraft enchantment names) +- `enchantments:;` (`=lvl` is optional) (Uses vanilla minecraft enchantment names) ^ - `enchanted` - Checks if the item is enchanted (with anything) +- `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:` - Checks if a potion is extended ^ +- `potionupgraded:` - 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}`** ----