
import {
    system
} from "@minecraft/server";


export function sendNotification(player, message, image, soundType) {
    player.sendMessage(`toast.${message}${message.length < 200 ? "$".repeat(200 - message.length) : ""}${image}${image.length < 200 ? "$".repeat(200 - image.length) : ""}`)
    if (soundType !== undefined) {
        if (player && player.isValid)
            player.playSound("toast.mm." + soundType, { volume: 0.55 });
        system.runTimeout(() => {
            if (player && player.isValid)
                player.playSound("toast.mm.out", { volume: 0.36, pitch: 0.8 });
        }, 108);
    }
}

import "./blockBehaviour/orbPonderer.js"
import "./blockBehaviour/flickerwick.js"
import "./blockBehaviour/oreFortune.js"
import "./blockBehaviour/cursedTile.js"
import "./blockBehaviour/slab.js"
import "./blockBehaviour/sanctuaryVault.js"
import "./blockBehaviour/ignoreSilkTouch.js"
import "./blockBehaviour/sanctuaryKeyHolder.js"
import "./blockBehaviour/jukebox.js"
import "./blockBehaviour/permafrostIcicle.js"
import "./blockBehaviour/chiller.js"
import "./blockBehaviour/shockweed.js"
import "./blockBehaviour/magneticPiston.js"
import "./blockBehaviour/sparklingTorch.js"
import "./blockBehaviour/brazier.js"
import "./blockBehaviour/pinkPlushie.js"
import "./blockBehaviour/fakeCactus.js"
import "./blockBehaviour/scrubelTreasure.js"
import "./blockBehaviour/unobtaniumTransporter.js"



import "./itemBehaviour/boozePotion.js"
import "./itemBehaviour/depleteDurability.js"
import "./itemBehaviour/popsicle.js"
import "./itemBehaviour/occuleye.js"
import "./itemBehaviour/icarusBoots.js"
import "./itemBehaviour/azsilvaCarrot.js"
import "./itemBehaviour/halberd.js"
import "./itemBehaviour/demonArmour.js"
import "./itemBehaviour/warpKey.js"
import "./itemBehaviour/alteredKey.js"
import "./itemBehaviour/fangangler.js"


import "./magicSystem/main.js"

import "./customEffects/main.js"


import "./entityBehaviour/mymik.js"
import "./entityBehaviour/scrubel.js"
import "./entityBehaviour/sanctuaryKeeper.js"
import "./entityBehaviour/sacredStatue.js"
import "./entityBehaviour/flickerwick.js"
import "./entityBehaviour/booze.js"
import "./entityBehaviour/slushbuckler.js"
import "./entityBehaviour/alterbeast.js"
import "./entityBehaviour/revoid.js"
import "./entityBehaviour/sanguineSpider.js"
import "./entityBehaviour/mage.js"



import "./customCommands/reloadalterrealm.js"
import "./customCommands/disablealterrealm.js"
import "./customCommands/sendLevelNoti.js"


import "./worldInitialise.js"
import "./descriptionText.js"
import "./debugInfo.js"


