1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

InvMenu Items

Discussion in 'Development' started by CylekPOG, Jan 26, 2021.

  1. CylekPOG

    CylekPOG Spider

    Messages:
    12
    How can i set an item to my GUI menu that it's random sets by its own slots? Like on chest or hopper?
     
  2. EndermannbugZJFC

    EndermannbugZJFC Slime

    Messages:
    84
    GitHub:
    endermanbugzjfc
    What? Like you want to set an item to a random slot?
     
  3. CylekPOG

    CylekPOG Spider

    Messages:
    12
    Yup
     
  4. Emirhan Akpınar

    Emirhan Akpınar Slime

    Messages:
    90
    PHP:
    $inventory->setItem($slot$item);
     
  5. EndermannbugZJFC

    EndermannbugZJFC Slime

    Messages:
    84
    GitHub:
    endermanbugzjfc
    PHP:
    Inventory->setItem(mt_rand(0Inventory->getSize() - 1), Item);
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.