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

MobSpawner NBT [Not solved]

Discussion in 'Development' started by Az928, Nov 21, 2017.

  1. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Hi, does anyone knows the proper nbt format for MobSpawners? I've tried
    Code:
    SpawnPotentials (List) -> Entity (Compound) -> id (String)
    and
    Code:
    SpawnData (Compound) -> id (string)
    but none works (The animation),

    Any help is appreciated.
     
    Last edited by a moderator: Nov 21, 2017
  2. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    Mobspawners isn't even implemented on pmmp.
     
  3. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Do not reply if you can't help or solve the issue, I'm implementing MobSpawners, that's why asking, so be sure to not reply "non-sense" thing. (Yes I know Mob Spawners aren't implemented in pmmp, but why did I created this thread? Of course I had some nbt problems while implementing MobSpawners myself, btw, everything works fine except animation)
     
    Irish and QuiverlyRivalry like this.
  4. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    Alright, well the proper nbt data for spawners would be:

    PHP:
    new CompoundTag("", [
                new 
    StringTag("id"Tile::MOB_SPAWNER),
                new 
    IntTag("x"$block->x),
                new 
    IntTag("y"$block->y),
                new 
    IntTag("z"$block->z),
                new 
    IntTag("EntityId"0),
            ]);
     
  5. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Also, do not reply if you don't know correct nbt format, the format you sent is deprecated.
     
    QuiverlyRivalry likes this.
  6. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Like the twirling monster animations?
     
  7. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Yes
     
  8. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
  9. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
  10. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Well, it works for the plugin, so I'd say you're doing something wrong in translating it to work with your own code
     
  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.