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

How to spawn a Tile [Chest]

Discussion in 'Development' started by InspectorGadget, Mar 12, 2017.

  1. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    Hi! I'm sorry i don't have any code to share but i'd like to learn how to spawn Chest Tile in the easiest way.. I don't understand the logic for NBT. If anyone could explain me about NBT, that would be awesome...

    Thanks
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    The NBT used when creating tiles is necessary for the extra data those tiles hold(Like inventories). Without it, they often don't place correctly. One of the best places to look is in pocketmine\block\Chest, under the place() function. If the tile placing method is good enough for PM, it should be good enough for any plugin you may be making.

    Idk how much you know of NBT, but it stands for Named Binary Tag, and is specific to Minecraft and MCPE.

    (Correct me if anything I say is wrong)
     
  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.