forked from hkc/cc-stuff
wallhack: shorter entity description without sneaking
This commit is contained in:
parent
00f4add81e
commit
f53440be79
|
@ -77,7 +77,11 @@ return function()
|
|||
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].text.setAlpha(0xFF)
|
||||
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
|
||||
cache[id].text.setColor(0x00FFFFFF)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue