O'Reilly logo

Minecraft Mods Programming Absolute Beginner’s Guide by Rogers Cadenhead

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

21. Transmute Materials in an Inventory

In This Chapter

Work with materials in Minecraft

Define command-line arguments in plugin.yml

Read arguments in a mod

Get the items in a player’s inventory

Loop through the items

Transform one material into another

Use the Bukkit Javadoc documentation

This chapter moves away from mobs into materials, the inanimate stuff that takes up space in the Minecraft world. Writing a mod that manipulates the physical world in the game requires a thorough grounding in the Material class in the org.bukkit package of the Bukkit class library.

The Transmuter mod you create transforms material from one type to another at the control of the player. The original material must be present in the player’s inventory ...

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