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

Dynamic compound tag

Discussion in 'Development' started by BruhLol, Apr 7, 2018.

  1. BruhLol

    BruhLol Baby Zombie

    Messages:
    122
    I am getting dynamic compound tag error, whats causing and how to fix this?
    Also can anyone make a nbt tutorial, since the api got changed AGAIN?
     
  2. VirVolta

    VirVolta Silverfish

    Messages:
    16
    GitHub:
    VirvoltaSurMC
    It would be nice to know the error -_-
    and have the code party assign
     
  3. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    CompoundTag is removed something like that error
     
  4. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    You can't assign arbitrary fields to CompoundTag anymore.
    Bad:
    PHP:
    $tag = new CompoundTag();
    $tag->SomeTag = new StringTag("SomeTag""hi");
    Good:
    PHP:
    $tag = new CompoundTag();
    $tag->setTag(new StringTag("SomeTag""hi");
    Please note that this is not finalized in a release and may still change. The "legacy/alpha11" branch on github is also updated to 1.2.13 and does not have any breaking changes vs ALPHA11 release (although it does have more bugs).
     
    BruhLol and Daniktheboss like this.
  5. BruhLol

    BruhLol Baby Zombie

    Messages:
    122
    Okay thank you!
     
  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.