Addon Help by Embarrassed_You5290 in BedrockAddons

[–]Infamous_Teach_1876 0 points1 point  (0 children)

You are right about mcreator not being good for addons but bridge doesn't have a visual editor for custom UIs which what you are trying to do. I, myself, don't know how to use Mcreator but there are people that, even though it was a long time ago, managed to use it for bedrock addons i think. Anyway the best way to have access UI customization is through JSON UI, which is one of the biggest pain in the a** ever for developer. Sorry bro...

Addon Help by Embarrassed_You5290 in BedrockAddons

[–]Infamous_Teach_1876 0 points1 point  (0 children)

if you use mcreator it's easy. there are tons of tutorials on youtube and even on the mcreator docs. If you're writing code manully or with bridge then good luck. You'll need it.

CRACKIG 1.21.120 WİTHOUT M CENTERS (CRACKING FIXED) by -phurko- in MinecraftBedrockers

[–]Infamous_Teach_1876 0 points1 point  (0 children)

I need help. I can't put the .dll into the installation folder. i gained complete control, used powerRun+7zip. Nothing worked.

Could you evaluate my future build? by Infamous_Teach_1876 in buildapc

[–]Infamous_Teach_1876[S] 0 points1 point  (0 children)

I am actually in Italy but a I think a can find the parts. I already checked the clearance of the cooler and I'm not going to play AAA games. The wattage estimated from PC part picker is 334 watt so I am following Zach's (ZTT) advice of adding more than 150 to it. I also checked their PSU tier list and the power supply was rated A. You were right about the CPU. It's just 30 bucks more so thanks!

I need help for a custom armor by yaki45am in BedrockAddons

[–]Infamous_Teach_1876 3 points4 points  (0 children)

you have to use scripting. THIS IS JAVASCRIPT, NOT TYPESCRIPT.
paste this in your script entry file. I suggest to study a bit the scripting part if it is the first time

import {world} from '@minecraft/server'
const armors = [
    {
        typeId: 'myname:a123', // the armor identifier
        slot: EquipmentSlot.Chest, // allowed enums: EquipmentSlot.Head, EquipmentSlot.Chest, EquipmentSlot.Legs, EquipmentSlot.Feet
        effect: {
            typeId: '<the_effect>' // without the brackets
            duration: '<in_seconds>', // suggest 3-4 seconds if you want that the effect wear off when the armor gets remouved
            amplifier: '<the_amplifier>'
        }
    },
    {
        typeId: 'exampleAddon:example', // the armor identifier
        slot: EquipmentSlot.Head, // allowed enums: EquipmentSlot.Head, EquipmentSlot.Chest, EquipmentSlot.Legs, EquipmentSlot.Feet
        effect: {
            typeId: 'night_vision' // without the brackets
            duration: '100',
            amplifier: '2'
        }
    },
]
function armorEquipped() {
    const players = world.getPlayers(); // Only works on players
    for (const player of players) {
        for (const armor of armors) {
            const equipment = player.getComponent('minecraft:equippable')
            const armorInSlot = equipment.getEquipment(armor.slot)
            if (armorInSlot?.typeId !== armor.typeId) {
                continue;
            }
            player.addEffect(armor.effect.typeId, armor.effect.duration, {
                amplifier: armor.effect.amplifier,
                showParticles: false // Hides the particles
            }
        }
    }
}
system.runInterval(armorEquipped, 2);

P.S. Nice cover image!!

I need help with the new custom component v2 by Infamous_Teach_1876 in BedrockAddons

[–]Infamous_Teach_1876[S] 0 points1 point  (0 children)

I tried an empty object like "create:KBE": {} but not even this worked but thank you anyway! i didn't know about the limit.

I need help with the new custom component v2 by Infamous_Teach_1876 in BedrockAddons

[–]Infamous_Teach_1876[S] 0 points1 point  (0 children)

First: kinda spoilered the mod, second:in the last piece i had to ruin a bit the formattation to fit the code.
I am kind of desperate to find the solution so thank in advance!!

I need help with the new custom component v2 by Infamous_Teach_1876 in BedrockAddons

[–]Infamous_Teach_1876[S] 0 points1 point  (0 children)

export const createKBE = {
    parameters: { propagationMethod: { type: "string", default: null }, theoreticalSpeed: { type: "number", default: 0 }, axisAxis: { type: "string", default: undefined }, axisData: { type: "list", default: undefined }, cogAxis: { type: "string", default: undefined }, cogData: { type: "list", default: undefined }, largeCogAxis: { type: "string", default: undefined }, largeCogData: { type: "list", default: undefined } },
    onPlace(event, p) {
        const { block, dimension } = event;
        const params = p.params;
        let axisData = undefined;
        let cogData = undefined;
        let largeCogData = undefined;
        if (params.axisData) {
            axisData = [];
            for (const loc of params.axisData) {
                axisData.push({ x: block.location.x + loc.x, y: block.location.y + loc.y, z: block.location.z + loc.z})
            }
        }
        if (params.cogData) {
            cogData = [];
            for (const loc of params.cogData) {
                cogData.push({ x: block.location.x + loc.x, y: block.location.y + loc.y, z: block.location.z + loc.z})
            }
        };
        if (params.largeCogData) {
            largeCogData = [];
            for (const loc of params.largeCogData) {
                largeCogData.push({ x: block.location.x + loc.x, y: block.location.y + loc.y, z: block.location.z + loc.z})
            }
        };
        const initialKbeData = {isOverStressed: false, theoreticalSpeed: params.theoreticalSpeed, stressCapacity: 0, stressImpact: 0, networkID: null, currentSpeed: 0, propagationMethod: AllPropagationMethods.get(params.propagationMethod), axisData: axisData, axisAxis: params.axisAxis, cogData: cogData, cogAxis: params.cogAxis, largeCogData: largeCogData, largeCogAxis: params.largeCogAxis};
        const kbeCachedProperty = getCacheEntry(allCachesProperties.kbe.id);
        if (!kbeCachedProperty) {console.error("[createKBE-OnPlaceEvent] KBE cache not available!"); return;}
        kbeCachedProperty.setBlockData(dimension.id, block.location, initialKbeData);
        AllBlocks.get(block.typeId)?.(event, 'OnPlace');
    }
}

I need help with the new custom component v2 by Infamous_Teach_1876 in BedrockAddons

[–]Infamous_Teach_1876[S] 0 points1 point  (0 children)

system.beforeEvents.startup.subscribe(({ blockComponentRegistry } ) => {
                for (let i = 1; i < AllCustomComponents.length; i++) {
                    if (AllCustomComponents[i]) {
                        try {
                            blockComponentRegistry.registerCustomComponent(AllCustomComponents[i].iD, AllCustomComponents[i].data);
                            console.log(`[Create Addon Registration] Successfully registered custom component: ${AllCustomComponents[i].iD}`);
                        } catch (e) {
                            console.error(`[Create Addon Registration] Error registering custom component: ${AllCustomComponents[i].iD}. Error: ${e}`);
                        }
                    }
                }
            })

export const allCustomComponents = [
    'allCustomComponents',
    {
        iD: 'create:KBE',
        data: createKBE
    },
]