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

getTile()

Discussion in 'Development' started by abimalek, Nov 11, 2017.

  1. abimalek

    abimalek Witch

    Messages:
    74
    GitHub:
    megagastpvp
    I'm trying to make a relics plugin for the people who don't know what relics is its (when people break a block it has a chanse of spawning a chest with items in it) I'm trying to get the tile of the chest that is spawn and add items to the chest. upload_2017-11-11_16-57-45.png I know I should use code blocks but I don't know how so I print screen
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    a tile doesn't automatically appear when a block is set to be a chest block. You have to make a tile at the same position for it to work.
     
  3. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    The correctly function is getItemInHand() don't getItemInHan()
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    further noticing issues... the result of the function is being compared to an integer :facepalm:
     
  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.