Posts

Showing posts from November, 2025

Code OF TP PORTAL

 //make by The_Bloxd_Pro___ const PORTAL_DEST = [-925, 119, 20.56]; const PORTAL_BLOCK = "Black Portal"; const TELEPORT_COOLDOWN = 2000; let lastTeleport = {}; tick = () => {   const now = api.now();      for (const playerId of api.getPlayerIds()) {        if (lastTeleport[playerId] && now - lastTeleport[playerId] < TELEPORT_COOLDOWN) {       continue;     }     // Get the player's position     const pos = api.getPosition(playerId);     if (!pos) continue;     // Get the block the player is currently touching (at body height)     const blockAt = api.getBlock(Math.floor(pos[0]), Math.floor(pos[1]), Math.floor(pos[2]));     // Also check head and feet blocks for better detection     const blockAtFeet = api.getBlock(Math.floor(pos[0]), Math.floor(pos[1] - 1), Math.floor(pos[2]));     const blockAtHead = api.getBlock(Math.floor(p...