master
LordMZTE 1 year ago
commit 980b4a8d2b

@ -0,0 +1,17 @@
local pl_detector = peripheral.find "playerDetector"
local mon = peripheral.find "monitor"
if mon == nil or pl_detector == nil then
error "not all peripherals present! need monitor and player detector"
end
while true do
local players = pl_detector.getOnlinePlayers()
for i, p in ipairs(players) do
local pos = pl_detector.getPlayerPos(p)
mon.setCursorPos(1, i)
mon.write(p .. " @ X: " .. pos.x .. " Y: " .. pos.y .. " Z: " .. pos.z)
end
sleep(2)
end

@ -0,0 +1,3 @@
#!/bin/sh
# requires the stylua formatter to be installed
stylua $(find -name '*.lua')

@ -0,0 +1,2 @@
indent_type = "Spaces"
no_call_parentheses = true
Loading…
Cancel
Save