Skip to main content

World API

Paper provides comprehensive APIs for world manipulation, chunk management, and environment control.

World Access

Getting Worlds

Creating Worlds

World Properties

Basic Properties

Game Rules

Time and Weather

Block Access

Getting and Setting Blocks

Block Data

Highest Block

Chunk Management

Loading and Unloading

Async Chunk Loading

Chunk Snapshot

Spawn Management

Spawn Location

Entity Spawning

Mob Spawning

Effects and Sounds

Playing Effects

Playing Sounds

World Borders

Paper World Configuration

Access Paper’s per-world configuration:

View and Simulation Distance

World Save

World Unload

Raids

Structure Location

Best Practices

Use async chunk loading for better performance when loading many chunks.
Always switch back to the main thread (using Bukkit.getScheduler().runTask()) after async operations before accessing most Bukkit APIs.
Chunk force-loading keeps chunks loaded even when no players are nearby. Use sparingly to avoid memory issues.

Next Steps

Entity API

Work with entities

Events API

Handle world events