Trying to dynamically create some json files in an asset folder so that the mod MoreCreativeTabs can read them.
This is my code. I get no errors but it does not seem to affect anything in the mod.
ClientEvents.highPriorityAssets(event => {
console.log('Customizing creative tabs...');
event.add('minecraft:morecreativetabs/disabled_tabs.json', {
"disabled_tabs": [
"brewing",
"decorations"
]
});
event.add('minecraft:morecreativetabs/building_blocks.json', {
"tab_enabled": true,
"tab_name": "building_blocks",
"replace": true,
"tab_stack": {
"name": "minecraft:rail"
},
"tab_items": [
{
"name": "minecraft:soul_torch",
"nbt": "{customName: \"Oi Govener!\"}"
}
]
});
});