forked from hkc/cc-stuff
1
0
Fork 0

wallhack: shorter entity description without sneaking

This commit is contained in:
Vftdan 2023-10-13 15:36:17 +03:00
parent 00f4add81e
commit f53440be79
1 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,11 @@ return function()
cache[id].cube.setPosition(entityFront.x - 0.25, entityFront.y - 0.25, entityFront.z - 0.25) cache[id].cube.setPosition(entityFront.x - 0.25, entityFront.y - 0.25, entityFront.z - 0.25)
cache[id].frame.setPosition(entityFront.x, entityFront.y, entityFront.z) cache[id].frame.setPosition(entityFront.x, entityFront.y, entityFront.z)
cache[id].text.setAlpha(0xFF) cache[id].text.setAlpha(0xFF)
cache[id].text.setText(entity.name .. "\n" .. textutils.serialize(entity)) if player.isSneaking then
cache[id].text.setText(entity.name .. "\n" .. textutils.serialize(entity))
else
cache[id].text.setText(entity.name .. "\n{" .. entity.x .. ", " .. entity.y .. ", " .. entity.z .. "}")
end
if entityFront.flipped then if entityFront.flipped then
cache[id].text.setColor(0x00FFFFFF) cache[id].text.setColor(0x00FFFFFF)
else else