More NBT Tags [DATAPACK]

Adds new NBT Tags to make customization more easier!

File Details

More NBT_ [datapack] v1.3.0.zip

  • R
  • Dec 15, 2020
  • 65.83 KB
  • 100
  • 1.17

File Name

More NBT_ [datapack] v1.3.0.zip

Supported Versions

  • 1.17

v1.3.0 Changelog

GENERAL

+ Fixed reload message

+ added used_item scoreboard, feel free to use.

+ nbt_format has been increased to "2"

+ onUse.structure is no longer experimental.

+ added used object that has some info that can be used for other datapack. i.e. times_used. has_been_used, etc /data get entity @p SelectedItem.tag.used.has_been_used /data get entity @p SelectedItem.tag.used.times_used
NBT CHANGES

+ throwable tag will now work in all directions, ammunition now requires the boolean tag "physics" Some entity act funky depending on if physics is true or false.Example: {moreNBT:{nbt_format:2},throwable:{ammunition:{physics:0b,entity:"minecraft:snowball"}}}

 

+ onUse tag now supprts usage of more tools.

warped_fungus_on_a_stick <- right click

all swords <- attack mob or break block in survival

all shovels <- attack mob or break block in survival

all pickaxes <- attack mob or break block in survival

all axes <- attack mob or break block in survival

all hoes<- attack mob or break block in survival

bow <- shoot

crossbow <- shoot

trident <- shoot


+ damage_tool tag now supports all the items that onUse does.

+ added not gamemode to decrement_stack. Example: {onUse:{decrement_stack:{gamemode:["!creative"]}}}

+ added a few sounds to play_sound tag; minecraft:block.chest.close minecraft:block.chest.locked minecraft:block.chest.open minecraft:block.ender_chest.close minecraft:block.ender_chest.open minecraft:block.barrel.open minecraft:block.barrel.open+ structure tag. Now supports all structures and custom structures. no longer need placement tag.Example:{moreNBT:{nbt_format:2},onUse:{structure:{structure_name:"minecraft:igloo/top",pos:[-3,-1,-5]}}}
+ You can add your own custom sounds by adding the sound. How to below. create a file called "register_sounds.json" located "data/more_nbt/tags/functions/register_sounds.json" inside that file is where you can refrance your own function file path inside your pack. Inside that mcfunction in your pack you add one command: 'execute at @p[nbt={SelectedItem:{tag:{onUse:{play_sound:{sound:"<Custom Sound>"}}}}}] run playsound <Custom Sound> player @p' This makes it where if it finds your custom sound inside the nbt it will run the playsound command.


NEW NBT

+ durability tag. Apply custom max durability to your item. recomended to also use the damage_tool tag to damage the item when you use it. This can be applied to all items.Examples:{moreNBT:{nbt_format:2},durability:{max_durability:10,display:"actionbar"}}you can also define a already damaged item. "current_durability"{moreNBT:{nbt_format:2},current_durability:{value:5},durability:{max_durability:10,display:"actionbar"}}


The below commands are used throughout this datapack, but feel free to use yourself.

+ NoGroundItem tag. When set to true it will kill the item that is dropped on the ground.

+ NoInventoryItem tag. When set to true it will clear the item from the players inventory.Exsample:/give @p paper{NoGroundItem:1b,NoInventoryItem:1b,display:{Name:'{"text":"Impossable Item"}',Lore:['{"text":"The item you will never get."}']}}


EXPERIMENTAL NBT (experimental, may change)

+ loot tag. Run a loot table when you use the item. Some targets and sources work.Example:{onUse:{loot:{target:"spawn",source:"loot",table:"minecraft:chests/spawn_bonus_chest"}}}{onUse:{loot:{target:"give",source:"kill",entity:{sort:"nearest",type:"minecraft:cow"}}}}
+ Inventory tag. Make a item that can hold items. (this has alot of tags inside, recomended to check the documentation.)Example: {Items:[{Slot:13b,Count:1b,id:"minecraft:netherite_block"}],moreNBT:{nbt_format:2},Inventory:{can_be_siphoned_from:0b,inventory_name:'{"text":"Chest"}',inventory_type:"chest",auto_save:{storage:"item",visable:false},display_block:{Name:"minecraft:netherite_block"}}}
Example Item+ added durability tag to carrot thrower item & added physics tag to ammunition.
+ new example item. Sea Tresure Loot. when you click on it, it will run a loot table then remove the item./give @p carrot_on_a_stick{moreNBT:{nbt_format:2},onUse:{loot:{target:"give",source:"loot",table:"minecraft:chests/shipwreck_treasure"},play_sound:{target:"this",sound:"minecraft:block.chest.open"},decrement_stack:{gamemode:["all"]}}}