Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/Feature Custom inventory sizes #201

Open
EmporiumPvP opened this issue Feb 16, 2023 · 2 comments
Open

Question/Feature Custom inventory sizes #201

EmporiumPvP opened this issue Feb 16, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@EmporiumPvP
Copy link

is it possible to create GUI's with a custom amount of slots e.g. A single chest with 18 slots instead of 27, if not would it be possible for you to implement this if you choose to

@Muqsit
Copy link
Owner

Muqsit commented Feb 18, 2023

It isn't possible to create dynamically-sized inventories through InvMenu directly. You may be able to play with texture packs and register a custom InvMenuType that can handle dynamic inventory sizes. tedo0627's InventoryUI library has done it using texture packs.

I am fairly new to texture packs and therefore wouldn't be able to maintain it if this feature were to be directly ported from tedo0627/InventoryUI, nor am I aware of any repo maintainers who understand this.

@Muqsit Muqsit added enhancement New feature or request help wanted Extra attention is needed labels Feb 18, 2023
@Muqsit
Copy link
Owner

Muqsit commented Jun 25, 2023

I've written an example plugin as proof of implementation: https://github.com/Muqsit/CustomSizedInvMenu.

It lets building custom-sized InvMenu instances using the entity definition in InventoryUI resource pack.

However, I am skeptical about the sustainability of integrating this into InvMenu (e.g., is Mojang likely to introduce changes that affect behaviour the resource pack offers?). Perhaps someone more knowledgeable can share insights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants