Solved List of new entity nbt tags for 1.9?

Discussion in 'Plugin Development' started by Lightspeed, Apr 11, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Lightspeed

    I'm trying to find a list of all nbt tags an entity can have thats up to date.
    All my search results are giving me is
    Results (open)

    Search Results
    1.9 - NBT Changes and Additions - Command Blocks - Redstone ... Trying to understand 1.9's changes to spawn eggs and ...
    6 posts
    Mar 22, 2016
    [1.9 Snapshot][Help required] How to get a SpawnEgg ...
    8 posts
    Sep 1, 2015
    14w02c - /testfor NBT Data
    20 posts
    Jan 10, 2014
    ThrownPotion NBT Tags Help
    10 posts
    Dec 14, 2013
    More results from www.minecraftforum.net
    You've visited this page 2 times. Last visit: 4/11/16
    [paste:font size="4"]1.9 – Minecraft Wiki [​IMG]

    minecraft.gamepedia.com/1.9
    7 days ago - 1.9, the first release of the Combat Update, is a major update to Minecraft, which ... The modifier of attributes can be changed using NBT tags.
    Grass Path - ‎1.0.0 - ‎Unused features - ‎Seecret Updates
    List of 1.9 nbt tag changes and additions : Onnowhere - Reddit Minecraft 1.9 Data Tags changed? - Arqade NEW Scoreboard Tag function Minecraft 1.9



    Nothing I want.

    I just need the default simple entity nbt tags nothing specific.
     
  2. Offline

    mine-care

  3. Offline

    Lightspeed

    Well at this time I went code diving again and found this:
    Code:
    public void e(NBTTagCompound nbttagcompound) {
            try {
                NBTTagList nbttaglist;
                nbttagcompound.set("Pos", this.a(this.locX, this.locY, this.locZ));
                nbttagcompound.set("Motion", this.a(this.motX, this.motY, this.motZ));
                if (Float.isNaN(this.yaw)) {
                    this.yaw = 0.0f;
                }
                if (Float.isNaN(this.pitch)) {
                    this.pitch = 0.0f;
                }
                nbttagcompound.set("Rotation", this.a(new float[]{this.yaw, this.pitch}));
                nbttagcompound.setFloat("FallDistance", this.fallDistance);
                nbttagcompound.setShort("Fire", (short)this.fireTicks);
                nbttagcompound.setShort("Air", (short)this.getAirTicks());
                nbttagcompound.setBoolean("OnGround", this.onGround);
                nbttagcompound.setInt("Dimension", this.dimension);
                nbttagcompound.setBoolean("Invulnerable", this.invulnerable);
                nbttagcompound.setInt("PortalCooldown", this.portalCooldown);
                nbttagcompound.a("UUID", this.getUniqueID());
                nbttagcompound.setLong("WorldUUIDLeast", this.world.getDataManager().getUUID().getLeastSignificantBits());
                nbttagcompound.setLong("WorldUUIDMost", this.world.getDataManager().getUUID().getMostSignificantBits());
                nbttagcompound.setInt("Bukkit.updateLevel", 2);
                nbttagcompound.setInt("Spigot.ticksLived", this.ticksLived);
                if (this.getCustomName() != null && !this.getCustomName().isEmpty()) {
                    nbttagcompound.setString("CustomName", this.getCustomName());
                }
                if (this.getCustomNameVisible()) {
                    nbttagcompound.setBoolean("CustomNameVisible", this.getCustomNameVisible());
                }
                this.aD.b(nbttagcompound);
                if (this.ad()) {
                    nbttagcompound.setBoolean("Silent", this.ad());
    
    
                }
                if (this.glowing) {
                    nbttagcompound.setBoolean("Glowing", this.glowing);
                }
                if (this.aF.size() > 0) {
                    nbttaglist = new NBTTagList();
                    for (String s : this.aF) {
                        nbttaglist.add(new NBTTagString(s));
                    }
                    nbttagcompound.set("Tags", nbttaglist);
                }
                this.b(nbttagcompound);
                if (this.isVehicle()) {
                    nbttaglist = new NBTTagList();
                    for (Entity entity : this.bu()) {
                        NBTTagCompound nbttagcompound1;
                        if (!entity.c(nbttagcompound1 = new NBTTagCompound())) continue;
                        nbttaglist.add(nbttagcompound1);
                    }
                    if (!nbttaglist.isEmpty()) {
                        nbttagcompound.set("Passengers", nbttaglist);
                    }
                }
            }
    So for my schematic system I found the best way to set these for a new entity is:
    Code:
    Set new entities nbt to copied but change these to the new enties.
    Position
    Dimension
    UUID
    WorldUUIDLeast
    WorldUUIDMost
    Bukkit.updateLevel
    Spigot.ticksLived(I don know bukkits)
    Take all of these from the new spawned Entity and replace the copies nbt
    
    And yes I have checked that link but, I couldn't find anything like this.
    Maybe I suck at using google. :p
     
Thread Status:
Not open for further replies.

Share This Page