#how do you add a delay

20 messages · Page 1 of 1 (latest)

warm cosmosBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

forest jasper
#

can i see the error

gloomy crystal
#

yes you may

gloomy crystal
#
EntityEvents.hurt(event => {
    const $Soulhome = Java.loadClass("io.github.shadowcube264.teamsoulhome.TeamDimensionHelper");
    const { entity, source, level } = event;
    const server = event.server;
    const entitiesInRange = null;

    if (!entity.isPlayer()) return;
    let player = entity;

    if (player.getY() < -64) {
        $Soulhome.FlipDimension(player, server, entitiesInRange);
    }
});```

is it possible to change this to a hotkey with kubejs?
forest jasper
#

you can, but its a bit fucky wucky

#

im not sure what that linked code does

#

never seen anything like that before

gloomy crystal
forest jasper
#

basically you use the client tick event to check for a button press and send network data to server

gloomy crystal
#

soulhome tp you to your own home dim
but when you leave it it takes you right back to where you enter from and with the current setup you spawn back in the void and go right back

forest jasper
#

i was talking about the code you linked, not wrote

#

but either way, irrelevant

gloomy crystal
#

ik ik

#

i was stating why my code is an issue and why im debating hotkey

forest jasper
gloomy crystal
#

kk ill attempt it thank you!

forest jasper
#

i think this script had something like that #archived-example-scripts message