Jump to content

Get Compound Tag name?


yazigegeda

Recommended Posts

 			 EntityPlayerMP p = (EntityPlayerMP)s;
			 NBTTagCompound PlayerPersisted = getPlayerNBTTagCompound.getPlayerNBTTagCompoundA(p);
			 if(!PlayerPersisted.hasKey("home")) {PlayerPersisted.setTag("home", new NBTTagCompound());}
			 NBTTagCompound home = PlayerPersisted.getCompoundTag("home");
			........
            System.out.println(stringname);
		//Console output:
		//123
	    //123_1
		//......   as the picture shows     Get the name of the tag
			

 

1.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.