That's horse stuff.
You cannot prevent the bricks iD from changing on replant.
Atleast not so easily
Open a single player server. Think of a default datablock that loads with the game.
echo(thatDatablock.getID());Close the game. Open it again. Start a single player server.
echo(thatDatablock.getID());If the IDs aren't the same, then you enabled or disabled add-ons. You can try it on your own player too, every first spawn you will have the same ID assuming you're starting from a fresh copy of the game.