Overview
BetterModel provides full support for Bukkit-based server platforms including Bukkit, Spigot, Paper, and Purpur. The plugin automatically detects your platform and optimizes its behavior accordingly.Spigot
Standard Bukkit API implementation with NMS adapters
Paper
Enhanced performance with Paper’s modern scheduler and APIs
Purpur
Full Paper compatibility with additional Purpur-specific hooks
Folia
Region-based multithreading support (see dedicated page)
Platform Detection
BetterModel automatically detects your server platform at runtime:Platform Detection
Installation
Choose the correct JAR
Download the appropriate JAR file for your platform:
- Paper/Purpur/Folia: Use
bettermodel-paper-VERSION.jar - Spigot/Bukkit: Use
bettermodel-spigot-VERSION.jar
Install dependencies
BetterModel automatically downloads required libraries at runtime using Libby.For Paper platforms, dependencies are loaded via Paper’s plugin loader:For Spigot, libraries are declared in
Paper Loader
plugin.yml:plugin.yml
Platform-Specific Features
Paper Advantages
When running on Paper-based platforms, BetterModel gains access to:Modern Scheduler API
Modern Scheduler API
Paper’s async scheduler with better thread safety:
Async Scheduling
Plugin Loader System
Plugin Loader System
Dependencies loaded before plugin initialization, avoiding classloading issues.
Enhanced Event System
Enhanced Event System
Access to Paper-specific events for better entity management.
Spigot Limitations
On Spigot/Bukkit platforms:Both implementations use the same
ModelTask interface, ensuring API consistency across platforms.Configuration
The plugin creates aBetterModel/ directory in your plugins folder:
Server Platform in Code
Your plugins can detect the current platform:Detecting Platform
API Usage
Adding the Dependency
Basic Usage Example
Creating Models
Soft Dependencies
BetterModel integrates with popular plugins:MythicMobs
Custom model mechanics and conditions
Citizens
NPC model traits and commands
SkinsRestorer
Player skin integration for models
Nexo
Custom item model integration
plugin.yml (Spigot)
paper-plugin.yml (Paper)
Supported Minecraft Versions
Current Support: Minecraft 1.21 - 1.21.11BetterModel uses NMS (Net Minecraft Server) adapters for each Minecraft version:
v1_21_R1throughv1_21_R7for different 1.21.x releases- Automatically selects the correct adapter at runtime
Troubleshooting
Wrong JAR file error
Wrong JAR file error
Error: “You’re using Paper, so you have to use Paper jar!”Solution: Download the correct JAR from Modrinth:
- Paper/Purpur/Folia:
bettermodel-paper-VERSION.jar - Spigot/Bukkit:
bettermodel-spigot-VERSION.jar
Spigot Validation
NMS version mismatch
NMS version mismatch
Error: “Unsupported Minecraft version”Solution: Ensure you’re running Minecraft 1.21-1.21.11. The plugin will not load on older or newer versions.
Resource pack not loading
Resource pack not loading
Check your
config.yml for resource pack settings:folder: Generate to plugins/BetterModel/resource-pack/zip: Generate as .zip fileserver: Use with Paper’s built-in resource pack hosting
Next Steps
Folia Support
Learn about Folia’s region-based threading
Fabric Platform
Explore the Fabric mod implementation
API Examples
See complete API usage examples
Installation
Install BetterModel on your server
