PHPackages                             tedo0627/inventoryui - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tedo0627/inventoryui

ActiveLibrary

tedo0627/inventoryui
====================

This is the PocketMine virion that implements the dummy inventory.

1.1.1(9mo ago)378910MITPHP

Since Sep 25Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/tedo0627/InventoryUI)[ Packagist](https://packagist.org/packages/tedo0627/inventoryui)[ RSS](/packages/tedo0627-inventoryui/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

InventoryUI
===========

[](#inventoryui)

This is the PocketMine virion that implements the dummy inventory.

Differences from previous APIs
------------------------------

[](#differences-from-previous-apis)

- Chests and other blocks are not placed.
- If a player falls or moves by water or other means when the inventory is open, the inventory will not close.
- You can specify any number of slots in your inventory. (Up to 1000 confirmed)
- Vertical length of inventory slots can be specified. (max. 6)

Demo
----

[](#demo)

    InventoryUI.test.mp4    Preview
-------

[](#preview)

openlength: 1, slot: 5length: 1, slot: 9length: 2, slot 18[![](image/length1slot5.png)](image/length1slot5.png)[![](image/length1slot9.png)](image/length1slot9.png)[![](image/length2slot18.png)](image/length2slot18.png)length: 5, slot: 45length: 5, slot: 100length: 6, slot 100[![](image/length5slot45.png)](image/length5slot45.png)[![](image/length5slot100.png)](image/length5slot100.png)[![](image/length6slot100.png)](image/length6slot100.png)How to install
--------------

[](#how-to-install)

1. Download [InventoryUIResourcePack.mcpack](https://github.com/tedo0627/InventoryUIResourcePack/releases/) and put it in the resource\_packs folder
2. Open file `resource_packs.yml`, set **force\_resources** to `true` and **resource\_stack** to `InventoryUIResourcePack.mcpack`

```
force_resources: true
resource_stack:
  - InventoryUIResourcePack.mcpack
```

Usage
-----

[](#usage)

The following code must be called when the plugin is enabled.

```
InventoryUI::setup($this);
```

### Open custom inventory

[](#open-custom-inventory)

`$slot` specifies the number of slots in the inventory and must be a number greater than zero.
`$title` is the name of the inventory.
`$length` is entered as the vertical length of the inventory. If null, it is automatically adjusted.

```
/** @var Player $player */
$player->setCurrentWindow(new CustomInventory($slot, $title, $length));
```

### Extend custom inventory

[](#extend-custom-inventory)

```
class SampleInventory extends CustomInventory {

    public function __construct() {
        parent::__construct(54, "Sample Inventory");
    }

    public function open(Player $player): void {
        // Called when a player opens this inventory.
    }

    public function tick(int $tick): void {
        // Called every tick when someone opens inventory.
    }

    public function click(Player $player, int $slot, Item $sourceItem, Item $targetItem): bool {
        // It is called when a slot in the inventory is operated.
        // If the return value is true, the operation is canceled.
        return false;
    }

    public function close(Player $player): void {
        // Called when the player closes the inventory.
    }
}
```

Sample plugin [here](https://github.com/tedo0627/SampleInventoryUI)

License
-------

[](#license)

"InventoryUI" is under [MIT License](https://github.com/tedo0627/InventoryUI/blob/master/LICENSE)

Special Thanks
--------------

[](#special-thanks)

Help resource pack [@yuyaprgrm](https://github.com/yuyaprgrm)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance55

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~664 days

Total

2

Last Release

298d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2b2f3a9319c2efcc625ccf3186e1718703c7d19e658964a67cadff60f304f5f?d=identicon)[tedo0627](/maintainers/tedo0627)

---

Top Contributors

[![tedo0627](https://avatars.githubusercontent.com/u/24734045?v=4)](https://github.com/tedo0627 "tedo0627 (33 commits)")[![JavierLeon9966](https://avatars.githubusercontent.com/u/58715544?v=4)](https://github.com/JavierLeon9966 "JavierLeon9966 (3 commits)")[![royaljacques](https://avatars.githubusercontent.com/u/63215754?v=4)](https://github.com/royaljacques "royaljacques (2 commits)")[![yuyaprgrm](https://avatars.githubusercontent.com/u/17157879?v=4)](https://github.com/yuyaprgrm "yuyaprgrm (1 commits)")[![poggit-bot](https://avatars.githubusercontent.com/u/22427965?v=4)](https://github.com/poggit-bot "poggit-bot (1 commits)")[![JblusItsMe](https://avatars.githubusercontent.com/u/54106195?v=4)](https://github.com/JblusItsMe "JblusItsMe (1 commits)")[![NickteeChunky](https://avatars.githubusercontent.com/u/31430653?v=4)](https://github.com/NickteeChunky "NickteeChunky (1 commits)")

---

Tags

inventorypmmppocketminepocketmine-mpuivirion

### Embed Badge

![Health badge](/badges/tedo0627-inventoryui/health.svg)

```
[![Health](https://phpackages.com/badges/tedo0627-inventoryui/health.svg)](https://phpackages.com/packages/tedo0627-inventoryui)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
