定制 resourcepack/pipeline 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.json must 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

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固