teleporttagjs

Quick rating

Community listing page, reviews here may not be monitored by the author.

teleporttagjs

No reviews yet

Use transfer label capabilities through kubejs

Mod Loaders
Minecraft

About

Description

This module needs to be used with teleporttag
 
Each method in its teleporttag is used by kubejs
 
The following objects and methods are exported
 
TeleportTager.backhaul(player: Internal.ServerPlayer_); //teleport to home
TeleportTager.teleportPlayerToTheEnd(player: Internal.ServerPlayer_); //to the end
TeleportTager.teleportPlayerToOtherPlayer(player: Internal.ServerPlayer_); //to the other
TeleportTager.teleportPlayerToNetherOrBack(player: Internal.ServerPlayer_);//to nether or back
TeleportTager.teleportPlayerToDeathLocation(player: Internal.ServerPlayer_); 
//to last death loc

You can add the following scripts to server_script:

PlayerEvents.tick((event) => {
    const player = event.player;
    const dimension = player.level.dimension;
    if (dimension === 'minecraft:the_nether') {
          TeleportTager.backhaul(player);
    }
})

Use transfer label capabilities through kubejs

export an object TeleportTager

TeleportTager.backhaul(player: Internal.ServerPlayer_); TeleportTager.teleportPlayerToTheEnd(player: Internal.ServerPlayer_); TeleportTager.teleportPlayerToOtherPlayer(player: Internal.ServerPlayer_); TeleportTager.teleportPlayerToNetherOrBack(player: Internal.ServerPlayer_); TeleportTager.teleportPlayerToDeathLocation(player: Internal.ServerPlayer_);

exampify:

PlayerEvents.tick((event) => { const player = event.player; const dimension = player.level.dimension; if (dimension === 'minecraft:the_nether') { TeleportTager.backhaul(player); } })