Published Jul 26th, 2014, 7/26/14 5:59 am
- 1,262 views, 0 today
- 1
- 0
4
NBT is how Minecraft stores the world and player data, in <player>.dat or level.dat files.
There are about 450 NBT tags!(JK I'm actually to lazy to count all of them, but there is a lot).
These can all be used in your maps and whatever you wan't.
1.Where are all the nbt tags?
Right here: Minecraft NBT Tags !
2.Where to write the nbt tags?
Read the command syntax!
3.Examples please?
Well if you are trying to look for a player that has selected his 3 slot you type: /testfor @p {SelectedItemSlot:0}
4.Why does the Damage tag need a "s" at the end but the Count tag "b"?
B = bytes, S = shorts.To see what tags are bytes and what are shorts(not the clouthing) go to the link above and next to the tag there is a S,I,B,F,D,String or List. S=Short, I = int(this has no extansions for example If the tag mr0 was an int its correct usage would be "{mr0:1}" no b or s extansions).B=Byte, String = "Text here pls" and a List is basicly the tag containing tags, for example {Items:{}} or {direction:[]}.
5.How to get the NBT of a specific block?
This can be done in 2 ways(one requires 1.8)
The first way is to stand on the block and type:
/blockdata ~ ~-1 ~ {}
This will say something like: The data tag did not change: <the nbt tag of the block>!Copy that down.
The second way is to manually type the block nbt using tags(this is pre 1.8).
6.Correct usage.
What is this?!You might ask, well it's kinda important.
If you use the /testforblock command with NBT you would probably get a lot of errors saying the block did not match the NBT.So to fix this you need to type the extansions correctly(bytes and shortes), and you need to have these tags:
x:<x coordinates of the block> y:<y coordinates of the block> z:<z coordinates of the block> and id:"<the id of the block(not numeric and not using minecraft:<name> but using stuff like "Banner", "Stone", "Trap"(trap is dispenser))>" THIS ONE IS OPTIANAL BUT RECCOMENDED!
7.Really cool example.
If you type /testfor @p {foodLevel:20} It will give you all the players with full hunger(1=half a hunger bar).
Any problems?Comment below so i can try and help you!
Hope you enjoyed!
There are about 450 NBT tags!(JK I'm actually to lazy to count all of them, but there is a lot).
These can all be used in your maps and whatever you wan't.
1.Where are all the nbt tags?
Right here: Minecraft NBT Tags !
2.Where to write the nbt tags?
Read the command syntax!
3.Examples please?
Well if you are trying to look for a player that has selected his 3 slot you type: /testfor @p {SelectedItemSlot:0}
4.Why does the Damage tag need a "s" at the end but the Count tag "b"?
B = bytes, S = shorts.To see what tags are bytes and what are shorts(not the clouthing) go to the link above and next to the tag there is a S,I,B,F,D,String or List. S=Short, I = int(this has no extansions for example If the tag mr0 was an int its correct usage would be "{mr0:1}" no b or s extansions).B=Byte, String = "Text here pls" and a List is basicly the tag containing tags, for example {Items:{}} or {direction:[]}.
5.How to get the NBT of a specific block?
This can be done in 2 ways(one requires 1.8)
The first way is to stand on the block and type:
/blockdata ~ ~-1 ~ {}
This will say something like: The data tag did not change: <the nbt tag of the block>!Copy that down.
The second way is to manually type the block nbt using tags(this is pre 1.8).
6.Correct usage.
What is this?!You might ask, well it's kinda important.
If you use the /testforblock command with NBT you would probably get a lot of errors saying the block did not match the NBT.So to fix this you need to type the extansions correctly(bytes and shortes), and you need to have these tags:
x:<x coordinates of the block> y:<y coordinates of the block> z:<z coordinates of the block> and id:"<the id of the block(not numeric and not using minecraft:<name> but using stuff like "Banner", "Stone", "Trap"(trap is dispenser))>" THIS ONE IS OPTIANAL BUT RECCOMENDED!
7.Really cool example.
If you type /testfor @p {foodLevel:20} It will give you all the players with full hunger(1=half a hunger bar).
Any problems?Comment below so i can try and help you!
Hope you enjoyed!
Tags |
3005892
6
Create an account or sign in to comment.