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

26. Make a World Change Over Time

In This Chapter

Spawn 100 animals with one command

Indicate that a mod has handled a command

Let a player turn a mod on and off

Listen to events when an item has been spawned

Determine the type and quantity of the item

Cancel an event to change its normal behavior

Examine a block to determine its material

Plant a tree sapling

The world in a Minecraft game is incredibly huge. A player can walk in the same direction for 30 million blocks before reaching an edge.

But as big as it is, the world remains almost entirely the same without a player’s actions. If you left an area and didn’t come back to it for weeks while exploring elsewhere, when you returned the hills, trees, and other objects would ...

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