Data API - GenMode/Minecraft GitHub Wiki
Welcome to the Data API wiki
Data API |
---|
Edition: Java Edition ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Type: Datapack, Mod ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Release Date: June 6, 2023 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Latest Update: v1.8.5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Versions: 1.16 - 1.21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Dependencies: None ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Downloads: • CurseForge • Modrinth • Planet Minecraft • Smithed |
With this datapack I hope to improve Minecraft's severe lack of tools for developer use
† Durability
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
{data:{Durability :{... }} |
Sets custom tool durability Can use the following parameters: BaseDbt:... (optional) , Dbt:...
|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{CustomDurabilityData :{... }}} |
Sets custom tool durability Can use the following parameters: base_durability:... (optional) , durability:...
|
1.20.5+ |
VANILLA |
REMOVED | Made obsolete by "minecraft:max_damage":...
|
† Enchantments
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.4 |
v0.0 to v1.4.1 |
{data:{Enchantments :[{... }]}} |
Copies data to enchantments tag to fix clearing of invalid enchantments Can use the following parameters: {id:"..."} , {lvl:...} , {Name:'{...}'}
|
1.20.5 to 1.20.6 |
BROKEN |
REMOVED |
"minecraft:enchantments":{...} no longer stores invalid data |
1.21+ |
VANILLA |
Made obsolete by custom enchantments
|
† Equipment
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{CustomArmorColor :... }} |
Copies to color nbt tag when item enters player's inventory |
1.20.5 to 1.20.6 |
v1.5.0 to v1.5.6 |
{"minecraft:custom_data":{custom_armor_color :... }} |
Copies to dyed_color component when item enters player's inventory |
1.21 to 1.21.1 |
v1.6.0 to v1.6.3 |
{"minecraft:custom_data":{custom_armor_data :{color:... }}} |
Copies to dyed_color component when item enters player's inventory |
1.17 to 1.20.4 |
v0.2 to 1.4.1 |
{data:{CustomHatData :{hat_<on|off> :{... }}}} |
Sets data for an item when on/off a player's head Can use the following parameters: {id:"..."} & {CustomModelData:...}
|
1.20.5 to 1.21.1 |
v0.5.0 to v1.6.3 |
{"minecraft:custom_data":{custom_hat_data :{hat_<on|off> :{... }}}} |
Sets data for an item when on/off a player's head Can use the following parameters: {id:"..."} & {custom_model_data:...}
|
1.21.2+ |
VANILLA |
REMOVED | Made obsolete by "minecraft:item_model":"..."
|
† GUIs
Requires a Barrel and a Marker in the same location
- Click here for a video demonstration
- As of Data API update
1.5.2
the same tools can also be used on players orminecraft:markers
riding Chest Minecarts too - As of Data API update
1.6.3
Chest Boats are now supported as well - as of Data API update
1.8.0
this feature was removed
Scores: (run as Marker)
MC Version | DP Update | Objective | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
dev.GUI |
-1 initializes a gui page with the items inside 0 sets GUI to an "Editing..." page 1..9 swaps to designated page |
1.20.2+ |
v1.3.0+ |
gui.Page |
-1 initializes a gui page with the items inside 0 sets GUI to an "Editing..." page 1.. swaps to designated page |
1.17 to 1.20.2 |
v0.2 |
dev.GUIbutton | Is activated when a player interacts with a GUI:"button" The score corresponds to the slot the button item was in |
1.20.2+ |
v1.3.0+ |
gui.Button | Is activated when a player interacts with a gui:"button" The score corresponds to the slot the button item was in |
1.21.4+ |
REMOVED |
Was too complex to keep up with |
NBT Tags:
MC Version | DP Update | Item NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
{data:{GUI :... }} |
Marks an item as a "gui" item that cannot be taken by the player Can use the following parameters: "button" , true
|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{gui :... }} |
Marks an item as a "gui" item that cannot be taken by the player Can use the following parameters: "button" , true
|
1.20.5 to 1.20.6 |
v1.5.0 to v1.5.6 |
{"minecraft:custom_data":{gui :... }} |
Marks the an as a "gui" item that cannot be taken by the player Can use the following parameters: "button" , true
|
1.21 to 1.21.2 |
v1.6.0 to v1.7.1 |
{"minecraft:custom_data":{gui :{... }}} |
Marks the an as a "gui" item that cannot be taken by the player Can use the following parameters: button:true , entity_data:{...} , function:"..." , loot:"..." , on_target:true , particle:"..." , playsound:"..." , run_command:"..." , summon:"..."
|
1.21.3+ |
v1.7.2+ |
{"minecraft:custom_data":{gui :{... }}} |
Marks the an as a "gui" item that cannot be taken by the player Can use the following parameters: button:true , entity_data:{...} , function:"..." , loot:"..." , on_target:true , particle:"..." , run_command:"..." , sound:"..." , summon:"..."
|
1.21.4+ |
REMOVED |
Was too complex to keep up with |
MC Version | DP Update | Marker NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
{data:{GUI :[{... }]}} |
Specifies data for gui Can use the following parameters: page:1..9 (REQUIRED!!!) , ItemCount:# (REQUIRED!!!) , Items:[...] , CustomName , ConvertData:true , DefaultHome:true , KeepItems:true , ReturnItems:true , StoreItems:true
|
1.20.2 to 1.20.6 |
v1.3.0 to v1.5.6 |
{data:{GUI :{Pages:[{... }]}}} |
Specifies data for gui Can use the following parameters: page:1.. (REQUIRED!!!) , Items:[...] , CustomName , convert_data:true , default_home:true (barrel exclusive) , keep_items:true , return_items:true (barrel exclusive) , store_items:true
|
1.21+ |
v1.6.0+ |
{data:{gui :{pages:[{... }]}}} |
Specifies data for gui Can use the following parameters: page:1.. (REQUIRED!!!) , Items:[...] , CustomName , convert_data:true , default_home:true (barrel exclusive) , keep_items:true , return_items:true (barrel exclusive) , store_items:true
|
1.21.4+ |
REMOVED |
Was too complex to keep up with |
MC Version | DP Update | Name | Path | Description |
---|---|---|---|---|
1.20.5 to 1.20.6 |
v1.5.2 to v1.5.6 |
data:store | PlayerGUI[{UUID:$(UUID) }].Pages:[{... }] |
Specifies data for a player gui Can use the following parameters: page:1.. (REQUIRED!!!) , Items:[...] , convert_data:true , keep_items:true , store_items:true
|
1.21+ |
v1.6.0+ |
data_api:store | player_gui[{uuid:$(UUID) }].pages:[{... }] |
Specifies data for a player gui Can use the following parameters: page:1.. (REQUIRED!!!) , Items:[...] , convert_data:true , keep_items:true , store_items:true
|
1.21.4+ |
REMOVED |
Was too complex to keep up with |
Functions: (run as/at Marker)
MC Version | DP Update | Function | Description | Macro Arguments |
---|---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
dev:run/blocks/containers/gui/drop_items
|
Clears all gui pages and drops stored items | |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
data_api:run/blocks/containers/gui/commands/drop_items
|
Clears all gui pages and drops stored items | |
1.20.5 |
v1.5.0 to v1.5.1 |
data_api:run/blocks/containers/gui/commands/drop_items
|
Clears all gui pages and drops stored items | |
1.20.5 to 1.20.6 |
v1.5.2 to v1.5.6 |
data_api:run/containers/commands/drop_items
|
Clears all gui pages and drops stored items | |
1.21+ |
v1.6.0 |
data_api:container/commands/drop_items
|
Clears all gui pages and drops stored items | |
1.17 to 1.20.2 |
v0.2 |
dev:run/blocks/containers/gui/pages/remove /page_# |
Remove specified gui page | |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
data_api:run/blocks/containers/gui/commands/remove_page
|
Remove specified gui page | {page:1.. } |
1.20.5 |
v1.5.0 to v1.5.1 |
data_api:run/blocks/containers/custom_gui/commands/remove_page
|
Remove specified gui page | {page:1.. } |
1.20.5 to 1.20.6 |
v1.5.2 to v1.5.6 |
data_api:run/containers/commands/remove_page
|
Remove specified gui page | {page:1.. } |
1.21+ |
v1.6.0+ |
data_api:container/commands/remove_page
|
Remove specified gui page | {page:1.. } |
1.17 to 1.20.2 |
v0.2 |
dev:run/blocks/containers/gui/pages/set_...
|
Specifies a page to run a task Can use the following parameters: to_convert_nbt/page_# , as_home/page_# , to_keep_items/page_# , to_return_items/page_# , as_storage/page_#
|
|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
data_api:run/blocks/containers/gui/commands/toggle_...
|
Specifies a page to run a task Can use the following parameters: convert_data , default_home , keep_items , return_items , store_items
|
{page:1.. } |
1.20.5 |
v1.5.0 to v1.5.1 |
data_api:run/blocks/containers/custom_gui/commands/toggle_...
|
Specifies a page to run a task Can use the following parameters: convert_data , default_home , keep_items , return_items , `store_items |
{page:1.. } |
1.20.5 to 1.20.6 |
v1.5.2 to v1.5.6 |
data_api:run/containers/commands/toggle_...
|
Specifies a page to run a task Can use the following parameters: convert_data (barrel & minecart exclusive) , default_home (barrel exclusive) , keep_items , return_items (barrel exclusive) , store_items
|
{page:1.. } |
1.21+ |
v1.6.0+ |
data_api:container/commands/toggle_...
|
Specifies a page to run a task Can use the following parameters: convert_data (barrel & minecart exclusive) , default_home (barrel exclusive) , keep_items , return_items (barrel exclusive) , store_items
|
{page:1.. } |
1.21.4+ |
REMOVED |
Was too complex to keep up with |
Mobs
Uses an invisible entity as a base mob
and another entity to display
a model with custom_model_data
- Using a Name Tag on a custom mob will display the name on the model as well
- In
v0.1 to 0.2
the base mob and the display mob (armor_stand) need equal scores on the objectives:dev.MobUUID
&dev.MobUUID2
- In
v1.8.0+
the names are saved understrings: [...]
, and the number values are saved underfloats: [...]
- In
v1.8.5+
data is now stored in{"minecraft:custom_data": {model: {...}}}
and"minecraft:custom_model_data": {flags: [...]}
is used to specify death animation frames
MC Version | DP Update | "minecraft:custom_data" | Description |
---|---|---|---|
1.21.5+ |
v1.8.5+ |
{model : {... : <true|false> }} |
Sets flags based on vehicle data for item_models to detect Provides the following data: crouching , dead , hurt , moving , on_ground , scared , sitting , sleeping
|
Legacy
Animations:
Due to the new item_model
component, this system has been reworked to be simpler. Now all you need is the models specified by name under custom_entity_data.animations[...]
and they'll switch to custom_model_data
overrides automatically
MC Version | DP Update | Model | CustomModelData ID |
---|---|---|---|
1.21.2+ |
v1.7.0+ |
"fallback" | Removes custom_model_data component |
1.21.2+ |
v1.7.0+ |
"hurt" | 1 |
1.21.2+ |
v1.7.0+ |
"death_1", "death_2", "death_3", "death_4" | 2, 3, 4, 5 (frames in order)
|
1.21.2+ |
v1.7.0+ |
"standing" | 6 |
1.21.2+ |
v1.7.0+ |
"moving" | 7 |
1.21.2+ |
v1.7.0+ |
"flying" | 8 |
1.21.2+ |
v1.7.0+ |
"sitting" | 9 |
1.21.2+ |
v1.7.0+ |
"crouching" | 10 |
1.21.2+ |
v1.7.0+ |
"sleeping" | 11 |
List of model animation names and their corresponding custom model IDs
Advanced
MC Version | DP Update | NBT Tag | Description | Display Entity |
---|---|---|---|---|
1.16 to 1.20.2 |
v0.1 to v0.2 |
{ArmorItems:[{}, {}, {}, {tag:{data:{CustomEntityData :{... }}}}]} |
Designates item data for model states that are swapped to Can use the following parameters: death:[{Frame:<1-4>b, ...}] , hurt:{...} , sitting:{...} , standing:{...} , walking:{...}
|
armor_stand |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{item:{tag:{data:{CustomEntityData :{animations:[{... }]}}}}} |
Designates item data for model states that are swapped to Can use the following parameters: item:{...} , model:"crouching" , model:"dead", frames:[{item:{...}, frame:<0-20>}]} , model:"fallback" , model:"hurt" , model:"moving" , model:"sitting" , model:"sleeping" , model:"standing" |
item_display |
1.20.5 to 1.20.6 |
v1.5.0 to v1.5.6 |
{item:{components:{"minecraft:custom_data":{custom_entity_data :{animations:[{... }]}}}}} |
Designates item data for model states that are swapped to Can use the following parameters: item:{...} , model:"crouching" , model:"dead", frames:[{item:{...}, frame:<0-20>}]} , model:"fallback" , model:"hurt" , model:"moving" , model:"sitting" , model:"sleeping" , model:"standing" |
item_display |
1.21+ |
v1.6.0+ |
{item:{components:{"minecraft:custom_data":{custom_entity_data :{animations:[{... }]}}}}} |
Designates item data for model states that are swapped to Can use the following parameters: item:{...} , model:"crouching" , model:"dead", frames:[{item:{...}, frame:<0-20>}]} , model:"fallback" , model:"flying" , model:"hurt" , model:"moving" , model:"sitting" , model:"sleeping" , model:"standing" |
item_display |
NBT Tags:
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.20.2+ |
v1.3.0 |
{data:{CustomEntityData :{... }}} |
Other tags that give functionality to custom mobs Can use the following parameters: animations:[{...}] , CustomBucketData:{...}
|
1.20.2 to 1.20.4 |
v1.3.1 to v1.4.1 |
{data:{CustomEntityData :{... }}} |
Other tags that give functionality to custom mobs Can use the following parameters: animations:[{...}] , CustomBucketData:{...} , track_color:true
|
1.20.5 to 1.21.1 |
v1.5.0 to v1.6.3 |
{"minecraft:custom_data":{custom_entity_data :{... }}} |
Other tags that give functionality to custom mobs Can use the following parameters: animations:[{...}] , custom_bucket_data:{...} , track_color:true
|
1.21.2 to 1.21.4 |
v1.7.0 to v1.8.4 |
{"minecraft:custom_data":{custom_entity_data :{... }}} |
Other tags that give functionality to custom mobs Can use the following parameters: animations:[...] , bucket:{...} , track_color:true
|
1.21.5 |
v1.8.5+ |
{"minecraft:custom_data":{custom_entity_data :{... }}} |
Other tags that give functionality to custom mobs Can use the following parameters: animate: true , bucket:{...} , track_color:true
|
† Music Discs
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{CustomRecordData :{... }}} |
Sets data for custom music discs Can use the following parameters: Name:'{...}' , play:"..."
|
1.20.5 to 1.20.6 |
v1.5.0 to v1.5.6 |
{"minecraft:custom_data":{custom_record_data :{... }}} |
Sets data for custom music discs Can use the following parameters: Name:'{...}' , play:"..." , stop:"..." (disc's original sound)
|
1.21+ |
VANILLA |
Made obsolete by minecraft:jukebox_playable:{...}
|
Smelting Outputs
Merges nbt to an item's smelting output. (Note: items won't continue smelting unless they have a valid output)
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
N/A |
Demo Vid |
{data:{smelt_data :{item:{... }}}} |
Merges item to output when smelted |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{CustomSmeltData :{... }}} |
Merges data to output when smelted Can use the following parameters: {block:"", nbt:"..."} , {entity:"", nbt:"..."} , {id:"..."} , {loot:"..."} , {storage:"..."} , {nbt:"..."}
|
1.20.5 to 1.21.3 |
v1.5.0 to v1.7.2 |
{"minecraft:custom_data":{custom_smelt_data :{... }}} |
Merges data to output when smelted Can use the following parameters: {block:"", nbt:"..."} , {entity:"", nbt:"..."} , {id:"..."} , {loot:"..."} , {storage:"..."} , {nbt:"..."}
|
1.21.4+ |
v1.8.0+ |
{"minecraft:custom_data":{smelting_output :{... }}} |
Merges data to output when smelted Can use the following parameters: {block:"", nbt:"..."} , {entity:"", nbt:"..."} , {id:"..."} , {loot:"..."} , {storage:"..."} , {nbt:"..."}
|
Block Entities
The following blocks can now be targeted using markers with associated nbt data
MC Version | DP Update | Block | Important NBT Data v1.3.0+
|
---|---|---|---|
1.20.2+ |
v1.3.0+ |
#Anvil | {data:{Items:[{...}]}} |
1.17+ |
v0.2+ |
#Campfires | {data:{Items:[{...}]}} |
1.17+ |
v0.2+ |
Cauldrons | |
1.20.2+ |
v1.3.0+ |
Chiseled Bookshelf | |
1.20.2+ |
v1.3.0+ |
Composter | {data:{output:{...}}} |
1.17+ |
v0.2+ |
Crafting Table | |
1.20.2+ |
v1.3.0+ |
Enchanting Table | {data:{Items:[{...}]}} |
1.17+ |
v0.2+ |
Fletching Table | {data:{Items:[{...}]}} |
1.17+ |
v0.2+ |
#Furnaces | {data:{RecipeUsed:{}}} |
1.20.2+ |
v1.3.0+ |
Jukebox | |
1.21+ |
v1.6.0+ |
Loom | {data:{Items:[{...}]}} |
1.17+ |
v0.2+ |
Smithing Table | {data:{Items:[{...}]}} |
† Attribute
MC Version | DP Update | Function | Description | Macro Arguments |
---|---|---|---|---|
1.20.2 to 1.20.6 |
v1.3.0 to v1.5.6 |
data_api:run/commands/attribute
|
Sets an attribute that persists after death | {name :"... ", set :... } |
1.21+ |
VANILLA |
REMOVED | Made obsolete by base attributes being kept when respawning |
Calculate
MC Version | DP Update | Function | Description | Macro Arguments |
---|---|---|---|---|
1.20.2 to 1.20.6 |
v1.3.0 to v1.5.6+ |
data_api:run/commands/calculate
|
Calculates a number from inputs . Arguments are assumed to be 0 if not specified. All inputs including the output can use the following paramaters: Integer # , {block:"...", nbt:"..."} , {entity:"...", nbt:"..."} , {score:{name:"...", objective:"..."}} , {storage:"...", nbt:"..."} , & {min:#, max:#}
|
{args:{input :... }}, {args:{ input2 :... }}, {args:{ operation :<add|subtract|multiply|divide|square|square_root> }}, {args:{ output :... }} |
1.21 |
v1.6.0 to 1.6.2 |
data_api:command/calculate
|
Calculates a number from inputs . Arguments are assumed to be 0 if not specified. All inputs including the output can use the following paramaters: Integer # , {block:"...", nbt:"..."} , {entity:"...", nbt:"..."} , {score:{name:"...", objective:"..."}} , {storage:"...", nbt:"..."} , & {min:#, max:#}
|
{args:{input :... }}, {args:{ input2 :... }}, {args:{ operation :<add|subtract|multiply|divide|square|square_root|range|mean|median|mode> }}, {args:{ output :... }} |
1.21.1+ |
v1.6.3+ |
data_api:command/calculate
|
Calculates a number from inputs . Arguments are assumed to be 0 if not specified. All inputs including the output can use the following paramaters: Integer # , {block:"...", nbt:"..."} , {entity:"...", nbt:"..."} , {score:{name:"...", objective:"..."}} , {storage:"...", nbt:"..."} , & {min:#, max:#}
|
{args:{input :... }}, {args:{ input2 :... }}, {args:{ operation :<add|subtract|multiply|divide|square|square_root|range|mean|median|mode> }}, {args:{ output :... }}, {args:{ restricted_output:true }} |
Command
Runs a command based on multiple contexts
Notes:
- On Container, On Inventory, & On Item adds temporary tags to help targeting:
item.target
,item.user
MC Version | DP Update | Function | Description | Macro Arguments |
---|---|---|---|---|
1.21.4 |
v1.8.0 to v1.8.4 |
data_api:command/run_command/...
|
Runs specified command Offers the following options: at_world_floor , on_container , on_item , on_inventory , while
|
{command:"..." , context:"<execute context>" (while exclusive) , slot:"..."(on_item & on_container exclusive) , target:"..." (on_item & on_container exclusive) , type:"<block|entity> (on_item & on_container exclusive)" } |
1.21.5+ |
v1.8.5+ |
data_api:command/run_command/...
|
Runs specified command Offers the following options: on_container , on_item , on_inventory
|
{command:"..." , context:"<execute context>" (while exclusive) , slot:"..."(on_item & on_container exclusive) , target:"..." (on_item & on_container exclusive) , type:"<block|entity> (on_item & on_container exclusive)" } |
Data Manipulation
MC Version | DP Update | Function | Macro Arguments | Description |
---|---|---|---|---|
1.21.4 |
v1.8.0 to v1.8.4 |
data_api:command/set_player_data
|
{nbt: "... ", value: "... "} |
Sets data similar to the /data command but it works on players too Can modify the following data: EnderItems , Dimension , Inventory , playerGameType , Pos , Rotation , SelectedItem , XpLevel
|
1.21.5 |
v1.8.5 |
data_api:command/modify_player_data
|
{action: "... ", nbt: "... ", value: "... "} |
Sets data similar to the /data command but it works on players too Can modify the following data: EnderItems , Dimension , equipment , Inventory , playerGameType , Pos , Rotation , respawn , SelectedItem , XpLevel
|
1.21.6+ |
v1.9.0 |
data_api:command/modify_data/...
|
{nbt: "..." , target: "..." , type: "..." } convert: { nbt: "..." , return: "#DATA_TYPES" , target: "..." , type: "..." } output: { from: {...} , nbt: "..." , target: "..." , type: "..." } player: { action: "..." , nbt: "..." , value: "..." } |
Replaces data based on specifications Offers the following actions: convert , output , player , return #DATA_TYPES offers the following values:array , boolean , byte , compound , double , float , int , item , long , short , string
|
† Disable Feedback
MC Version | DP Update | Function | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.0 to v0.2 |
dev:run/commands/feedback_null
|
Disable feedback text from a function (must be included in the code) |
1.20.2 |
v1.3.0 to v1.3.1 |
data_api:run/commands/feedback_null
|
Disable feedback text from a function (must be included in the code) |
1.20.3+ |
BROKEN |
REMOVED | Feedback text now runs before function instead of after |
Damage Item
MC Version | DP Update | Function | Macro Arguments | Description |
---|---|---|---|---|
1.21.4+ |
v1.8.0+ |
data_api:command/damage_item
|
{type:"<block|entity>" , target:"... ", damage:{... }} |
Applies specified damage to an item Can use the following parameters under "damage": {break: <|true|false|force>} , {max_damage: #} , {value: #}
|
Drop Item
MC Version | DP Update | Function | Macro Arguments | Description |
---|---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
dev:run/commands/drop_item/...
|
Drops an item from a specified slot Can use the following parameters: armor. ... , container. ... , weapon. ...
|
|
1.20.2 to 1.20.6 |
v1.3.0 to v1.5.6 |
data_api:run/commands/drop_item
|
{slot:"... "} |
Drops an item from a specified slot Can use the following parameters: armor. ... , container. ... , weapon. ...
|
1.21 to 1.21.4 |
v1.6.0 to v1.8.4 |
data_api:command/drop_item
|
{slot:"... "} |
Drops an item from a specified slot Can use the following parameters: armor. ... , container. ... , weapon. ...
|
1.21 to 1.21.4 |
v1.6.0 to v1.8.4 |
data_api:command/drop_item
|
{pickup_delay:"<true|false> ", slot:"... ", target:"... ", type: "... "} |
Drops an item from a specified slot |
Drop Items
MC Version | DP Update | Function | Macro Arguments | Description |
---|---|---|---|---|
1.21.4+ |
v1.8.0+ |
data_api:command/drop_items
|
{type:"<block|entity>" , target:"... ", nbt:"... "} |
Removes data in an array and drops them as items |
Raycast
Runs a command either on the block or as the entity you're looking at. The following temporary tags are also applied to help targeting: raycast.block
, raycast.entity
, raycast.user
MC Version | DP Update | Function | Macro Arguments | Description |
---|---|---|---|---|
1.21.2 to 1.21.4 |
v1.7.0 to v1.8.2 |
data_api:command/raycast/...
|
{cast:"..." (with_cast only) , command:"..." , entity:"..." (on_entity only) , distance:"#" } |
Runs a command on the position you're looking at. Can use the following parameters: on_block(_with_cast) , on_block_and_entity(_with_cast) , on_entity(_with_cast)
|
1.21.4+ |
v1.8.3+ |
data_api:command/raycast/...
|
{command:"..." , context:"..." (with_context only) , entity:"..." (on_entity only) , distance:"#" } |
Runs a command on the position you're looking at. Can use the following parameters: on_block(_with_context) , on_block_and_entity(_with_context) , on_entity(_with_context)
|
Remove Entity
MC Version | DP Update | Function | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.0 to v0.2 |
dev:run/commands/remove/...
|
Removes 1 from an item entity's count or kills entity without drops/particle effects Can use the following parameters: entity , item
|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
data_api:run/commands/remove_...
|
Removes 1 from an item entity's count or kills entity without drops/particle effects Can use the following parameters: entity , item
|
1.20.5 to 1.20.6 |
v1.5.0 to v1.5.6 |
data_api:run/commands/remove
|
Kills an entity without drops/particle effects |
1.21 to 1.21.3 |
v1.6.0 to v1.7.2 |
data_api:command/remove
|
Kills an entity without drops/particle effects |
1.21.4+ |
v1.8.0+ |
data_api:entity/remove
|
Kills an entity without drops/particle effects |
String Manipulation
MC Version | DP Update | Function | Macro Arguments | Description |
---|---|---|---|---|
1.21.6+ |
v1.9.0+ |
data_api:command/string/... | {nbt: "..." , target: "..." , type: "..." } |
Modifies string data Offers the following options: combine , convert_to_list , unpack
|
† Tag Thrower
MC Version | DP Update | Function | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.0 to v0.2 |
dev:run/commands/tag_thrower
|
Tags an item's thrower with dev.TempThrower to be targeted. Must be removed when finished (run as item entity) |
1.20.2+ |
VANILLA |
REMOVED | Made obsolete by macros
|
Dye Randomly
MC Version | DP Update | Modifier | Description |
---|---|---|---|
1.20.2 to 1.20.6 |
v1.3.0 to v1.5.6 |
data_api:function/dye_randomly | Sets a random dye color |
1.21+ |
v1.6.0+ |
data_api:function/dye_randomly | Sets a random dye/potion color |
† Food Presets
MC Version | DP Update | Modifier | Description |
---|---|---|---|
1.20.5 to 1.21.1 |
v1.5.0 v1.6.3 |
minecraft:food_preset/...
|
Sets the "minecraft:food" data of an item from vanilla minecraft |
1.21.2+ |
REDUNDANT |
REMOVED | Not useful enough to keep |
Set Color
MC Version | DP Update | Modifier | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
dev:set_nbt/display/color/...
|
Dye item based on dye colors |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
data_api:function/set_color/...
|
Dye item based on dye colors |
1.20.5+ |
v1.5.0+ |
data_api:function/set_color/...
|
Dye item based on dye/potion colors |
Set Count
MC Version | DP Update | Modifier | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.0 to v0.2 |
dev:set_count/<add|remove|set> _...
|
Adds, removes, or sets an item's count nbt |
1.20.2+ |
v1.3.0+ |
data_api:set_count/<add|remove|set> _...
|
Adds, removes, or sets an item's count nbt |
Set Potion Color
MC Version | DP Update | Modifier | Description |
---|---|---|---|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
data_api:function/set_potion_color/...
|
Set an item's CustomPotionColor based on effect colors |
1.20.5+ |
v1.5.0+ |
REMOVED | item modifiers now set data instead of merge(?) |
Allow in Bookshelf
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{book:true }} |
Allows item to be placed inside a chiseled bookshelf |
1.20.5+ |
v1.5.0+ |
{"minecraft:custom_data":{book:true }} |
Allows item to be placed inside a chiseled bookshelf |
Drop From Inventory
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.4 |
v0.2 to v1.4.1 |
{data:{inv_drop:true }} |
Sets an item to drop from a player's inventory |
1.20.5+ |
v0.5.0+ |
{"minecraft:custom_data":{drops_from_inventory:true }} |
Sets an item to drop from a player's inventory |
† Food
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.0 to v0.2 |
{data:{Effects:[{id:"dev:preset" , item :"#ANY_VANILLA_ITEM" }]}} |
Copies the effects of vanilla foods when consumed |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{Effects:[{id:"data_api:preset" , item :"#ANY_VANILLA_ITEM" }]}} |
Copies the effects of vanilla foods when consumed |
1.16 to 1.20.4 |
v0.0 to v1.4.1 |
{data:{Effects:[{id:"minecraft:saturation" , lvl :<1 to 255> }]}} |
Adds saturation when consumed |
1.20.5+ |
VANILLA |
REMOVED | Made obsolete by "minecraft:food":{...}
|
1.16 to 1.20.2 |
v0.0 to v0.2 |
{data:{ReturnItem :"... "}} |
Returns a specified item when consumed Can use the following values: minecraft:bowl , minecraft:bucket , minecraft:glass_bottle , minecraft:stick
|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{return_item :"... "}} |
Returns a specified item when consumed Can use the following values: minecraft:bowl , minecraft:bucket , minecraft:glass_bottle , minecraft:stick
|
1.20.5 to 1.20.6 |
v1.5.0 to v1.5.6 |
{"minecraft:custom_data":{return_item :{... }}} |
Returns a specified item when consumed Can use the following parameters: components:{...} , count:... , id:"..."
|
1.20.5+ |
VANILLA |
REMOVED | Made obsolete by "minecraft:food":{using_converts_to:{...}}
|
† Fireproofing
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.0 to v0.1 |
{data:{FireCMD :... }} {data:{ Fireproof:true }} |
Sets custom_model_data of the temporary netherite_scrap Turns into netherite_scrap when on fire; returns to normal in your inventory |
1.17 to 1.20.2 |
v0.2 |
{data:{fire_cmd :... }} {data:{ fireproof:true }} |
Sets custom_model_data of the temporary netherite_scrap Turns into netherite_scrap when on fire; returns to normal in your inventory |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{fireproof:true }} |
Makes item invulnerable when set on fire |
1.20.5+ |
VANILLA |
REMOVED | Made obsolete by "minecraft:fire_resistant":{}
|
Item Commands
Notes:
- The hand of the last
attack|consume|use
item run will be stored on the scoreboard objective:item.HandUsed (v1.8.3 and below)
, anditem.hand_used (v1.8.3+)
- The slot of the last
tick
item run will be stored on the scoreboard objective:item.SlotUsed (v1.8.2 and below)
, anditem.slot_used (v1.8.3+)
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.16 to 1.20.4 |
v0.2 to v1.4.1 |
{data:{delete:true }} |
Deletes item when dropped or spawned in |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{copy_data :{... }}} |
Copies from provided data to item when dropped or spawned in Can use the following parameters: {block:"", nbt:"..."} , {entity:"", nbt:"..."} , {id:"..."} , {loot:"..."} , {storage:"..."} , {nbt:"..."}
|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{run_command :"... "}} |
Runs a command when the item is dropped or spawned in |
1.16 to 1.20.2 |
v0.2 |
{summon :"... "} |
Summons an entity when the item is dropped or spawned in |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{summon :{... }}} |
Summons an entity when the item is dropped or spawned in Can use the following parameters: {type:"..."} , {nbt:"..."} , {position:"..."}
|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{use :{... }}} |
Sets a use function to an item Can use the following parameters: delete:true , disable_riding:true , hand:"<mainhand|offhand>" , run_command:"..."
|
1.20.5 to 1.20.6 |
v1.5.0 to v1.5.6 |
{"minecraft:custom_data": {#TRIGGER : {... }}} |
Runs commands when triggered Uses the following triggers: attack , consume , drop , tick , use Can use the following parameters: apply_damage:true , convert_item:{...} (!consume) , delete:true (!consume) , disable_riding:true (use) , entity_data:{...} (!consume, !use) , function:"..." , hand:"<mainhand|offhand> (!drop, !tick)" , loot:"..." , max_uses:... , on_ground:true (drop) , on_target:true , particle:"..." , playsound:"..." , predicate:"..." , run_command:"..." , slot:... (tick) , summon:"..."
|
1.21 to 1.21.1 |
v1.6.0 to v1.6.3 |
{"minecraft:custom_data": {#TRIGGER : {... }}} |
Runs commands when triggered Uses the following triggers: attack , consume , drop , tick , use Can use the following parameters: apply_damage:true , convert_item:{...} (!consume) , delete:true (!consume) , disable_riding:true (use) , entity_data:{...} (!consume, !use) , function:"..." , hand:"<mainhand|offhand> (!drop, !tick)" , loot:"..." , max_uses:... , on_ground:true (drop) , on_target:true , particle:"..." , playsound:"..." , predicate:"..." , run_command:"..." , slot:... (tick) , summon:"..." , swap:[...] (!consume, !drop)
|
1.21.2 |
v1.7.0 to v1.7.1 |
{"minecraft:custom_data": {#TRIGGER : {... }}} |
Runs commands when triggered Uses the following triggers: attack , consume , drop , tick , use Can use the following parameters: apply_damage:true , convert_item:{...} (!consume) , cooldown:... (use) , delete:true (!consume) , disable_riding:true (use) , entity_data:{...} (!consume, !use) , function:"..." , hand:"<mainhand|offhand> (!drop, !tick)" , loot:"..." , max_uses:... , on_ground:true (drop) , on_target:true , particle:"..." , playsound:"..." , predicate:"..." , run_command:"..." , slot:... (tick) , summon:"..." , swap:[...] (!consume, !drop)
|
1.21.3 to 1.21.4 |
v1.7.2 to v1.8.2 |
{"minecraft:custom_data": {#TRIGGER : {... }}} |
Runs commands when triggered Uses the following triggers: attack , consume , drop , tick , use Can use the following parameters: apply_damage:true , convert_item:{...} (!consume) , cooldown:... (use) , delete:true (!consume) , disable_riding:true (use) , entity_data:{...} (!consume, !use) , function:"..." , hand:"<mainhand|offhand> (!drop, !tick)" , loot:"..." , max_uses:... , on_ground:true (drop) , on_target:true , particle:"..." , predicate:"..." , run_command:"..." , slot:... (tick) , sound:"..." , summon:"..." , swap:[...] (!consume, !drop)
|
1.21.4+ |
v1.8.3+ |
{"minecraft:custom_data": {item_commands : [{trigger: "#TRIGGER ", ... }]}} |
Runs commands when triggered Uses the following triggers: "data_api:dropped_item" , "data_api:equipped_item" , "minecraft:consume_item" , "minecraft:player_hurt_entity" , "minecraft:tick" , "minecraft:using_item" Can use the following parameters: convert_item:{...} (!consume) , delete:true (!consume) , entity_data:{...} (!consume, !use) , function:"..." , loot:"..." , on_ground:true (drop) , on_target:true , particle:"..." , predicate:"..." , run_command:"..." , slot:... , sound:"..." , summon:"..." , swap:[...] (!consume, !drop)
|
MC Version | DP Update | "minecraft:custom_data" | Description |
---|---|---|---|
1.21.4+ |
v1.8.3+ |
{item_command_data : {... }} |
Data used for Item Commands Can use the following parameters: apply_damage:true , checked: <true|false> , cooldown:... (use) , disable_riding:true , max_uses:... , use_type: "..." , swap_id:...
|
Make Compostable
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{compost :... }} |
Allows item to interact with the composter Can use the following parameters: <1-100> , false , true
|
1.20.5 to 1.21.4 |
v1.5.0 to v1.8.4 |
{"minecraft:custom_data":{compost :... }} |
Allows item to interact with the composter Can use the following parameters: <1-100> , false , true
|
1.21.5+ |
v1.8.5+ |
{"minecraft:custom_data":{compostable :{... }}} |
Allows item to interact with the composter Can use the following parameters: chance: <1-100>
|
† Original Name
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.4 |
v0.0 to v1.4.1 |
{display:{OriginalName :'{"...":"..."}' }} |
If item's display name matches this value it will not show up when placed in an item frame
|
1.20.5+ |
VANILLA |
REMOVED | Made obsolete by "minecraft:item_name":"..."
|
Place on Crafting Station
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data: {craftable_on : ["... "]}} |
Used with block entities as an option for custom recipes. Can use the following parameters: "minecraft:anvil" , "minecraft:enchanting_table" , "minecraft:fletching_table" , "minecraft:smithing_table"
|
1.20.5 to 1.20.6 |
v1.5.0 to v1.5.6 |
{"minecraft:custom_data": {craftable_on : ["... "]}} |
Used with block entities as an option for custom recipes. Can use the following parameters: "minecraft:anvil" , "minecraft:enchanting_table" , "minecraft:fletching_table" , "minecraft:smithing_table"
|
1.21 to 1.21.4 |
v1.6.0 to v1.8.2 |
{"minecraft:custom_data": {craftable_on : ["... "]}} |
Used with block entities as an option for custom recipes. Can use the following parameters: "minecraft:anvil" , "minecraft:enchanting_table" , "minecraft:fletching_table" , "minecraft:loom" , "minecraft:smithing_table"
|
1.21.4+ |
v1.8.3+ |
{"minecraft:custom_data": {craftable_on : {blocks: ["... "]}}} |
Used with block entities as an option for custom recipes. Can use the following parameters: "minecraft:anvil" , "minecraft:enchanting_table" , "minecraft:fletching_table" , "minecraft:loom" , "minecraft:smithing_table"
|
† Prevent Equipping
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
{data:{no_equip:true }} |
Prevents entities from wearing item |
1.20.2+ |
v1.3.0+ |
{data:{prevent_equip:true }} |
Prevents entities from wearing item |
1.20.5 to 1.21.1 |
v1.5.0 to v1.6.3 |
{"minecraft:custom_data":{prevent_equip:true }} |
Prevents entities from wearing item |
1.21.2+ |
VANILLA |
REMOVED | Made obsolete by "!minecraft:equippable"
|
Prevent Fuel Use
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.2 |
{data:{no_burn:true }} |
Prevents item from being used as fuel |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{prevent_fuel:true }} |
Prevents item from being used as fuel |
1.20.5+ |
v1.5.0+ |
{"minecraft:custom_data":{prevent_fuel:true }} |
Prevents item from being used as fuel |
† Prevent Stacking
MC Version | DP Update | NBT Tag | Description |
---|---|---|---|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
{data:{no_stack:true }} |
Prevents an item from stacking with other items |
1.20.5+ |
VANILLA |
REMOVED | Made obsolete by "minecraft:max_stack_size":...
|
† Match Brightness
MC Version | DP Update | Objective | Description |
---|---|---|---|
1.20 to 1.20.2 |
v0.2 |
dev.DsplLight | Set display entity's brightness level based on surroundings instead of location. Set to -1 to initialize |
1.20.2 to 1.21.4 |
v1.3.0 to v1.8.4 |
match.Brightness | Set display entity's brightness level based on surroundings instead of location. Set to -1 to initialize |
1.21.5+ |
REDUNDANT |
REMOVED | Not useful enough to keep |
Set Light
MC Versions | DP Update | Objective | Description |
---|---|---|---|
1.17 to 1.20.2 |
v0.0 to v0.2 |
dev.SetLight | Set a light block where the entity is standing Light level depends on the score |
1.20.2+ |
v1.3.0+ |
set.Light | Set a light block where the entity is standing Light level depends on the score |
† Attributes
MC Version | DP Update | Predicate | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.0 to v0.2 |
dev:entity_properties/attributes/...
|
Checks if entity has a specified attribute |
1.20.2 to 1.21.4 |
v1.3.0 to v1.8.4 |
data_api:attributes/...
|
Checks if entity has a specified attribute |
1.21.5+ |
REDUNDANT |
REMOVED | Not useful enough to keep |
Effects
MC Version | DP Update | Predicate | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.0 to v0.2 |
dev:entity_properties/effects/...
|
Checks if entity has a specified potion effect |
1.20.2+ |
v1.3.0+ |
data_api:effects/...
|
Checks if entity has a specified potion effect |
Flags
MC Version | DP Update | Predicate | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.1 |
dev:entity_properties/flags/...
|
Checks the state of an entity Can use the following parameters: is_baby , is_dead , is_hurt , is_moving , is_riding , is_sitting , is_sneaking
|
1.16 to 1.20.2 |
v0.2 |
dev:entity_properties/flags/...
|
Checks the state of an entity Can use the following parameters: has_been_bred ,is_baby , is_dead , is_hurt , is_moving , is_riding , is_sitting , is_sneaking
|
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
data_api:flags/...
|
Checks the state of an entity Can use the following parameters: has_been_bred , is_baby , is_crouching , is_dead , is_hurt , is_moving , is_on_fire , is_riding , is_sitting , is_sleeping , is_sneaking , is_sprinting , is_swimming
|
1.20.5 to 1.21.2 |
v1.5.0 to v1.7.1 |
data_api:flags/...
|
Checks the state of an entity Can use the following parameters: has_bred , is_baby , is_crouching , is_dead , is_hurt , is_moving , is_riding , is_scared , is_sitting , is_sleeping , is_sneaking , is_sprinting , is_swimming , on_fire
|
1.21.3+ |
v1.7.2+ |
data_api:flags/...
|
Checks the state of an entity Can use the following parameters: has_bred , is_baby , is_crouching , is_dead , is_hurt , is_moving , is_riding , is_scared , is_sitting , is_sleeping , is_sneaking , is_sprinting , is_swimming , looking_at_entity , on_fire
|
Input
MC Version | DP Update | Predicate | Description |
---|---|---|---|
1.21.2+ |
v1.7.0+ |
data_api:input/...
|
Checks if player pressed a specific input Can use the following parameters: backward , forward , jump , left , right , sneak , sprint
|
Light Level
MC Version | DP Update | Predicate | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.0 to v0.2 |
dev:location_check/light/<is|max|min> _...
|
Checks if location's light level is above, below, or matches a specific value |
1.20.2+ |
v1.3.0+ |
data_api:location_check/light/<is|max|min> _...
|
Checks if location's light level is above, below, or matches a specific value |
Random Chance
MC Version | DP Update | Predicate | Description |
---|---|---|---|
1.16 to 1.20.2 |
v0.0 to v0.2 |
dev:random_chance/... _of_20 |
Is true between two values at random |
1.20.2 to 1.20.4 |
v1.3.0 to v1.4.1 |
data_api:random_chance/... _of_20 |
Is true between two values at random |
1.20.5+ |
v1.5.0+ |
data_api:random_chance/... _of_100 |
Is true between two values at random |
Components
MC Version | DP Update | Name | Path | Description |
---|---|---|---|---|
1.21.6+ |
v1.9.0+ |
global:store | components[{... }] |
Sets components that can be used in the /function global:give command Uses the following parameters: aliases: [...] (dynamic mode only) , id: "..." , mode: "<dynamic | function | modifier>" , range: {max: ..., min: ...} (dynamic mode only) , type: "<boolean | int | string>" , value: "..." , values: <"..." | [{key: "...", value: "..."}]>
|
Entities
MC Version | DP Update | Name | Path | Description |
---|---|---|---|---|
1.20.3 to 1.20.6 |
v1.4.0 to v1.5.6 |
data:store | ENTITY.#TYPE ....
|
Sets an array of functions for an entity Supports the following types: "minecraft:item" , "#minecraft:item_frames" , "minecraft:player" , "#minecraft:villagers" Can use the following parameters: dead ("minecraft:player" only) , level_up ("#minecraft:villagers" only) , loadup , glow_item_frame ("#minecraft:item_frames" only) , item_frame ("#minecraft:item_frames" only) , revived ("minecraft:player" only) , villager ("#minecraft:villagers" only) , wandering_trader ("#minecraft:villagers" only)
|
1.21 |
v1.6.0 |
data_api:store | ENTITY.#TYPE ....
|
Sets an array of functions for an entity Supports the following types: "minecraft:item" , "#minecraft:item_frames" , "minecraft:player" , "#minecraft:villagers" Can use the following parameters: dead ("minecraft:player" only) , level_up ("#minecraft:villagers" only) , loadup , glow_item_frame ("#minecraft:item_frames" only) , item_frame ("#minecraft:item_frames" only) , revived ("minecraft:player" only) , villager ("#minecraft:villagers" only) , wandering_trader ("#minecraft:villagers" only)
|
1.21 to 1.21.4 |
v1.6.1 to v1.8.4 |
data_api:store | ENTITY.#TYPE ....
|
Sets an array of functions for an entity Supports the following types: "minecraft:item" , "minecraft:item_frame" , "minecraft:glow_item_frame" , "minecraft:player" , "minecraft:villager" , "minecraft:wandering_trader" Can use the following parameters: dead (player only) , level_up (villager only) , loadup , revived (player only)
|
1.21.5 |
v1.8.5+ |
data_api:store | entities.#TYPE ....
|
Sets an array of functions for an entity Supports the following types: "minecraft:player" , "minecraft:villager" Can use the following parameters: dead (player only) , level_up (villager only) , revived (player only)
|
Options
Pack Version | Command | Description | Macro Arguments |
---|---|---|---|
v0.0 to v0.1 |
/function dev:settings | Summons a settings book
|
|
v0.2 |
/function settings:data_api | Summons a settings book
|
|
v1.3.0 to v1.5.6 |
/function gamerule:data_api/developer_mode | Toggles "developer mode"
|
{set :"<true|false>" } |
v1.6.0 to v1.6.2 |
/function gamerule:data_api/...
|
Toggles setting Can use the following parameters: block_entities , developer_mode
|
{set :"<true|false>" } |
v1.6.3+ |
/function gamerule:data_api/...
|
Toggles setting Can use the following parameters: block_entities , developer_mode , load_text
|
{set :"<true|false>" } |
Uninstall
Pack Version | Command |
---|---|
v0.0 to v0.1 |
/function uninstall:developer_resources |
v0.2+ |
/function uninstall:data_api |
[Expand]
Version ID | Release Date | Changelog |
---|---|---|
1.19_v0.0 |
Jun-6th-2023 |
MISC: Launched "Developer Resources" • added settings book FUNCTIONS: Added disable_connected_hoppers • added feedback_null • added item_stop • added remove/... • added tag_thrower • added tellraw/clear ITEM MODIFIERS: Added set_count/... • added set_damage/... ITEM NBT TAGS: Added Duarbility • added Effects • added Enchantments • added Fireproof • added OriginalName • added ReturnItem OBJECTIVES: Added dev.SetLight PREDICATES: Added effects/... • added has_inventory_space • added is_riding • added is_sneaking • added in_void • added light/... • added random_chance/...
|
1.20_v0.1 |
Jun-12th-2023 |
MISC: Added Custom Mob Support OBJECTIVES: Added dev.MaxHealth PREDICATES: Added is_baby • added is_dead • added is_hurt • added is_moving • added is_sitting
|
1.20_v0.2 |
Nov-8th-2023 |
MISC: Renamed to "Data API" • moved settings command BLOCKS: Added customizable GUIs • converted [ #campfires , #cauldrons , crafting_table , composter , fletching_table , #furnaces , smithing_table ] into targetable entities FUNCTIONS: Added copy/name_to_customname • added copy/entity_data • added copy/entity_data_from_tag • added drop_item/... ITEMS & MODIFIERS: Added nbt tag CustomHatData • added nbt tag delete:1b • added nbt tag inv_drop:1b • added nbt tag no_equip:1b • added nbt tag summon • added modifier dev:set_nbt/display/color/... Renamed nbt tag NoBurn:1b to no_burn:1b OBJECTIVES: Added dev.DsplLight Removed dev.Effect PREDICATES: Added dev:location_check/is_lit • added dev:entity_properties/attributes/... • added dev:entity_properties/flags/has_been_bred
|
1.20_v1.3.0 |
May-4th-2024 |
MISC: Changed namespace from "dev" to "data_api" BLOCKS: Updated "Block Entities" [added: Anvil, Enchanting Table, Chiseled Bookshelf, Composter, & Jukebox] • updated Custom GUIs (added more command options & removed page limit) ENTITIES: Updated Custom Mobs (added more modelstates , added custom bucket data , removed death framelimit) FUNCTIONS: Added run/commands/attribute • added run/commands/calculate Removed dev:run/commands/array/... • removed dev:run/commands/copy/... • removed dev:run/commands/disable_connected_hoppers • removed dev:run/commands/item_stop • removed dev:run/commands/locate_floor • removed dev:run/commands/tag_thrower • removed dev:run/commands/tellraw/clear Renamed dev:run/commands/remove/entity to "data_api:run/commands/remove_entity" • renamed dev:run/commands/remove/item to "data_api:run/commands/remove_item" Updated run/commands/drop_item ITEM MODIFIERS: Added function/dye_randomly • added function/set_potion_color Renamed set_nbt/color/... to "function/set_color/..." Updated set_count/... • updated set_damage/... NBT TAGS: Added book • added compost • added copy_data • added craftable_on • added CustomArmorColor • added CustomRecordData • added CustomSmeltData • added no_stack • added use • added run_command Removed FireCMD Renamed dev:preset to "data_api:preset" • renamed Durability to CustomDurabilityData • renamed no_burn to "prevent_fuel" • renamed no_equip to "prevent_equip" Updated preset added "chorus_fruit" • updated CustomDurabilityData • updated {data:{Enchantments:[...]} (name now modifies based on level ) • updated summon • updated return_item • updated fireproof OBJECTIVES: Renamed dev.AdvTrigger to "adv.Trigger" • renamed dev.DsplLight to "match.Brightness" • renamed dev.GUI to "gui.Page" • renamed dev.GUIbutton to "gui.Button" • renamed dev.SetLight to "set.Light" PREDICATES: Added flags/is_crouching • added flags/is_on_fire • added flags/is_sleeping • added flags/is_sprinting • added flags/is_swimming Removed location_check/block_is_lit • removed location_check/in_void Renamed entity_settings/attributes/... to "attributes/..." • renamed entity_settings/effects/... to "effects/..." • renamed entity_settings/flags/... to "flags/..." SETTINGS: Added gamerule:data_api/developer_mode Removed settings:data_api
|
1.20_v1.3.1 |
May-8th-2024 |
MISC: Misc bug fixes • misc feedback text changes • transfered assets ENTITIES: Added nbt tag track_color:1b to custom entitiesRemoved model tag dead_suffocating • removed model tag hurt_suffocating • removed model tag suffocating
|
1.20_v1.4.0 |
May-25th-2024 |
MISC: Updated to Minecraft 1.20.3 BLOCKS: Updated Block Entities : taking items now uses left-click instead of right-click • updated Block Entities : taking items now uses entity.item.pickup sound effect instead of block.wood.break FUNCTIONS: Removed feedback_null NBT TAGS: Fixed bug with CustomSmeltData having failed hopper outputs STORAGES: Added ENTITY."minecraft:item" • added ENTITY."#minecraft:item_frames" • added ENTITY."minecraft:player" • added ENTITY."#minecraft:villagers"
|
1.20_v1.4.1 |
May-28th-2024 |
Updated to Minecraft 1.20.4
|
1.20_v1.5.0 |
Jun-12-2024 |
MISC: Fixed Block Entities bug with #minecraft:pistons • updated to Minecraft 1.20.5 BLOCKS: Updated Custom GUIs ENTITIES: Updated Custom Mobs FUNCTIONS: Removed run/commands/remove_item Updated run/commands/remove_entity ITEM MODIFIERS: Added minecraft:food_preset/... Removed data_api:function/set_potion_color/... • removed data_api:set_damage/... Updated data_api:function/set_color/... • updated data_api:set_count/... NBT TAGS: Added attack • added consume • added tick Updated book • updated compost • updated craftable_on • updated CustomArmorColor • updated CustomHatData • updated CustomRecordData • updated CustomSmeltData • updated inv_drop • updated prevent_fuel • updated use • updated return_item OBJECTIVES: Updated set.Light PREDICATES: Added flags/is_scared Updated flags/has_been_bred • updated flags/is_on_fire • updated random_chance/...
|
1.20_v1.5.1 |
Jun-16th-2024 |
Misc changes |
1.20_v1.5.2 |
Jun-25th-2024 |
MISC: Updated Custom GUIs (added player & minecart guis) NBT TAGS: Updated custom_hat_data • updated tick
|
1.20_v1.5.3 |
Jun-28th-2024 |
BUGS: Fixed bug where convert_item continuously drops item • fixed bug where composters couldn't use custom outputs • fixed bug where the item_tags /tags custom_data tag wouldn't clear • fixed bug where the pack /pack_id custom_data tag wouldn't clear |
1.20_v1.5.4 |
Jul-1st-2024 |
Fixed bug where Campfires disable Hoppers when not smelting |
1.20_v1.5.5 |
Jul-4th-2024 |
Updated to Minecraft 1.20.6
|
1.20_v1.5.6 |
Jul-8th-2024 |
Miscellaneous bug fixes |
1.21_v1.6.0 |
Jul-22th-2024 |
MISC: Renamed path data_api:run/... to data_api:... • optimized code BLOCKS: Fixed bug: composter custom output breaks with hoppers Added minecraft:loom to block_entities list CONTAINERS: Updated gui nbt tag • updated data.GUI to data.gui • updated PlayerGUI to player_gui ENTITIES: Fixed bug: custom_bucket_data breaks in creative mode Updated custom_mob (added "flying" model type) FUNCTIONS: Removed attribute Updated calculate ITEM MODIFIERS: Updated data_api:functions/dye_randomly • updated data_api:functions/set_color/... NBT TAGS: Removed custom_record_data • removed return_item Renamed custom_armor_color to custom_armor_data PREDICATES: Added data_api:flags/can_see_sky • added data_api:flags/is_flying • added data_api:flags/on_ground Updated data_api:attributes/... • updated data_api:effects/... STORAGES: Updated data:store to data_api:store
|
1.21_v1.6.1 |
Jul-31st-2024 |
CONTAINERS: Fixed custom_gui remove_page command • fixed bug with custom_gui buttons running when pages were swapped to NBT TAGS: Fixed bug with custom_armor_data (no longer overides tooltip display) STORAGES: Updated ENTITY
|
1.21_v1.6.2 |
Aug-6th-2024 |
Fixed bug with detecting if this datapack is loaded |
1.21_v1.6.3 |
Aug-16th-2024 |
MISC: Updated to Minecraft 1.21.1 COMMANDS: Fixed bug where calculate would return a number other than 0 for a false nbt checkUpdated calculate (added parameter "restricted_output") • updated calculate ("mode" operation can now output multiple values) CONTAINERS: Updated minecart_gui to also work on minecraft:chest_boat SETTINGS: Added load_text toggle option |
1.21_v1.7.0 |
Nov-8th-2024 |
MISC: Updated to Minecraft 1.21.2 ENTITIES: Updated custom_entity_data FUNCTIONS: Added raycast/... ITEM MODIFIERS: Removed food_preset/... NBT TAGS: Removed custom_armor_data • removed custom_hat_data • removed prevent_equip Updated use PREDICATES: Added input/... SETTINGS: blockEntities is now set to false by default |
1.21_v1.7.1 |
Nov-13th-2024 |
Fixed log-spam bug |
1.21_v1.7.2 |
Dec-11th-2024 |
MISC: Updated to Minecraft 1.21.3 NBT TAGS: Renamed playsound sub-data to match the vanilla consumable format PREDICATES: Added looking_at_entity predicate TAGS: Removed from data_api:block_entities [crafting_table, jukebox] |
1.21_v1.8.0 |
Feb-21st-2025 |
MISC: Updated to Minecraft 1.21.4 BUGS: Fixed custom_mob teleport incompatability • fixed furnace output inconsistency CONTAINERS: Removed custon_gui support FUNCTIONS: Added drop_items • added run_command/... • added set_player_data Removed reset_base_attributes Updated command/remove (now entity/remove ) NBT TAGS: Updated apply_damage sub-tag • updated custom_entity_data • updated custom_smelt_data (now smelting_output ) TAGS: Updated data_api:compost/...
|
1.21_v1.8.1 |
Feb-26th-2025 |
Fixed bugs relating to NBT tags
|
1.21_v1.8.2 |
Mar-19th-2025 |
Fixed bug where loot won't summon through command_from_data
|
1.21_v1.8.3 |
Apr-13th-2025 |
BUGS: Fixed book tag not playing sound when added to chiseled_bookshelf • fixed crafting_station displays disappearing • fixed crafting_station interactions disappearing when next to eachother • fixed crafting_station being unable to be interacted with ENTITIES: Updated block_entities FUNCTIONS: Updated raycast NBT TAGS: Updated craftable_on • updated item_commands : added [equip, player_hurt] , merged [attack, consume, drop, tick, use] OBJECTIVES: Updated item.hand_used • updated item.slot_used
|
1.21_v1.8.4 |
May-7th-2025 |
Fixed item_command triggers: ["data_api:dropped_item" , "minecraft:tick" ] • fixed function command/apply_damage ignoring "minecraft:max_damage" component • fixed function command/calculate mode operation |
1.21_v1.8.5 |
May-12th-2025 |
MISC: Updated to Minecraft 1.21.5 BUGS: Fixed composter not being able to be interacted with FUNCTIONS: Updated modify_player_data • updated run_command/... ENTITIES: Updated custom_mobs NBT TAGS: Updated compostable OBJECTIVES: Removed match.Brightness PREDICATES: Removed attributes/... STORAGES: Updated data_api:store entities |