Skip to content

Maroon28/CheckItem-Expansion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CheckItem-Expansion

Placeholder:

  • %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_<...>%)
  • %checkitem_give_<modifier1>,<modifier2>,<...>% - Gives the player an item. Returns yes if successful, returns amount of items NOT given if unsuccessful.

Modifiers:

  • namecontains:<string>
  • namestartswith:<string>
  • nameequals:<string>*
  • mat:<material>*
  • amt:<integer>*
  • data:<integer>*
  • custommodeldata:<integer>*
  • lorecontains:<string>
  • loreequals:<string> (Separate lines with |)*
  • matcontains:<string>
  • enchantments:<enchantment=lvl>;<enchantment> (=lvl is optional)*
  • enchanted
  • potiontype:<potiontype>*
  • potionextended:<boolean>*
  • potionupgraded:<boolean>*
  • strict
  • inhand
  • inslot:<integer> Valid Slots

Ex: %checkitem_mat:STONE,amt:1,data:2,nameequals:&6Test%

To use commas in strings, escape them with \ (Ex: nameequals:This\, is a test)

PAPI Placeholders work, you just need to put them in {} instead of %%

*Works with give placeholder.

About

This expansion allows checking if items are in the inventory of the target player

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%