resourcepack/pipeline
最新稳定版本:1.0.0
Composer 安装命令:
composer require resourcepack/pipeline
包简介
README 文档
README
🎨 ResourcePackPipeline is a PocketMine-MP virion (PM4 / PM5) that automates resource pack management at server startup.
It provides a smooth and reliable pipeline:
👉 Scan → Zip (.mcpack) → Load → Log
All of this happens without breaking or removing resource packs from other plugins (like InventoryUI).
✨ Features
✅ Automatic scan of resource packs
📦 Automatic .mcpack generation (one per pack)
🔁 Safe loading into PocketMine’s ResourcePackManager
🛡️ Keeps existing resource packs untouched
❌ Prevents duplicate pack loading
🎨 Clean & colorful startup logs
⚙️ Compatible with PocketMine-MP 4.x & 5.x
📚 Distributed as a virion (embedded library)
📁 Expected Directory Structure
Resource packs must be placed inside resources/packs/ in the plugin using this virion.
resources/
└── packs/
├─────── PackOne/
├── manifest.json
└── textures/
└── ...
├─────── Packtwo/
├── manifest.json
└── textures/
└── ...
📝 Notes:
- 📦 Each folder inside
packs/represents one resource pack - 📄
manifest.jsonmust be at the root of each pack - 🎧 Standard Bedrock folders (
textures,sounds, etc.) are supported - 🧰 Each pack is automatically zipped into a
.mcpack
🚀 Basic Usage
Inside your plugin:
use resourcepack\pipeline\ResourcePackPipeline; public function onEnable(): void{ $pipeline = new ResourcePackPipeline($this, $this->getResourceFolder()); $pipeline->scan("packs/"); $zips = $pipeline->zip(); $pipeline->load($zips); $pipeline->log(); }
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-29