Bridge Tutorial: Addons #5 Custom Commands

Описание к видео Bridge Tutorial: Addons #5 Custom Commands

Hello Everyone. Another video explaining how to make custom commands. Hope u learnt something from it!!

Song Credits:
Music: TheFatRat - Arcadia
Watch the official music video:    • TheFatRat - Arcadia [Chapter 2]  
Listen here: https://lnk.to/tfrarcadiayt

Music: TheFatRat - Upwind
Watch the official music video:    • TheFatRat - Upwind [Chapter 4]  
Listen here: https://lnk.to/tfrupwindyt

C418 - Sweden (Caution & Crisis Remix)
   • C418 - Sweden (Caution & Crisis Remix)  

Naron - Imagination
   • Naron - Imagination (Inspired By Alan...  

Shadowing - Corbyn Kites
   • Видео  

Altrøx - Epic [NCN Release]
   • Altrøx - Epic [NCN Release]  


GameTest Script and Links:
Script:
import { register } from 'GameTest';
import { world } from "mojang-minecraft";

world.events.beforeChat.subscribe((eventData) ≥ {
if (eventData.message == "!test") {
eventData.cancel = true;
world.getDimension('overworld').runCommand(`tellraw ${eventData.sender.name} {"rawtext":[{"text":"Hello! I have executed from the world!!"}]}`);
eventData.sender.runCommand(`tellraw @s {"rawtext":[{"text":"Hello! I have executed from the player!!"}]}`);
}
});

function Something(test) {
test.succeed();
}

register('command', 'register', Something);

Test Class Module link:
https://docs.microsoft.com/en-us/mine...

World Events Class link:
https://docs.microsoft.com/en-us/mine...

Introduction to gametests documentation:
https://docs.microsoft.com/en-us/mine...


Bot script and links:
Script:
const bedrock = require('bedrock-protocol');

const client = bedrock.createClient({
host: 'localhost',
port: 19132,
username: 'SineVector241',
offline: false
});

client.on('text', (packet) ≥ {
if(packet.source_name != "SineVector241")
{
if(packet.message.startsWith("!test"))
{
console.log("test done");
}
}
});

Library Link:
https://github.com/PrismarineJS/bedro...

C++ Redist Download:
https://docs.microsoft.com/en-us/cpp/...

Node JS Download:
https://nodejs.org/en/


Servers:
LiteLoaderBDS:
https://github.com/LiteLDev/LiteLoade...

BDSX:
https://github.com/bdsx/bdsx

Комментарии

Информация по комментариям в разработке