Code: Select all
/c local p = game.player
rendering.draw_rectangle{
color={r=0, g=1, b=1, a=0.5},
filled=true,
left_top={x=p.position.x-1.5, y=p.position.y-1.5},
right_bottom={x=p.position.x+1.5, y=p.position.y+1.5},
surface=p.surface}
Got: https://lua-api.factorio.com/latest/Lua ... _rectangle