
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
minecraft-items
Advanced tools
$ npm install --save minecraft-items
const minecraftItems = require('minecraft-items')
// Get an item
const diamond = minecraftItems.get(264)
const mooshroomSpawnEgg = minecraftItems.get('383:96')
const grass = minecraftItems.get('grass')
// Find items
const stoneVariants = minecraftItems.find(1)
const swords = minecraftItems.find('sword')
Returns data about the matching item. For example, here's a Jungle Boat
{
id: '446:0',
name: 'Jungle Boat',
meta: 0,
type: 446,
icon: 'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAALVBMVEUAAAAoHgqLaCVHLx9mRCyHWTp2TjOacVRSNyS4h2RpThyIZSSOZEJsUR12WB9O084eAAAAAXRSTlMAQObYZgAAAI9JREFUKFOl0TEZwzAMhFFROAqm8FMQBVMIBVMQBVEoBVMQhVAIhi7J0Mbp0tv0vtN0ZmYm2Wfu0ATAI6iBe++dBxC4u2+9D1ZwntLWxxpwd3e1H3B+NMVgDYl7ROgl9ABJRARqmlpDJQFZ2o+pBRiZSVVpHlflC4xKshLNY1+DkRSYac59DXYtoGuxG/yZN7Ieb5H4FFC4AAAAAElFTkSuQmCC'
}
Type: string
Uniquely identifies an item by including both type and meta. Formatted as type:meta.
Type: number
Primary numeric identifier for an item. If provided to get(), the item's data will be retrieved by assuming that meta is zero.
Type: string
For case insensitive (but otherwise exact) name match. i.e. get('diamond') is equivalent to get('DIAMOND') but not get('diamo').
Type: number
Describes a subtype of Minecraft item. Though many items do not have meta values (meta: 0), lots of items do use the meta value to describe themselves as variants on a theme. For example, Dirt is item 3 while Coarse Dirt is item 3:1.
Type: string
A PNG image for the item as a base64-encoded string.
Returns an array of items matching the provided key.
Type: string or number
A key by which to search the lists of items. May be a partial name, type, or id.
Returns data about every item as a hash
Type: string
Default: 'id'
Name of field by which to key the items. May be either 'id' or 'name'.
This package is built from data provided by http://minecraft-ids.grahamedgecombe.com/, so thanks Graham. :)
MIT
FAQs
Get Minecraft items by id, type, or name.
We found that minecraft-items demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.