Talk:Entity metadata

From wiki.vg
Jump to navigation Jump to search

Player metadata

There seems to be no metadata specifications for the player. After testing, I can say that the player inherits from most of the metadata from the Living Entity, and all of the entity's. The only missing indexes I found were 16,17,18 respectively a byte, a float, and an int. Does anyone know about the player metadata? Is it references anywhere else? --Hunterbuscus 3rd (talk) 05:33, 12 June 2014 (UTC)

After some testing, I found out that index 18 for the player represents the score of the player (or amount of xp orbs, I think?) should I add this as a new Entity? does this already exist elsewhere?--Hunterbuscus 3rd (talk) 06:38, 12 June 2014 (UTC)

I added a new "Human" entity as it's called in the source code. 18 is indeed the score, and 17 is the number of absorption hearts. 16 is a bit field of some sort, but I haven't looked further into how it's used. If someone wants to dig around, start at https://github.com/Bukkit/mc-dev/blob/c1627dc9cc7505581993eb0fa15597cb36e94244/net/minecraft/server/EntityHuman.java#L1049-L1057 --Jli (talk) 01:11, 13 July 2014 (UTC)