All items icon override functions object for internal use
All items name override functions object for internal use
Creates group of creative items.
name of group
name of group in game
array of items in group
Specifies what items can be used to repair this item in the anvil
string or numeric item id
array of numeric item ids to be used as repair items
Adds item to creative inventory
string or numeric item id
amount of the item to be added, generally should be 1
item data
Creates armor item using specified parameters
string id of the item. You should register it via IDRegistry.genItemID call first
item name in English. Add translations to the name using Translation module, all translation to the item and block names are applied automatically
texture data used to create item
general armor item parameters object, the armor type there is required
Creates eatable item using specified parameters
string id of the item. You should register it via IDRegistry.genItemID call first
item name in English. Add translations to the name using Translation module, all translation to the item and block names are applied automatically
texture data used to create item
additional item parameters
amount of hunger restored by this food. Default value is 1
if true, the item will not be added to creative. Default value is false
maximum item stack size. Default value is 64
Creates new item using specified parameters
string id of the item. You should register it via IDRegistry.genItemID call first
item name in English. Add translations to the name using Translation module, all translation to the item and block names are applied automatically
texture data used to create item
additional item parameters
if true, the item will not be added to creative. Default value is false
maximum item stack size. Default value is 64
Creates throwable item using specified parameters
string id of the item. You should register it via IDRegistry.genItemID call first
item name in English. Add translations to the name using Translation module, all translation to the item and block names are applied automatically
texture data used to create item
additional item parameters
Applies several properties via one method call
numeric item id
Gets NativeItem instance that can be used to apply some properties to the item
string id of the item
NativeItem instance associated with this item
numeric item id
maximum damage value for the specified item
numeric item id
maximum stack size for the specified item
numeric item id
item data
no longer supported, do not use this parameter
current item name
string id of the item
item numeric id by its string id or just returns its numeric id if input was a numeric id
Invoke click on the block in world
Coords of click on the block
item which used on the block
if true, mod ItemUse callback will be not executed
Player who clicked on the block
numeric item id
true if given item is vanilla item, false otherwise
numeric item id
no longer supported, do not use this parameter
true, if an item with such id exists, false otherwise
Registers function to be called when item is dispensed from dispenser.
string or numeric id of the item
function that is called when such an event occurs
Registers item id as requiring item icon override and registers function to perform such an override
string or numeric id of the item
function that is called to override item icon. Should return Item.TextureData object to be used for the item. See Callback.ItemIconOverrideFunction documentation for details
Registers function to perform item name override
string or numeric id of the item
function that is called to override item name. Should return string to be used as new item name
Registers function to be called when player uses item in the air (not on the block)
string or numeric id of the item
function that is called when such an event occurs
Registers function that is called when throwable item with specified id hits block or entity
string or numeric id of the item
function that is called when such an event occurs
Same as Item.registerThrowableFunction, but supports numeric ids only
Registers function that is called when user touches some block in the world with specified item
string or numeric id of the item
function that is called when such an event occurs
Same as Item.registerUseFunction, but supports numeric ids only
Registers function to be called when player completes using item that has maximum use time set with Item.setMaxUseDuration function
string or numeric id of the item
function that is called when such an event occurs
Registers function to be called when player doesn't complete using item that has maximum use time set with Item.setMaxUseDuration function. Vanilla bow uses this function with max use duration of 72000 ticks
string or numeric id of the item
function that is called when such an event occurs
Allows item to be put in offhand slot
string or numeric item id
Sets item creative category
string or numeric item id
item category, should be one of the Native.ItemCategory values
Specifies how the item can be enchanted
string or numeric item id
enchant type defining when enchants can or cannot be applied to this item, one of the Native.EnchantType
quality of the enchants that are applied, the higher this value is, the better enchants you get with the same level
Sets item as glint (like enchanted tools or golden apple)
string or numeric item id
if true, the item will be displayed as glint item
Allows to click with item on liquid blocks
string or numeric item id
if true, liquid blocks can be selected on click
Sets item maximum data value
string or numeric item id
maximum data value for the item
Limits maximum use duration. This is useful to create such items as bows
string or numeric item id
maximum use duration in ticks
Sets additional properties for the item, uses Minecraft mechanisms to set them. Full list of properties is currently unavailable
string or numeric item id
JSON string containing some of the properties
Specifies how the player should hold the item
string or numeric item id
if true, player holds the item as a tool, not as a simple item
Sets animation type for the item
string or numeric item id
use animation type, one of the Native.ItemAnimation values
Generated using TypeDoc
Module used to define items and their properties