CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 14:33:19 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=1c18602c45454b64fb5524460d2c585aa9172484acc10aac3db18de5f9be9342a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22MqlTPhAlGLXSaaDokBWP5vkXJuvLWSm-%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cf12677cdaccbb-BLR
Spieler Distanzanzeiger - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local owner = ""
- local targetPlayer = ""
- local targetX =
- local targetZ =
- term.clear()
- term.setCursorPos(1, 1)
- print("Starte Distanzanzeige...")
- local mode = 1
- local function distance2D(x1, z1, x2, z2)
- local dx = x2 - x1
- local dz = z2 - z1
- return math.sqrt(dx * dx + dz * dz)
- end
- local function keyListener()
- while true do
- local _, key = os.pullEvent("key")
- if key == keys.s then
- mode = (mode == 1) and 2 or 1
- term.clear()
- end
- end
- end
- local function displayLoop()
- while true do
- term.setCursorPos(1, 1)
- term.clear()
- local per = peripheral.wrap("back")
- if not per then
- print("Kein Player Detector hinten gefunden.")
- sleep(1)
- else
- local posOwner = per.getPlayerPos(owner)
- if posOwner then
- if mode == 1 then
- local dist = distance2D(posOwner.x, posOwner.z, targetX, targetZ)
- if term.isColor() then term.setTextColor(colors.yellow) end
- print("Modus: Koordinaten")
- if term.isColor() then term.setTextColor(colors.white) end
- print(string.format("Distanz zu (%.1f, %.1f): %d", targetX, targetZ, math.floor(dist)))
- else
- local posTarget = per.getPlayerPos(targetPlayer)
- if posTarget then
- local dist = distance2D(posOwner.x, posOwner.z, posTarget.x, posTarget.z)
- if term.isColor() then term.setTextColor(colors.lime) end
- print("Modus: Spieler '" .. targetPlayer .. "'")
- if term.isColor() then term.setTextColor(colors.white) end
- print("Distanz:", math.floor(dist))
- else
- if term.isColor() then term.setTextColor(colors.red) end
- print("Zielspieler '" .. targetPlayer .. "' nicht gefunden.")
- if term.isColor() then term.setTextColor(colors.white) end
- end
- end
- else
- if term.isColor() then term.setTextColor(colors.red) end
- print("Spieler '" .. owner .. "' nicht gefunden.")
- if term.isColor() then term.setTextColor(colors.white) end
- end
- end
- print("[S] zum Wechseln des Modus.")
- sleep(0.3)
- end
- end
- parallel.waitForAny(displayLoop, keyListener)
Tags:
Cc
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 4 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ P
JavaScript | 5 sec ago | 0.24 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 14 sec ago | 0.24 KB
-
⭐⭐Exchange Exploit⭐⭐ H
JavaScript | 17 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ J
JavaScript | 28 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ 4
JavaScript | 39 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 2 min ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ Y
JavaScript | 2 min ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand