O'Reilly logo

Minecraft™ Mod Development in 24 Hours, Sams Teach Yourself by Jimmy Koene

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

Adding Mobs to Your Structure

Many different structures, such as this one, are designed for entities to walk around. There are two commonly used ways to spawn entities. First is the manual spawning code and the second option is using a mob spawner.

Manual Spawning of Entities

It is possible to manually spawn a mob in your structure.

The advantages of manually spawning an entity are as follows:

Image It’s the easiest way to spawn an entity.

Image It’s the easiest way to only have a single copy of the entity.

It doesn’t require you to place an extra block. ...

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