October 2015
Beginner
400 pages
10h 9m
English
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 Spigot 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 Spigot 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 ...
Read now
Unlock full access