Item Filters: Difference between revisions

Jump to navigation Jump to search
718 bytes added ,  17:01, 19 December 2019
Add #!recipe filter info
m (Added "toolType (The type of tools shown in #!item)" under Usable Properties, was a missing property.)
(Add #!recipe filter info)
Line 1: Line 1:
Item filters can be used to reduce the size of a list of items. Current commands that support them are #!items, #!inv, and #!ginv (with #!gbsearch, #!gmsearch, and #!recipe pending).
Item filters can be used to reduce the size of a list of items. Current commands that support them are #!items, #!inv, #!ginv, #!gbsearch, #!gmsearch, and #!recipe.


Examples:
Examples:
Line 17: Line 17:
*To get the list of non-donor items:
*To get the list of non-donor items:


  #!items donate:undefined
  #!items donate:undefined donator:undefined


*To get the list of donor items:
*To get (most of) the list of donor items:


  #!items donate:true
  #!items donate:true
* To get all the recipes that use coal anywhere in the crafting tree:
#!recipe uses:coal --raw


Usable Properties:
Usable Properties:
Line 39: Line 43:
*fish (Either Object or undefined; same as type:fish)
*fish (Either Object or undefined; same as type:fish)
*plural (The plural name of the object)
*plural (The plural name of the object)
*tradable (true or false value showing if an item can be traded)
*prefix (The grammatical prefix of the object; usually <code>a</code> or <code>an</code>)
*prefix (The grammatical prefix of the object; usually <code>a</code> or <code>an</code>)
*attributes (Either Object or undefined; whether or not the object boosts any attributes)
*attributes (Either Object or undefined; whether or not the object boosts any attributes)
Line 47: Line 50:
*skillXp (The static boost to skill xp granted by Jades in tools)
*skillXp (The static boost to skill xp granted by Jades in tools)
*gems (The enchantments on an item; is a string like JJ for 2 Jades)
*gems (The enchantments on an item; is a string like JJ for 2 Jades)
*sockets (The number of gem sockets on an item: 1, 2 or undefined)
*sockets (The number of gem sockets on an item: 1, 2, or undefined)
*enchants (An array of enchantments in the form [sx;4,as;10] (don't try to use this; just use gems))
*enchants (An array of enchantments in the form [sx;4,as;10] (don't try to use this; just use gems))
*suffix (The end of the name on meta items, such is 2SRR+23)
*suffix (The end of the name on meta items, such is 2SRR+23)
Additional properties specific to #!recipe:
* canCraft (true or false value showing if you're allowed to craft that item; the gray items in the list are false)
* hasMats (true or false value showing if you have the materials to craft that item right then)
* level (Specifies the crafting level instead of the item level)
* uses (Item name or item ID used in the crafting recipe; this isn't a property so much as a special search)


Notes:<br>
Notes:<br>
Line 58: Line 68:
If you want to search for multiple words, simply remove the spaces like <code>name:maplelog</code>.<br>
If you want to search for multiple words, simply remove the spaces like <code>name:maplelog</code>.<br>
If you leave the value (the right side of the <code>:</code>) empty, all items with the property will be matched.<br>
If you leave the value (the right side of the <code>:</code>) empty, all items with the property will be matched.<br>
If a value is a number, like level, you can use <, <=, >, and >= to do inequality searches like <code>level:<:100 cost:>:0</code>.
If a value is a number, like level, you can use <, <=, >, and >= to do inequality searches like <code>level:<:100 cost:>:0</code>.<br>
If <code>--raw</code> is used in a recipe search, all the properties will reflect the raw recipes rather than the normal recipes, so, <code>uses:ironingot --raw</code> will return nothing as the raw recipes only use <code>ironore</code>.
36

edits


Navigation menu