File Details
More NBT_ [datapack] v1.2.0.zip
- R
- Dec 15, 2020
- 38.70 KB
- 32
- 1.17
File Name
More NBT_ [datapack] v1.2.0.zip
Supported Versions
- 1.17
v1.2.0 changelog
GENERAL
+
NBT CHANGES
+
NEW NBT
+ moreNBT tag, needed for all items that use more nbt. "nbt_format" is the format of nbt tags that are used. If their is an update/change to the nbt this will increase. You can get the current nbt format by doing '/function more_nbt:get_current_nbt_format'
Example:
{moreNBT:{nbt_format:1}}
+ summon tag. summon entities with optional nbt data. "placement" only excepts "ON_PLAYER" for now but will have more in the furture. "entity" excepts all entities. You can place any nbt data in NBT. Note that it must be inside nbt:[{<PLACE NBT HERE>}]
Exsample:
{moreNBT:{nbt_format:1},onUse:{summon:{placement:"ON_PLAYER",entity:"minecraft:pig",nbt:[{Saddle:1b,CustomName:'{"text":"Bacon"}'}]}}}
+ random tag. Will give a random number between min and max. It will give the output as the tag "result" located tag.onUse.random.result. You can then choose what happens from there.
Example:
{onUse:{random:{min:1,max:10}}}
Example item It will show you the currently saved result. tags used (random, show_text)
{moreNBT:{nbt_format:1},onUse:{random:{min:1,max:100},show_text:{actionbar:{target:"this",raw_text:'[{"text":"result: "},{"entity":"@p","nbt":"SelectedItem.tag.onUse.random.result"}]'}}}}
+ damage_tool tag, deals damage to the tool. "remove" is how much duribility gets removed from the item. "disappears" will clear the item when it breaks. This will/may have more features in the future, but for now keep it as true/1b. "break_sound" will play the broken item sound when the item is broken. (only works with carrot on a stick)
{moreNBT:{nbt_format:1},damage_tool:{remove:1,break_sound:1b,disappears:1b}}
EXPERIMENTAL NBT (experimental, may change)
+ animation tag. changes the CustomModelData tag depending on the "frames" number. It will run in order from left to right. "frametime" is the speed you want it to go at. larger the number the faster. looping will make it flip through and never stop. if you set it to false you can add "run" which will run the "frames" the set amount of times.
Example:
{moreNBT:{nbt_format:1},animation:{looping:1b,frametime:5,frames:[10,20,30,40,50]}}
+ changed "throwable" tag. No longer inside onUse tag. "type" has been changed to "entity". excepts all entities. Similar to the summon tag you can define nbt.
Example:
{moreNBT:{nbt_format:1},throwable:{ammunition:{entity:"minecraft:item",nbt:[{Item:{id:"minecraft:paper"}}]}}}
Exsample Item
You can make some pretty complex items using More NBT Tags Datapack. Things are still a work in progress. But I think its fun messing around and seeing what cool things you can create, for example below is a item (carrot on a stick) that will shoot 16 carrot items at a time.
give @p carrot_on_a_stick{display:{Name:'{"text":"Carrot Thrower","italic":false}',Lore:['{"text":"Right click to shoot stacks of carrots.","italic":false}']},moreNBT:{nbt_format:1},damage_tool:{amount:1,break_sound:1b,disappears:1b},throwable:{ammunition:{entity:"minecraft:item",nbt:[{Item:{Count:16b,id:"minecraft:carrot"}}]}},onUse:{show_text:{actionbar:{target:"this",raw_text:'[{"entity":"@p","nbt":"SelectedItem.tag.Damage"},{"text":"/24 Shots"}]'}},play_sound:{target:"this",sound:"minecraft:entity.snowball.throw"}}}

