Yes, it's illegal in Australia to modify toy guns to resealable firearms. If you're going to do this, then you need Prohibited Weapons approval from the Chief Commissioners.