mojira.dev
MCPE-165083

[Scripting] @minecraft/server.Events.entitySpawn undefined

 

{
      "module_name": "@minecraft/server",
      "version": "1.1.0-beta"
}

 

The following property is not defined but according to the documentation it should exist

@minecraft/server.Events.entitySpawn

minecraft/server.Events Class #entitySpawn Microsoft Learn

@minecraft/server.Events.playerSpawn

minecraft/server.Events Class #playerSpawn Microsoft Learn

 

import { world, system } from "@minecraft/server"
world.events.entitySpawn.subscribe(function (event) {
    let msg = "Event: " + "entitySpawn";
    world.say(msg);
});
world.events.playerSpawn.subscribe(function (event) {
    let msg = "Event: " + "playerSpawn";
    world.say(msg);
});

 

Comments 2

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Is this still an issue in the latest version? If yes, could you please attach an example addon showcasing the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Cristhiannica

(Unassigned)

Unconfirmed

Windows

Windows 10

1.19.50

Retrieved