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

ChestInventory name

Discussion in 'Development' started by #A6543, Feb 14, 2017.

  1. #A6543

    #A6543 Zombie

    Messages:
    267
    How can I set the name of a Chestinventory? $tile->setName("Test"); doesn't work
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    are you trying to set it before it's placed or after?
     
  4. #A6543

    #A6543 Zombie

    Messages:
    267
    A
    After
     
  5. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    You will need to $tile->spawnToAll() after $tile->setName("test");
     
    Last edited: Feb 15, 2017
    MioTaku likes this.
  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.