# Usage

## Understanding AsteroidAPI Extensions

### Two Ways to Extend AsteroidAPI

#### 1. External Plugins (API-Based)

* Works like regular Bukkit plugins in your `plugins` folder
* Access to all AsteroidAPI features:
  * Movement control
  * Player behavior
  * Block interactions
  * Server performance management
  * And more
* Easy to integrate with existing plugins
* Perfect for most use cases

#### 2. Internal Extensions

* Loaded directly into Asteroid through the `Extensions` folder
* Runs inside Asteroid's core systems
* Can modify core behaviors like:
  * Fake player spawning process
  * Packet handling
  * Tick system modifications
* More powerful but requires careful implementation

### When to Use Each Type

**Use External Plugins when:**

* You want to control fake players from your plugin
* You need to integrate with other plugins
* You're making general server features

**Use Internal Extensions when:**

* You need to modify how fake players work at a core level
* You want to add custom behaviors that run directly in Asteroid
* You need to handle packets or modify spawn behavior

### Getting Started

Check our documentation for examples and guides on both types of extensions. Start with external plugins if you're new to AsteroidAPI - they're easier to work with and cover most common needs.

Need help choosing? Just ask in our Discord server!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spoof.dev/asteroid/api/usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
