> For the complete documentation index, see [llms.txt](https://sonic-rokas.gitbook.io/easybungee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sonic-rokas.gitbook.io/easybungee/for-developers/example-worlds.md).

# Example - Worlds

#### 1.1 Drop item in a server's world

```
getWorld().dropItem(new SpigotLocation(0,100,0,new SpigotWorld(serverName,worldName)),new SpigotItem("EMERALD_BLOCK",1)).send();
```

#### 1.2 Play sound in a server's world

```
location.getWorld().playSound(new SpigotLocation(0,100,0,new SpigotWorld(serverName,worldName)),new SpigotSound("EXPLOE",1.0F,1.0F)).send();
```

#### 1.3 Spawn an entity in a server's world

```
location.getWorld().spawnEntity(new SpigotLocation(0,100,0,new SpigotWorld(serverName,worldName)),entityType).send();
```

#### 1.4 Get a specific block in a server's world

```
location.getWorld().getBlockAt(new SpigotLocation(0,100,0,new SpigotWorld(serverName,worldName))).send(block -> block);
```

#### 1.5 Breaking a block

```
block.breakNaturally().send();
```

#### 1.6 Change material of a block

```
block.setMaterial("DIAMOND_BLOCK").send();
```
