Port of the Discholder mod from Minecraft JE 1.16.5 to Minecraft PE 1.16.200 on InnerCore 2.0+ / Horizon
DischolderPE mod provides you with a small shared API, which you can use to create new discholder blocks, or add another items to be put in the discholder (for example, if you have new music discs in your mod)
ModAPI.addAPICallback("DischolderCore", function(api){
let Core = api.Core;
// Create new discholder block
// "superDischolder" - string id of the new block
// "discholder.super" - translation key for this block's name. Then you can write `Translation.addTranslation('discholder.super', {en: "Super Discholder", ru: "Супер-подставка для дисков"})`
// Mod will use textures of two blocks to create model, by default these are oak planks and all colors of the wool
// Next params in order: base_block_id, base_block_data, cover_block_id, cover_block_data
// Discholder is crafted of definite wood fence and slab. Specify their ids for your discholder in last two params.
Core.create("superDischolder", "discholder.super", BlockID.superPlanks, 0, BlockID.superWool, 0, BlockID.superFence, BlockID.superSlab);
// After calling this method, you will be able to put item with given id and data in the discholder.
Core.addDisc(ItemID.mySuperDisc, 0);
});