Represent a minecraft item with its associated data
const Item=require("prismarine-item")("1.8");
const ironShovelItem=new Item(256,1);
console.log(ironShovelItem);
const notchItem=Item.toNotch(ironShovelItem);
console.log(notchItem);
console.log(Item.fromNotch(notchItem));
Take an item
in the format of the minecraft packets and return an Item
instance.
Take an Item
instance and return it in the format of the minecraft packets.
Numerical id.
Number which represents different things depending on the item. See http://www.minecraftwiki.net/wiki/Data_values#Data
Buffer.
Return true if items are equal.
- 1.16 support (thanks @DrakoTrogdor)
- typescripts definitions (thanks @IdanHo)
- 1.15 support
- 1.14 support
- allow unknown items
- 1.13 support
- make nbt default to null
- display the item id if it is not found in minecraft data
- bump mcdata
- bump dependencies
- Import from mineflayer