Mojira Archive
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);
}); 

 

Incomplete

Cristhiannica

2022-12-10, 03:53 AM

2023-10-27, 06:39 PM

2023-10-27, 06:39 PM

0

0

Unconfirmed

1.19.50

-