O'Reilly logo

A Beginner’s Guide to Writing Minecraft Plugins in JavaScript by Walter Higgins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix D. Items Reference

The items module provides a suite of useful functions for creating item stacks, which are collections of objects that are typically stored in a player’s inventory. Each of the functions in this appendix can be called in three ways:

Image If there is no parameter supplied, the function will return the equivalent material, that is, one of the values of the net.canarymod.api.inventory.ItemType type. For example, calling items.diamondOre() will return the net.canarymod.api.inventory.ItemType.DiamondOre value, which can be used anywhere the CanaryMod API expects a net.canarymod.api.inventory.ItemType object.

If a number is supplied ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required