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

19. Make One Mob Ride Another

In This Chapter

Create more than one type of mob

Let NetBeans detect and fix errors

Change a mob’s age from adult to baby

Make one mob a passenger of another

Customize a mob with potion effects

Make a potion effect permanent

The first Minecraft mods you create in this book all involve mobs—the animals and foes who make the game world a more lively place. Spawning a mob and making changes to a mob you encounter in the game are a good starting place for this kind of programming.

Each mob you can encounter in Minecraft can be created and manipulated as an object in Java.

The class names are in the org.bukkit.entity package and are largely what you’d expect them to be, such as Zombie, Villager, Creeper ...

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