Provide feedback related to crafting, combat, enchanting, and general gameplay. Do not post bugs, support issues, or lists of random ideas. Please search!

2

Solution to limited inventory management

3 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    Nice idea. How about making it so you can open shulker boxes without placing them down?

     

  • 0
    Registered User commented
    Comment actions Permalink

    This would be game Breaking...

    This would be the perfect way to ban player accounts or severs by crashing them with memory overflow. 

    Vanilla players have at base 27 inventory slots and 9 hot bar slots (+-1 for off-hand), 36 slots in total

    each slot has a shulker box with a shulker box with a shulker box...

    Total number of slots now expanded towards... 

    36*(27^27)  =

    = 1.5963353576749361e+40 individual slots. 

    Wow, Now imagine each slot filled with a book and quail with Non common unicode characters... 

    a book and quill has a Cap of between 100-50 pages for the two platforms of the game.

    [798 'Java', 255 'Bedrock] characters per page? 

    [100*798, 50*255] =

    = [79800, 12750] for the upper bounds of the maximum amount of characters possible in a book...

    The largest character can have 16 code points, "Does Minecraft run UTF-16?", if so that would mean each code point would be ~16bits or 2 bytes.

     2 bytes * [79800, 12750] max amount of characters a book=

    = [159600, 25500] bytes of data per book for there given platform

    1.5963353576749361e+40 * [159600, 25500]=

    = ~6.93 Terabytes of books in nested shulker boxes.

    I don't think many people have Terabytes of free ram on there computers

    imagine the chaos this would cause if given to a player... or "spawned," onto a sever by hackers with commands...

     

  • 0
    Registered User commented
    Comment actions Permalink

    The previous poster is correct. An unlimited bill of materials is untenable.

    Still do it, but limit it. Maybe just allow one level of boxes within boxes. It would be extra work to code that, but I think it would be worth it.

    The only other reasonable option is to make the inventory UI pageable, with scroll arrows either up/down or left/right. But again, that needs a limit.