#how do you add a delay
20 messages · Page 1 of 1 (latest)
yes you may
can i change my question
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?
you can, but its a bit fucky wucky
im not sure what that linked code does
never seen anything like that before
so to explain
basically you use the client tick event to check for a button press and send network data to server
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
i havent done this in 1.19 tho
kk ill attempt it thank you!
i think this script had something like that #archived-example-scripts message
