Closed Simon-Losier closed 3 months ago
Code example does not compile/run as world is not defined
world
Error:
main.ts:10:29 - error TS2304: Cannot find name 'world'. 10 const players: Player[] = world.getPlayers(options);
Imported world from @minecraft/server
@minecraft/server
Issue
Code example does not compile/run as
world
is not definedError:
Fix
Imported
world
from@minecraft/server