update pieces id
Changed entity scripts debug