Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
¿Eventos de secuencias de comandos de Minecraft Bedrock Edition?

Actualmente estoy usando Node.js con yo y gulp para crear un paquete de comportamiento con scripts. Estoy luchando por encontrar una lista adecuada de todos los eventos de API en línea, así que esperaba que alguien aquí pudiera ayudarme con ellos. He estado tratando de encontrar el identificador del evento que ocurre cuando se envía un mensaje de chat.

Mi código:

 var clientSystem = client.registerSystem(0, 0); // Setup which events to listen for clientSystem.initialize = function () { // Register any events you will send to the client const eventDataDefaults = {narf: false} clientSystem.registerEventData("test:pinky", eventDataDefaults) clientSystem.listenForEvent("minecraft:chat_broadcast_event", (eventData) => { eventData.message = `${eventData.sender.name} sent a message!`; }); // Register any components you will attach to game objects // system.registerComponent(...) // Set up any events you wish to listen to // system.listenForEvent(...); // Enable full logging, useful for seeing errors, you will probably want to disable this for // release versions of your scripts. // Generally speaking it's not recommended to use broadcastEvent in initialize, but for configuring logging it's fine. const scriptLoggerConfig = clientSystem.createEventData("minecraft:script_logger_config"); scriptLoggerConfig.data.log_errors = true; scriptLoggerConfig.data.log_information = true; scriptLoggerConfig.data.log_warnings = true; clientSystem.broadcastEvent("minecraft:script_logger_config", scriptLoggerConfig); } let firstTick = true; let ticks = 0; let seconds = 0; // per-tick updates clientSystem.update = function() { // Any logic that needs to happen every tick on the client. ticks++; seconds = Math.floor(ticks / 20); if(ticks % 20 === 0) { let uptime = clientSystem.createEventData("minecraft:display_chat_event"); uptime.data.message = `Uptime: ${seconds} seconds`; clientSystem.broadcastEvent("minecraft:display_chat_event", uptime); }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda