Data packs should have section which allows for creative inventory sort file.
Each json will have a section for the items in the tab which contains item ids and/or item tags (which will add the items in order in the tag list), the tab icon item, the tab position (0-8), and an option for the page (which can be main to replace the main inventory or new to create a new page).
Example code which would replace the third 4th tab (transportation) with a stone pickaxe icon with 3 items in the first row, and 3 items in the second row.
{
"icon": "minecraft:stone_pickaxe",
"position": 3,
"page": "main",
"items": [
{
"minecraft:sand", "minecraft:stone", "minecraft:gravel"
},
{
"minecraft:stone_axe", "#minecraft:foods", item:{id:"minecraft:potion",tag={Potion:"minecraft:slow_falling"}}
}
]
}
Please sign in to leave a comment.
0 Comments