mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
8 lines
273 B
JavaScript
8 lines
273 B
JavaScript
ModAPI.require('player');
|
|
ModAPI.addEventListener("update", () => {
|
|
if (Boolean(ModAPI.player ? (ModAPI.player.isPlayer() ? true : false) : false)) {
|
|
if (ModAPI.player.isEntityAlive() === false) {
|
|
ModAPI.player.respawnPlayer();
|
|
};
|
|
};
|
|
}); |