Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Latest commit

 

History

History
21 lines (17 loc) · 527 Bytes

File metadata and controls

21 lines (17 loc) · 527 Bytes

A function that spawns simulated player

index.d.ts

import * as server from "@minecraft/server";
import { SimulatedPlayer } from "../simulated-player/SimulatedPlayer.js";
/**
 * Spawns a simulated player
 * @param target The player the simulated player is going to spawn at
 * @param callback Implementation of the simulated player
 */
export function SpawnSimulatedPlayer(
  target: server.Player,
  callback: (player: SimulatedPlayer) => void
): void;

Dependency