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

18. Spawn a Mob

In This Chapter

Use the Bukkit library to create a mod

Design a mod framework

Respond to a player command

Generate random numbers

Work with (x,y,z) locations in the game world

Spawn a mob at a specified location

Find the block at a location

Determine the material of a block

Customize a chicken

Armed with the Java knowledge that is filling your brain, assuming you didn’t skip past the last 14 chapters, you are ready to put it to use writing Minecraft mods.

One of the strengths of Java is that it employs object-oriented programming, which makes it possible to acquire the capabilities of an existing Java class through inheritance. You inherit the code through the extends keyword, and everything the existing class ...

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