MORE NBT DOCUMENTATION Version: 1.2.0
Index
Other Tags |
---|
moreNBT |
damage_tool |
animation |
throwable |
Other Item Tags
These tags are used directly inside the items nbt example '/give @p paper{moreNBT:{nbt_format:1}}'
Parameters
Name | Type | Default Value | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
moreNBT | JSON OBJECT | This tag is required for all items that use More NBT Tags Datapack. Get the latest format in-game by doing '/function more_nbt:get_current_nbt_format'.
| ||||||||||||||||
damage_tool | JSON OBJECT | Will deal damage to the tool when used. Only on minecraft:carrot_on_a_stick
| ||||||||||||||||
animation (W.I.P) | JSON OBJECT | Animated customModelData when held.
| ||||||||||||||||
throwable (W.I.P) | JSON OBJECT | Throwable item component. Throwable items, such as a snow
ball. Right now the entity will only go in the south direction, does not use players direction. This is planed to change.
Only on minecraft:carrot_on_a_stick
|
MORE NBT DOCUMENTATION Version: 1.2.0
Index
onUse |
---|
add_mob_effect |
remove_mob_effect |
die |
transform_item |
replaceitem |
merge_data |
show_text |
decrement_stack |
play_sound |
score |
damage |
reload |
random |
summon |
Item onUse Tags
OnUse will run the contents when the player clicks while holding the item. You can find all these parameters below. Right now it only works on minecraft:carrot_on_a_stick item. In the future you will be able to use any/all items.
Parameters
Name | Type | Default Value | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
add_mob_effect | JSON OBJECT | Will give the target the selected effect(s).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
remove_mob_effect | JSON OBJECT | Will remove the target the selected effect(s).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
die | JSON OBJECT | Will kill the target.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
transform_item | JSON OBJECT | replace the curent holding item with the new
determined
item.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
replaceitem | JSON OBJECT | This will copy and move the item to the new selected
Slot.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
merge_data | JSON OBJECT | Will apply the data.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
show_text | JSON OBJECT | text releated objects.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
decrement_stack | JSON OBJECT | Will remove the selected item/weapon.main hand.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
play_sound | JSON OBJECT | Will play the sound when the item is used.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
score | JSON OBJECT | add, remove, set scores on a scoreboard.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
damage | JSON OBJECT | Will damage the target.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reload | JSON OBJECT | Will reload the server. If it is a modded server
(Spigot, Bukkit, Paper) it will run /reload confirm.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
random | JSON OBJECT | Will output a random number from the min and max numbers.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
summon | JSON OBJECT | Summon an entity with optional nbt data.
|
MORE NBT DOCUMENTATION Version: 1.2.0
Examples:
When you click the item it will change the custom model data from 100 to 200.
This will show a title, subtitle, and actionbar text when you click the item.
This will use your name and add the text when you click on the item. If you are in survival it will remove the item.
When you click on the item it will place the item on your head. It will replace whatever is on your head.
This carrot on a stick will shoot 16 carrot items at a time. It will also tell you how many uses you have left.